How to make plot a curve using JFreeChart?

后端 未结 1 1466
盖世英雄少女心
盖世英雄少女心 2020-12-19 19:33

I have managed to plot a linear graph. The following is the code:

private JPanel createGraph() {

        JPanel panel = new JPanel();
        XYSeries serie         


        
相关标签:
1条回答
  • 2020-12-19 19:50

    I believe that you are looking for XYSplineRenderer You should be able to do

    chart.getXYPlot().setRenderer(new XYSplineRenderer());
    

    after your chart is constructed.

    0 讨论(0)
提交回复
热议问题