TimeSeriesCollection BarChart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
RTJava
Posts: 4
Joined: Tue Mar 02, 2010 2:19 pm
antibot: No, of course not.

TimeSeriesCollection BarChart

Post by RTJava » Tue Mar 02, 2010 3:30 pm

Dear Experts,
I have short question related to http://www.jfree.org/phpBB2/viewtopic.php?f=10&t=23991 listed topic. When you add second series which values are lower than first series, it hides lower values series by XYBarRenderer, therefore it cannot be seen on the chart. For example:
TimeSeries s2 = new TimeSeries("Series 2", Month.class);
s2.add(new Month(1, 2001), 112);
s2.add(new Month(2, 2001), 11);
s2.add(new Month(3, 2001), 17);
s2.add(new Month(4, 2001), 13);
s2.add(new Month(5, 2001), 17);
s2.add(new Month(6, 2001), 18);
s2.add(new Month(7, 2001), 18);
s2.add(new Month(8, 2001), 13);
s2.add(new Month(9, 2001), 12);
s2.add(new Month(10, 2001), 13);
s2.add(new Month(11, 2001), 11);
s2.add(new Month(12, 2001), 19);

dataset.addSeries(s1);
dataset.addSeries(s2);
// dataset.addSeries(s1);

s1 covers s2 values. If you change order first s2 then s1, i can be seen. Why and do you know any workaround?

Briefly, I have one table which includes Date(TIMESTAMP), X (double), Y(double), Z(double) data. Based on Date(Daily, Monthly, Yearly), I try to plot different type of charts. Such as, Bar chart, Pie chart, ... so on. TimeSeriesCollection samples have mostly line plot. Do you have any suggestions?
Thank you in advance.
Regards,

Locked