JFreeChart Scatter Plot Lines

前端 未结 2 883
感情败类
感情败类 2020-12-16 02:14

I\'m trying to create a graph with JFreeChart, however it doesn\'t get the lines right. Instead of connecting the points in the order I put them, it connects the points from

2条回答
  •  不思量自难忘°
    2020-12-16 02:37

    Try this:

     final XYSeries data = new XYSeries("data",false);
    

    Using this constructor for XYSeries disables autosort, as defined in the XYSeries API.

    Before:

    Before

    After:

    After

提交回复
热议问题