Getting series color from LineChart

2019-09-11 00:23发布

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条回答
别忘想泡老子
2楼-- · 2019-09-11 00:50

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.

查看更多
登录 后发表回答