Color difference in charts and problem related to it.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
0026da
Posts: 1
Joined: Tue Aug 10, 2021 11:46 am
antibot: No, of course not.

Color difference in charts and problem related to it.

Post by 0026da » Tue Aug 10, 2021 12:06 pm

In JFreeChart 1.5.2 Demo Collection ,
In BarChartDemo1.java ,the color of the bars
given is different from color of bars in BarChartDemo4.java.



Download and Run this jar from the given URL to see the colors -
URL-> https://www.jfree.org/jfreechart/samples.html
Jar Name -> jfreechart-demo-1.5.2-jar-with-dependencies.jar

I want to get the color of my bars to be same as given in BarChartDemo1.java , but I am unable to get it . I have tried every way to set color but it always comes as same to color of bars from BarChartDemo4.java. I don't know why it is happening , please help me with this.

Locked