Problems migrating to Chart Engine 2.0 [message #125568] |
Tue, 07 February 2006 12:59  |
Eclipse User |
|
|
|
I'm using the BIRT Chart Engine and am having some problems migrating to
version 2.0 from M3. The specific problems I'm having are:
1. It looks like I'm supposed to use the prepare() method to create a
RunTimeContext to pass to the Generator. Is this true? When I do that, I
get the following exception when I attempt to render the chart:
org.eclipse.birt.chart.exception.ChartException:
$NO-RB$ Source value can not be null
at org.eclipse.birt.chart.factory.Generator.render(Generator.ja va:1214)
2. I used to create a RunTimeContext when I first created a chart instance
and then reused it as the chart changed (adding or removing series). With
2.0, the chart does not update during a Generator.build() call unless I
pass in a new RunTimeContext instance.
3. I can no longer turn anti-aliasing on when using the -DR31ENHANCE flag.
The chart doesn't render at all.
I can log bugs for all/any of these, but I wanted to make sure I wasn't
just doing something wrong. Can anyone provide a code snippet showing the
2.0 way to create a simple chart using an SWT renderer?
Thanks,
--- Patrick
|
|
|
Re: Problems migrating to Chart Engine 2.0 [message #125631 is a reply to message #125568] |
Tue, 07 February 2006 17:34  |
Eclipse User |
|
|
|
"Patrick Paulin" <patrick@marketcontours.com> wrote in message
news:217114b404b36a5af6d405e4eef93488$1@www.eclipse.org...
> I'm using the BIRT Chart Engine and am having some problems migrating to
> version 2.0 from M3. The specific problems I'm having are:
>
> 1. It looks like I'm supposed to use the prepare() method to create a
> RunTimeContext to pass to the Generator. Is this true? When I do that, I
> get the following exception when I attempt to render the chart:
This is optional, you don't need to call it if you don't want to.
>
> org.eclipse.birt.chart.exception.ChartException: $NO-RB$ Source value can
> not be null
> at org.eclipse.birt.chart.factory.Generator.render(Generator.ja va:1214)
>
Can you paste the stack trace?
> 2. I used to create a RunTimeContext when I first created a chart instance
> and then reused it as the chart changed (adding or removing series). With
> 2.0, the chart does not update during a Generator.build() call unless I
> pass in a new RunTimeContext instance.
>
I don't think you can reuse the runtime context, by nature it is linked to a
chart instance. If it worked before, that was lucky.
> 3. I can no longer turn anti-aliasing on when using the -DR31ENHANCE flag.
> The chart doesn't render at all.
>
That should still work normally, maybe it's a consequence of other problems?
> I can log bugs for all/any of these, but I wanted to make sure I wasn't
> just doing something wrong. Can anyone provide a code snippet showing the
> 2.0 way to create a simple chart using an SWT renderer?
Please look in the org.eclipse.birt.char.examples plugin for examples.
>
> Thanks,
>
> --- Patrick
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04169 seconds