Skip to main content



      Home
Home » Archived » BIRT » BIRT 2.1 RC5 and Chart interactivity ?
BIRT 2.1 RC5 and Chart interactivity ? [message #173784] Tue, 27 June 2006 09:51 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: BIRT 2.1 RC5 and Chart interactivity ? [message #173979 is a reply to message #173974] Wed, 28 June 2006 03:52 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------030603070104070305090902
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit

Hi David,

Chart Output is SVG but the chart image is always converted to PNG
format ...

Thanks for your help

Dov

David Michonneau a
Re: BIRT 2.1 RC5 and Chart interactivity ? [message #173985 is a reply to message #173979] Wed, 28 June 2006 05:30 Go to previous messageGo to next message
Eclipse UserFriend
It's converted to PNG because your browser doesn't support SVG( install the
svg plugin) or you haven't checked "enable svg charts" in
windows->preferences->Report design inside Eclipse.

Thanks,

David

"Dov MORYUSEF" <moryusef@hotmail.com> wrote in message
news:e7tcf4$99c$1@utils.eclipse.org...
> Hi David,
>
> Chart Output is SVG but the chart image is always converted to PNG
> format ...
>
> Thanks for your help
>
> Dov
>
> David Michonneau a
Re: BIRT 2.1 RC5 and Chart interactivity ? [message #173987 is a reply to message #173985] Wed, 28 June 2006 06:10 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------080600070507010100050905
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit

IE SVG Plugin is installed (install test is successful
:http://www.adobe.com/svg/viewer/install/svgtest.html)

but it still doesn't works ..


David Michonneau a
Previous Topic:Adding Data Source with API/null pointer
Next Topic:Problem with resource files
Goto Forum:
  


Current Time: Sun Jul 27 12:00:21 EDT 2025

Powered by FUDForum. Page generated in 0.04656 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top