Links in Gantt Chart
Links in Gantt Chart
How I can get links in the time lines so a user could see with detail what a line in the chart has?
Re: Links in Gantt Chart
Not sure what you mean by links? You can get tooltips displayed for each task that will show you the start and end times, if that helps.
Regards,
DG
Regards,
DG
Re: Links in Gantt Chart
Yeah, Tool Tips, how can I set those?, could you please point me to some direction to do that?, thanks in advance
Re: Links in Gantt Chart
If you run the GanttDemo application, you should see tooltips, they are enabled by default when you display a chart in the ChartPanel.
If you want to customise the tooltips, you need to write a class that implements the CategoryToolTipGenerator interface (IntervalCategoryToolTipGenerator is one example) and then call the setToolTipGenerator(...) method in the plot's renderer:
CategoryPlot plot = myChart.getCategoryPlot();
CategoryItemRenderer renderer = plot.getRenderer();
renderer.setToolTipGenerator(myToolTipGenerator);
Note the above code works with the CVS version of JFreeChart, but I have a feeling it might not against 0.9.4.
Regards,
DG
If you want to customise the tooltips, you need to write a class that implements the CategoryToolTipGenerator interface (IntervalCategoryToolTipGenerator is one example) and then call the setToolTipGenerator(...) method in the plot's renderer:
CategoryPlot plot = myChart.getCategoryPlot();
CategoryItemRenderer renderer = plot.getRenderer();
renderer.setToolTipGenerator(myToolTipGenerator);
Note the above code works with the CVS version of JFreeChart, but I have a feeling it might not against 0.9.4.
Regards,
DG