Getting series color from LineChart

断了今生、忘了曾经 提交于 2019-12-25 02:08:53

问题


LineChart has series which have different color by default. How can I get it to set obtained color to other text connected with the specified series?


回答1:


In a line chart since all elements of a single series have one color. The series are assigned with styleclass series0, series1, series2 etc.

Each of these series are assigned with corresponding colors styleclass i.e. default-color0, default-color1, default-color2 etc. You can directly use the styleclass for your text/labels.



来源:https://stackoverflow.com/questions/30074315/getting-series-color-from-linechart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!