Skip to main content



      Home
Home » Archived » BIRT » RCP + BIRT Chart
RCP + BIRT Chart [message #96948] Wed, 07 December 2005 05:40 Go to next message
Eclipse UserFriend
Originally posted by: alfileres.gmail.com

Hi All,

I'm writing an RCP application where one ViewPart will show a BIRT Chart
containing time series for the selected data. The data the application is
handling is in the form (datetime, real value)

As X axis I'm using DATE_TIME_LITERAL (with DateTimeDataSet)
As Y axis I'm using LINEAR_LITERAL (with NumberDataSet)

I need to create the chart once and get it updated everytime the data
changes. By this way the performance of the application can be improved.

I got a ChartException in rendering the Chart (see it at the end of the
message). Do you know what may be going wrong?

Maybe it is easier if you can point me to a snippet with a similar
fuctionality.

Thank you in advance,

Jose.


SEVERE: Exception
org.eclipse.birt.chart.exception.ChartException: Lines may not be rendered
on a value scale
at org.eclipse.birt.chart.render.Line.renderSeries(Line.java:10 0)
at
org.eclipse.birt.chart.render.AxesRenderer.renderPlot(AxesRe nderer.java:1196)
at
org.eclipse.birt.chart.render.AxesRenderer.render(AxesRender er.java:256)
at org.eclipse.birt.chart.factory.Generator.render(Generator.ja va:522)
at
rcptest.view.BIRTView$BIRTViewPaintListener.paintControl(BIR TView.java:93)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:83)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:11 53)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3090 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.UpdateWindow(Native Method)
at org.eclipse.swt.widgets.Decorations.setVisible(Decorations.j ava:1391)
at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1300)
at org.eclipse.swt.widgets.Shell.open(Shell.java:827)
at org.eclipse.jface.window.Window.open(Window.java:783)
at org.eclipse.ui.internal.WorkbenchWindow.open(WorkbenchWindow .java:700)
at
org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:677)
at
org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1282)
at
org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1223)
at
org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:190)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:706)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at rcptest.Application.run(Application.java:18)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Re: RCP + BIRT Chart [message #97088 is a reply to message #96948] Wed, 07 December 2005 10:58 Go to previous message
Eclipse UserFriend
Hi Jose,

Did you set your X Axis as a category Axis?

Thanks,

David

"Jose" <alfileres@gmail.com> wrote in message
news:26a5cd3cb65091b7379180546842a127$1@www.eclipse.org...
> Hi All,
>
> I'm writing an RCP application where one ViewPart will show a BIRT Chart
> containing time series for the selected data. The data the application is
> handling is in the form (datetime, real value)
>
> As X axis I'm using DATE_TIME_LITERAL (with DateTimeDataSet) As Y axis I'm
> using LINEAR_LITERAL (with NumberDataSet)
>
> I need to create the chart once and get it updated everytime the data
> changes. By this way the performance of the application can be improved.
>
> I got a ChartException in rendering the Chart (see it at the end of the
> message). Do you know what may be going wrong?
>
> Maybe it is easier if you can point me to a snippet with a similar
> fuctionality.
>
> Thank you in advance,
>
> Jose.
>
>
> SEVERE: Exception
> org.eclipse.birt.chart.exception.ChartException: Lines may not be rendered
> on a value scale
> at org.eclipse.birt.chart.render.Line.renderSeries(Line.java:10 0)
> at
> org.eclipse.birt.chart.render.AxesRenderer.renderPlot(AxesRe nderer.java:1196)
> at
> org.eclipse.birt.chart.render.AxesRenderer.render(AxesRender er.java:256)
> at org.eclipse.birt.chart.factory.Generator.render(Generator.ja va:522)
> at
> rcptest.view.BIRTView$BIRTViewPaintListener.paintControl(BIR TView.java:93)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:83)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
> at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:11 53)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3090 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
> at org.eclipse.swt.internal.win32.OS.UpdateWindow(Native Method)
> at org.eclipse.swt.widgets.Decorations.setVisible(Decorations.j ava:1391)
> at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1300)
> at org.eclipse.swt.widgets.Shell.open(Shell.java:827)
> at org.eclipse.jface.window.Window.open(Window.java:783)
> at org.eclipse.ui.internal.WorkbenchWindow.open(WorkbenchWindow .java:700)
> at
> org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:677)
> at
> org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1282)
> at
> org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1223)
> at
> org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:190)
> at
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:706)
> at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at rcptest.Application.run(Application.java:18)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
>
Previous Topic:bi-lingual reports?
Next Topic:Report outputs from BIRT
Goto Forum:
  


Current Time: Thu Jul 17 19:27:28 EDT 2025

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

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

Back to the top