I have to plot a line chart with the range of X and Y axis is in real numbers(eg.-n to n which are float values).How can i manually set the values.And this should be the dynamic chart.Actually im getting the data from the serial port frequently.Thanks in advance.
Share
Revised to reflect XY requirement.
Using jfreechart, here’s a basic example of
ChartFactory.createXYLineChart()that demonstrates adding and removingXYDatasets. As you want to add XY pairs individually, create the chart with anXYSeriesCollectionconsisting of one or moreXYSeries. Here’s a related example that adds data dynamically to a scatter plot.