Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Birt Chart with Static Data in Birt Report
Migrateduser
<p>Hi,</p><p>I am new to birt and have browsed through some example code and gone through some videos to understand what birt can do.</p><p> </p><p>Here is my problem:</p><p> </p><p>In my project, I have a birt chart object (of type org.eclipse.birt.chart.model.Chart) constructed using the birt chart api. This is painted on to a SWT canvas. The chart object contains the data statically. The data was precomputed and put into the chart object (using chart.getSeriesDefinitions().add(...))</p><p> </p><p>I am trying to put this pre-constructed chart object into a Birt Report.</p><p>I have been going through the example code in org.eclipse.birt.chart.examples.report.api.StockReport. In this example, static data populates the chart by embedding javascript code in the "open" and "fetch" methods of the data set.</p><p> </p><p>I've tried serializing my chart to XML (using an instance of org.eclipse.birt.chart.model.impl.SerializerImpl) and then pasting the generated xml into a report, replacing a placeholder chart. The previewer complained of not having a "data definition".</p><p> </p><p>Is there a way to put pre-constructed chart objects with static data in a neater way or would I need to do what was done in the org.eclipse.birt.chart.examples.report.api.StockReport example code?</p><p> </p><p> </p><p>Thanks</p>
Find more posts tagged with
Comments
There are no comments yet