Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
72
rated 0 times [  78] [ 6]  / answers: 1 / hits: 16644  / 13 Years ago, thu, august 11, 2011, 12:00:00

I have a graph generated by jqPlot.
Data Point Labels are used the show additional information on the graph, like in this example: http://www.jqplot.com/tests/point-labels.php



As you can see, the color of the data point labels is always black.
But I would like to change the color of the data point labels to the same color as the graph is (by the way: I don't talk about the legend or the tick-label).



Searching trough the options page (http://www.jqplot.com/docs/files/jqPlotOptions-txt.html) I found no option to change this color.



So the question is: Is there a (other) way to change the color of the data point labels?



Thank you.


More From » jquery

 Answers
13

You can do that with CSS. By targeting the class .jqplot-point-label. See the example provided on the page


[#90676] Wednesday, August 10, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
suzanne

Total Points: 425
Total Questions: 87
Total Answers: 109

Location: Uzbekistan
Member since Sat, Feb 27, 2021
3 Years ago
;