BIRT 2.1 RC5 and Chart interactivity ? [message #173784] |
Tue, 27 June 2006 09:51  |
Eclipse User |
|
|
|
Hi to all,
I’ve just installed BIRT 2.1RC5 under Eclipse 3.2 and chart legend
interactivity still doesn’t work ...
My web application displays a line chart and I would like to toggle
visibility of series when click on legends.
Chart Area Interactivity is enabled and I’ve defined an Event Handler
java class for the chart. The following snippet doesn’t work :
public void beforeGeneration(Chart arg0, IChartScriptContext arg1) {
Chart chart = (ChartWithAxes) arg0;
Legend lg = chart.getLegend();
lg.getTriggers().add(TriggerImpl.create(
TriggerCondition.ONMOUSEDOWN_LITERAL,
ActionImpl.create(ActionType.TOGGLE_VISIBILITY_LITERAL,
SeriesValueImpl.create("not-used"))));
}
However this snippet works :
public void beforeGeneration(Chart arg0, IChartScriptContext arg1) {
Chart chart = (ChartWithAxes) arg0;
Legend lg = chart.getLegend();
lg.getTriggers().add(TriggerImpl.create(
TriggerCondition.ONMOUSEOVER_LITERAL,
ActionImpl.create(ActionType.SHOW_TOOLTIP_LITERAL,
TooltipValueImpl.create(500, "My ToolTip"))));
}
Is there a problem with charts interactivity ?
Thanks for your help
Dov
|
|
|
Re: BIRT 2.1 RC5 and Chart interactivity ? [message #173974 is a reply to message #173784] |
Wed, 28 June 2006 03:00   |
Eclipse User |
|
|
|
Hi Dov,
I think you don't need scripting to define interactivity, as it is already
provided by the chart builder. That being said, I suspect the issue is
related to the output you use.
In static images such as PNG, BMP, JPG, the interactivity is defined by an
HTML ImageMap. That means you can't highlight or toggle visibility for those
outputs, but you can define tooltip, hyperlinks,...
So the fix would be to change you chart type to SVG (and make sure you got
the SVG plugin if you use IE or Firefox 1.0)
Thanks,
David
"Dov MORYUSEF" <moryusef@hotmail.com> wrote in message
news:e7rd5p$39v$1@utils.eclipse.org...
> Hi to all,
>
> I
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09118 seconds