I am using a .kendoChart()
call to create my self a pie chart.
seriesColors: config.colors,
tooltip: {
visible: true,
template: function (e) {
return shared.AssetClassName(e.category) + ' ' + shared.toString(e.percentage, "p0");
}
}
Using seriesColors: config.colors
I am overriding the normal color set that comes with Kendo UI. The problem with this is when the chart uses darker colors the label color in the tooltip on hover is always black and is very difficult to read. I am looking for a way to reference another color array, set the colors on bind or something similar to that.
Kendo UI handles the dark colors in the standard color set by changing the label colors to white automatically so there should be a way to do it.
I have done some research but I cannot find a good set of documentation for Kendo UI similar to what Microsoft usually releases.
Update:
Joe's response was very helpful but it did not quite get me there.
Using the Color: attribute I can indeed set the ToolTip text color on a global scale, but... what if I have a light yellow? Is there a way to specify directly what color the text should be on what background color?
Will Color: accept a function{} or array of colors somehow?
Thanks,
Thanks to Roc for showing me exactly what I was missing!
Note: I used 120 luma for my determining value of if I would use black or white.