Hello there was a problem with the search in the documentation information: (Namely, what I didn’t find is how to change the line type, its color and how to add labels to the points. An example of how I have and how I would like to see attached below, as well as code :
1) The screen is how it should be (at each point X, the value Y should be put on the graph)
XYSeries series = new XYSeries(" "); for(float i = 0; i < 16; i+=0.1){ series.add(i, (2 * u) / q * Math.abs((sin(i * 3.14 / q)) / (i * 3.14 / q))); } XYDataset xyDataset = new XYSeriesCollection(series); JFreeChart chart = ChartFactory .createXYLineChart("График", "x", "y", xyDataset, PlotOrientation.VERTICAL, true, true, true); JFrame frame = new JFrame("График"); // Помещаем график на фрейм frame.getContentPane() .add(new ChartPanel(chart)); frame.setSize(720,480); frame.setLocationRelativeTo(null); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.show(); 
