Changing color of bars in different bar charts wit

2019-08-05 13:33发布

I have 3 buttons displaying 3 different bar charts in the same application. when i click any of the button it displays bar chart with same color as shown by others. Now i want to display these 3 bar charts in 3 different colors. How is it possible? Any help will be appreciated.

2条回答
在下西门庆
2楼-- · 2019-08-05 14:09

Use the XYSeriesRenderer.setColor function and set it to a different colour for each Barchart.

查看更多
ゆ 、 Hurt°
3楼-- · 2019-08-05 14:23

In order to do this, you will have to have each bar added to a separate series.

查看更多
登录 后发表回答