Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Birt Charts Drill Down
Birt Charts Drill Down [message #141912] Thu, 09 March 2006 02:41 Go to next message
Eclipse UserFriend
Originally posted by: stranm.genevaonline.com

I've been searching for a way to generate both reports, and charts separate
from reports for a web program I'm working on. Birt seems like the right
choice but I need to be able to generate image maps of the charts so that
the user can click on a part of a chart in an HTML page and drill down
(separate from a report). I see that 2.0 has an IImageMapEmitter interface
which sounds promising and I can see submissions in the logs that this sort
of functionality is in place but I can't find even a shred of doc on it, the
Java Doc indicates no actual class implements it. Has it been implemented
and if so how does one go about using it? I'm generating charts
programatically and I'd like to be able to generate bar and pie charts that
support drill through via a simple Javascript method being called, then use
AJAX to call my Tomcat server and generate the new chart. Any help would be
greatly appreciated as I'm stuck.
Re: Birt Charts Drill Down [message #142213 is a reply to message #141912] Thu, 09 March 2006 16:00 Go to previous messageGo to next message
David Michonneau is currently offline David MichonneauFriend
Messages: 1145
Registered: July 2009
Senior Member
Hi Mike,

IImageMapEmitter is indeed the right choice. It is implemented by all static
image renderers (BMP, GIF,JPG, PNG): so BmpRendererImpl, PngRendererImpl,...

To use it, just cast your device renderer instance (IDeviceRenderer) to
IImageMapEmitter (assuming you are indeed using one of those static image
renderer) and then call getImageMap(), it will return the html of the area
tag.

Hope this helps,

David

"Mike Stan" <stranm@genevaonline.com> wrote in message
news:duo4kg$5io$1@utils.eclipse.org...
> I've been searching for a way to generate both reports, and charts
> separate from reports for a web program I'm working on. Birt seems like
> the right choice but I need to be able to generate image maps of the
> charts so that the user can click on a part of a chart in an HTML page and
> drill down (separate from a report). I see that 2.0 has an
> IImageMapEmitter interface which sounds promising and I can see
> submissions in the logs that this sort of functionality is in place but I
> can't find even a shred of doc on it, the Java Doc indicates no actual
> class implements it. Has it been implemented and if so how does one go
> about using it? I'm generating charts programatically and I'd like to be
> able to generate bar and pie charts that support drill through via a
> simple Javascript method being called, then use AJAX to call my Tomcat
> server and generate the new chart. Any help would be greatly appreciated
> as I'm stuck.
>
Re: Birt Charts Drill Down [message #143167 is a reply to message #142213] Sat, 11 March 2006 04:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stranm.genevaonline.com

David:

Hi and thanks for the assistance. I have tried this and the emitter always
seems to return null. I've tracked it through the code to the
JavaxImageIOWriter, it returns null when the triggerMap.size() == 0. This
seems to always be the case. I've tried setting up a trigger, I used the
exact code from your samples that ships with the product :

Trigger triger = TriggerImpl.create( TriggerCondition.ONMOUSEDOWN_LITERAL,
ActionImpl.create( ActionType.URL_REDIRECT_LITERAL,
URLValueImpl.create( "http://www.actuate.com", //$NON-NLS-1$
null, null, null, null ) ) );
sePie.getTriggers( ).add( triger );

It still produces null since the triggerMap is empty, I would have assumed
that adding a trigger to the PieSeries would add it to the trigger map but
that doesn't seem to be the case. Any thoughts or suggestions? What inserts
trigger entries into the triggerMap? Is there a step I'm missing?

Any advice would be greatly appreciated.

"David Michonneau" <dmichonneau@actuate.com> wrote in message
news:dupjev$i2t$1@utils.eclipse.org...
> Hi Mike,
>
> IImageMapEmitter is indeed the right choice. It is implemented by all
> static image renderers (BMP, GIF,JPG, PNG): so BmpRendererImpl,
> PngRendererImpl,...
>
> To use it, just cast your device renderer instance (IDeviceRenderer) to
> IImageMapEmitter (assuming you are indeed using one of those static image
> renderer) and then call getImageMap(), it will return the html of the area
> tag.
>
> Hope this helps,
>
> David
>
> "Mike Stan" <stranm@genevaonline.com> wrote in message
> news:duo4kg$5io$1@utils.eclipse.org...
>> I've been searching for a way to generate both reports, and charts
>> separate from reports for a web program I'm working on. Birt seems like
>> the right choice but I need to be able to generate image maps of the
>> charts so that the user can click on a part of a chart in an HTML page
>> and drill down (separate from a report). I see that 2.0 has an
>> IImageMapEmitter interface which sounds promising and I can see
>> submissions in the logs that this sort of functionality is in place but I
>> can't find even a shred of doc on it, the Java Doc indicates no actual
>> class implements it. Has it been implemented and if so how does one go
>> about using it? I'm generating charts programatically and I'd like to be
>> able to generate bar and pie charts that support drill through via a
>> simple Javascript method being called, then use AJAX to call my Tomcat
>> server and generate the new chart. Any help would be greatly appreciated
>> as I'm stuck.
>>
>
>
Re: Birt Charts Drill Down [message #146572 is a reply to message #143167] Tue, 21 March 2006 16:09 Go to previous message
David Michonneau is currently offline David MichonneauFriend
Messages: 1145
Registered: July 2009
Senior Member
It's expected that no trigger does not generate an image map, since it means
there is no interactivity set up. But after adding the trigger it should
work. Can you try putting a breakpoint in the PieRenderer.drawSlice method
(it calls idr.enableInteraction() at the end of the method). Maybe that will
give us some clue on the reason why it fails.

Thanks,

David

"Mike Stan" <stranm@genevaonline.com> wrote in message
news:dutkqv$sdc$1@utils.eclipse.org...
> David:
>
> Hi and thanks for the assistance. I have tried this and the emitter always
> seems to return null. I've tracked it through the code to the
> JavaxImageIOWriter, it returns null when the triggerMap.size() == 0. This
> seems to always be the case. I've tried setting up a trigger, I used the
> exact code from your samples that ships with the product :
>
> Trigger triger = TriggerImpl.create( TriggerCondition.ONMOUSEDOWN_LITERAL,
> ActionImpl.create( ActionType.URL_REDIRECT_LITERAL,
> URLValueImpl.create( "http://www.actuate.com", //$NON-NLS-1$
> null, null, null, null ) ) );
> sePie.getTriggers( ).add( triger );
>
> It still produces null since the triggerMap is empty, I would have assumed
> that adding a trigger to the PieSeries would add it to the trigger map but
> that doesn't seem to be the case. Any thoughts or suggestions? What
> inserts trigger entries into the triggerMap? Is there a step I'm missing?
>
> Any advice would be greatly appreciated.
>
> "David Michonneau" <dmichonneau@actuate.com> wrote in message
> news:dupjev$i2t$1@utils.eclipse.org...
>> Hi Mike,
>>
>> IImageMapEmitter is indeed the right choice. It is implemented by all
>> static image renderers (BMP, GIF,JPG, PNG): so BmpRendererImpl,
>> PngRendererImpl,...
>>
>> To use it, just cast your device renderer instance (IDeviceRenderer) to
>> IImageMapEmitter (assuming you are indeed using one of those static image
>> renderer) and then call getImageMap(), it will return the html of the
>> area tag.
>>
>> Hope this helps,
>>
>> David
>>
>> "Mike Stan" <stranm@genevaonline.com> wrote in message
>> news:duo4kg$5io$1@utils.eclipse.org...
>>> I've been searching for a way to generate both reports, and charts
>>> separate from reports for a web program I'm working on. Birt seems like
>>> the right choice but I need to be able to generate image maps of the
>>> charts so that the user can click on a part of a chart in an HTML page
>>> and drill down (separate from a report). I see that 2.0 has an
>>> IImageMapEmitter interface which sounds promising and I can see
>>> submissions in the logs that this sort of functionality is in place but
>>> I can't find even a shred of doc on it, the Java Doc indicates no actual
>>> class implements it. Has it been implemented and if so how does one go
>>> about using it? I'm generating charts programatically and I'd like to be
>>> able to generate bar and pie charts that support drill through via a
>>> simple Javascript method being called, then use AJAX to call my Tomcat
>>> server and generate the new chart. Any help would be greatly appreciated
>>> as I'm stuck.
>>>
>>
>>
>
>
Previous Topic:dynamic parameters
Next Topic:URGENT!! Bar Chart
Goto Forum:
  


Current Time: Tue Jul 16 03:55:38 GMT 2024

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

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

Back to the top