Changing color of bars in different bar charts within same application

本秂侑毒 提交于 2019-12-24 10:54:05

问题


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.


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/10582833/changing-color-of-bars-in-different-bar-charts-within-same-application

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