However the issue is that no lines show up, only shapes at the coordinates that my program inputs. I thought it was an issue with my code or that I was missing some kind of DrawLine method, however, this issue seemed to happen with another user on this forum as a result of the update to 1.0.19.
Post located here: http://www.jfree.org/phpBB2/viewtopic.p ... er#p180530
Here is an image of how the lines look like when I use XYSplineRenderer.
http://i50.photobucket.com/albums/f317/ ... zbndgw.png
Here is the part of the code where I switch to XYSplineRenderer:
If there is some kind of method to fix the error, please let me know. Looking at other usages of XYSplineRenderer however, they simply seemed to just switch the renderer and set the precision like I did.
Code: Select all
ArrayList<XYValues> values = Parser.parse(files); theDataset= JFreeChartLineChartExample.createDataset(values); //LineChart JFreeChart lineChart = ChartFactory.createXYLineChart( "E-Field VH", //Title of chart "Electric Field (v/m)", //X-Axis Label "Normalized Volume (Decimal)", //Y-Axis Label theDataset, //(X, Y) Coordinates PlotOrientation.VERTICAL, //Plot Orientation true, //Toggle Legend true, //Toggle ToolTips false); //Toggle Boolean Urls // CHARTPANEL ChartPanel chartPanel = new ChartPanel(lineChart); //XYPlot xyplot = lineChart.getXYPlot(); xyplot.setDomainGridlineStroke(new BasicStroke(0.1f)); xyplot.setRangeGridlineStroke(new BasicStroke(0.1f)); xyplot.setRenderer(new XYSplineRenderer(2));