Hello,
I’m using a connection DataBase to obtain CategoryDataset. So I create a chart (ChartFactory.createLineChart) and I customize range axis but I’ve problem with domain Axis.
CategoryDataset ds1=createDataset();
JFreeChart chart1 = ChartFactory.createLineChart("xxxx",
"Fecha", "Velocidad m/s", ds1, PlotOrientation.VERTICAL,
true,
true,
true);
CategoryPlot plot = (CategoryPlot) chart1.getPlot();
NumberAxis range = (NumberAxis)plot.getRangeAxis();
range.setRange(0,25);
range.setTickUnit(new NumberTickUnit(5));
CategoryAxis DomainAxis=plot.getDomainAxis();
DomainAxis.setLowerMargin(0.01);
DomainAxis.setUpperMargin(0.01);
There are more points (300) and labels gets overlaped. I’d like all labels aren’t shown. How can I do it?
Sorry but I don't speak english good and I hope you understand what I want.
Thank's.