Is There A Way I Can Color My Ticks In My Jqplot Graph
I have a stacked bar graph and I want to color my ticks on my graph. In the graph below I'd like to color the customers in red or green based on their status: So I would want to
Solution 1:
Try something like:
$("div.jqplot-xaxis-tick:contains('Aava')").css("color", "red");
I'm not sure if it'll work, but it seemed to change the font color of the x labels here: http://www.jqplot.com/tests/line-charts.php
When I ran:
$("div.jqplot-xaxis-tick:contains('2')").css("color", "red");
You'll need to be sure this is ran after the DOM is ready and the graph has been created.
Post a Comment for "Is There A Way I Can Color My Ticks In My Jqplot Graph"