Skip to main content



      Home
Home » Archived » BIRT » change chart type via interactivity
change chart type via interactivity [message #172586] Thu, 22 June 2006 08:38 Go to next message
Eclipse UserFriend
Originally posted by: thomaskr.segue.at

hi,

is it possible to change the chart type via script? e.g i have a bar
chart and want to change it to a pie chart via clicking on the chart area?

another thing, i would need is how to change the orientation of a bar
chart: in the gui there is a "flip axis" check box. changing this via
interactivity as well would be great.

thanks
Re: change chart type via interactivity [message #173409 is a reply to message #172586] Mon, 26 June 2006 09:34 Go to previous messageGo to next message
Eclipse UserFriend
It depends exactly what is your renderer. If you're using Swing or SWT, yes,
it's possible. If you just visualize the chart in a browser, it's not, as
there is no way now to regenerate the chart on the server, by a browser
request (unless you implement your own servlet to do it).

Assuming you're using SWT/Swing, I would advise you look at the examples in
the chart examples plugin. You will need to create a new type of series in
your chart model, since each type is using different series (that can have
different attributes). For the flip axis, it's only an attribute to change
in the model, so it should be easier.

Thanks,

David

"Thomas Krupa" <thomaskr@segue.at> wrote in message
news:e7e30s$3ef$1@utils.eclipse.org...
> hi,
>
> is it possible to change the chart type via script? e.g i have a bar chart
> and want to change it to a pie chart via clicking on the chart area?
>
> another thing, i would need is how to change the orientation of a bar
> chart: in the gui there is a "flip axis" check box. changing this via
> interactivity as well would be great.
>
> thanks
Re: change chart type via interactivity [message #174006 is a reply to message #173409] Thu, 29 June 2006 02:51 Go to previous message
Eclipse UserFriend
Originally posted by: thomaskr.segue.at

thanks for your answer,

problem is i visalize the chart in a browser

> It depends exactly what is your renderer. If you're using Swing or SWT, yes,
> it's possible. If you just visualize the chart in a browser, it's not, as
> there is no way now to regenerate the chart on the server, by a browser
> request (unless you implement your own servlet to do it).
>
> Assuming you're using SWT/Swing, I would advise you look at the examples in
> the chart examples plugin. You will need to create a new type of series in
> your chart model, since each type is using different series (that can have
> different attributes). For the flip axis, it's only an attribute to change
> in the model, so it should be easier.
>
> Thanks,
>
> David
>
> "Thomas Krupa" <thomaskr@segue.at> wrote in message
> news:e7e30s$3ef$1@utils.eclipse.org...
>> hi,
>>
>> is it possible to change the chart type via script? e.g i have a bar chart
>> and want to change it to a pie chart via clicking on the chart area?
>>
>> another thing, i would need is how to change the orientation of a bar
>> chart: in the gui there is a "flip axis" check box. changing this via
>> interactivity as well would be great.
>>
>> thanks
>
>
Previous Topic:How to expand table of contents in default in birt-viewer frameset
Next Topic:ReferenceError: "params" is not defined.
Goto Forum:
  


Current Time: Fri May 09 08:52:55 EDT 2025

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

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

Back to the top