Is chart interactivity works ? [message #173298] |
Mon, 26 June 2006 04:41  |
Eclipse User |
|
|
|
Hi to all,
I’m developing a web application with Eclipse 3.1 (WTP 1.0.2) and BIRT 2.0.1
My application displays a line chart which contains one category serie
and two vertical values series. I would like to click under a legend
serie in order to toggle visibility ... but it doesn’t work.
I’ve tried the following code (from chart examples) :
Legend lg = chart.getLegend();
lg.getTriggers().add(TriggerImpl.create(
TriggerCondition.ONMOUSEDOWN_LITERAL,
ActionImpl.create(ActionType.TOGGLE_VISIBILITY_LITERAL,
SeriesValueImpl.create("not-used"))));
But it doesn’t works (none interactivity). Nothing happens on legends
clicks.
However the following code :
Legend lg = chart.getLegend();
lg.getTriggers().add(TriggerImpl.create(
TriggerCondition.ONMOUSEOVER_LITERAL,
ActionImpl.create(ActionType.SHOW_TOOLTIP_LITERAL,
TooltipValueImpl.create(500, "My ToolTip"))));
works and a tooltip appears when mouse cursor under legend.
Have you got any ideas?
Thanks a lot for your help.
Dov
|
|
|
|
|
|
|
|
Re: Is chart interactivity works ? [message #173437 is a reply to message #173401] |
Mon, 26 June 2006 11:59  |
Eclipse User |
|
|
|
Hi,
I've followed all the steps but I've always a NullPointerException:
-- Begin snippet --
IReportEngine engine = null;
try {
EngineConfig config = new EngineConfig();
config.setEngineHome("D:\\Birt runtime 2.1RC5\\ReportEngine");
config.setLogConfig("c:\\temp", Level.OFF);
Platform.startup(config);
// factory is always NULL !!
IReportEngineFactory factory =
(IReportEngineFactory)Platform.
createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_EN GINE_FACTORY);
engine = factory.createReportEngine(config);
engine.changeLogLevel(Level.WARNING);
} catch (Exception ex) {
ex.printStackTrace();
}
-- End --
Any ideas ?
Dov
David Michonneau a écrit :
> Please read the install instructions on the web page:
> http://www.eclipse.org/birt/phoenix/build/
>
> Thanks,
>
> David
>
> "Dov MORYUSEF" <moryusef@hotmail.com> wrote in message
> news:e7oj8d$qfg$1@utils.eclipse.org...
>
>>Hi,
>>
>>Yes I've just installed it ;-) but now I can't execute any report. I've a
>>BirtException
>>
>>org.eclipse.birt.core.exception.BirtException: $NO-RB$ Can't startup the
>>OSGI framework
>>
>>
>>David Michonneau a écrit :
>>
>>>Have you tried with 2.1RC5?
>>>
>>>Thanks,
>>>
>>>David
>>>
>>>"Dov MORYUSEF" <moryusef@hotmail.com> wrote in message
>>>news:e7o7nt$brs$1@utils.eclipse.org...
>>>
>>>
>>>>Hi,
>>>>
>>>>Interactivity is enabled (I'm not sure but enabled by default) but I
>>>>doesn't works ....
>>>>
>>>>Thomas Escolan a écrit :
>>>>
>>>>
>>>>>Hllo,
>>>>>
>>>>>Have you tried to set the chart's interactivity ON first ?
>>>>>I don't know how to do it programmatically, but in report designer it's
>>>>>on chart properties withing the format tab.
>>>>>
>>>>
>>>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03972 seconds