I have another problem while setting up bar-chart. I want to have ToolTips in there.
I have a flexible amount of series. For each bar on each series, I need to have ToolTips.
That means: If I click on one bar, I want to have shown its value in a ToolTip.
I tried it with the following Code:
Code: Select all
MarksTip tooltip;
//Points points;
try {
Bar column_series = (Bar) Series.createNewSeries(
column_tchart.getChart(), Bar.class, null);
// points = new Points(column_tchart.getChart());
tooltip = new MarksTip(column_tchart.getChart());
// points.getPointer().setStyle(PointerStyle.DIAMOND);
// points.setDataSource(column_series);
tooltip.setSeries(column_series); //Series of the bar_chart
tooltip.setMouseDelay(50);
tooltip.setMouseAction(MarksTipMouseAction.CLICK);
tooltip.setStyle(MarksStyle.VALUE);
Thank you very much!