In my chart I can see all the data points, but I cannot see the lines. "isLinesVisible()" method returns "true". However I have the following chart, maybe an image would help;

and my code for this chart is;
Code: Select all
chart = ChartFactory.createBarChart(
criteria + " Grafiği", // chart title
"Ürünler", // domain axis label
criteria, // range axis label
dataset, // data
PlotOrientation.VERTICAL,
false, // include legend
true, // tooltips?
false // URLS?
);
chart.setBackgroundPaint(Color.lightGray);
// creating the secondary chart & secondary axis
CategoryPlot plot = chart.getCategoryPlot();
NumberAxis axis2 = new NumberAxis("Satış Yüzdesi");
plot.setRangeAxis(1, axis2);
plot.setDataset(1, secondaryDataset);
LineAndShapeRenderer lineRenderer = new LineAndShapeRenderer(true,true);
plot.setRenderer(1, lineRenderer);
plot.mapDatasetToRangeAxis(1, 1);
plot.setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);
Thanks a lot
Birgi