Set Label Color on Raphael Chart

I cannot figure out how to set the label on the dot chart . I am sure that this needs to be done with the code below. I tried to install legendcolor, which works with a pie chart, but does not look like it works on a point graph. Any ideas? Thanks.

rgdotchart(20, 20, 850, 320, xs, ys, data, {symbol: "o", max: 14, heat: 

true, axis: "0 0 1 1", axisxstep: 23, axystep: 6, axisxlabels: axisx, axisxtype: ", axisytype:" ", axis labels: axial, legendcolor :." white "}) hang (function () {

+4
source share
3 answers

Turns out it was as simple as after calling the point -

  rgtxtattr.fill = "white"; 
+3
source

I was also lucky to define this in CSS

 text { fill:#fff; } 
+1
source

It does not look like it is using the color option that is used. On line 64, g.dot.js seems to be color references. These colors are created on lines 35-43 of g.rapheal.js . Do not grab the source too hard and change the colors as you like: D

0
source

Source: https://habr.com/ru/post/1348205/


All Articles