change chart type via interactivity [message #172586] |
Thu, 22 June 2006 08:38  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03638 seconds