Is it possible to show only the selected category's values on JFreeChart?
chart http://img200.imageshack.us/img200/8329/2npa.png
For example, I have three categories on above picture and I want to give user to a selection option to see only selected category's value.
This is my JFreeChart creation code:
lineDataset = new XYSeriesCollection();
JFreeChart result = ChartFactory.createXYAreaChart("", "Mesafe", "Seviye", lineDataset, PlotOrientation.VERTICAL, true, true, false);
plot = (XYPlot) result.getPlot();
ValueAxis axis = plot.getDomainAxis();
axis.setAutoRange(true);