开发者

Gap in JFreeChart

开发者 https://www.devze.com 2023-04-05 05:34 出处:网络
I am creating a chart using JFreeChart, and I get the following behavior. Notice the gap between the light and dark shades of pink.

I am creating a chart using JFreeChart, and I get the following behavior.

Gap in JFreeChart

Notice the gap between the light and dark shades of pink.

I was just plotting sample data over time, so I don't think it has anything to do with my data. Has anyone encountered this 开发者_开发问答issue before? I am using a stacked XY area chart.

Here is the code to create my dataset:

double sample = 1.0;
TimeTableXYDataset dataset = new TimeTableXYDataset();
List<TimeSeries> timeSeriesList = timeSeriesCollection.getSeries();
for (TimeSeries t : timeSeriesList) {
  for (index = 0; index < t.getItemCount(); index++) {
    dataset.add(t.getTimePeriod(index), sample, t.getDescription());
  }
  sample++;
}


Problem fixed. I was overwriting the plot renderer with itself.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号