Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Pie chart draw issue using scripted datasource
febin
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">Hi I am new to Birt report using scripted data source . Could you suggest the way to supply values to pie chart using the scripted data source. I have a JSON Array of values from backend. My Birt version is 4.3.0</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> </p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">Could you please help me on this . Thanks in advance</p>
Find more posts tagged with
Comments
Zorawar
<p>You will have to create a Scripted data source, and then a scripted data set which defines the data that acts as the source for the pie-chart.</p>
<p>Then the tasks are to supply code/script for the open, fetch and close methods of the created Scripted data set.</p>
<p>1. <span style="font-family:'courier new', courier, monospace;">open()</span> provides the object representing your source of data, say a backend service that returns a collection of interesting objects.</p>
<p>2. <span style="font-family:'courier new', courier, monospace;">fetch()</span> method then iterates over the retrieved objects/values one-by-one</p>
<p>3. <span style="font-family:'courier new', courier, monospace;">close()</span> then contains any clean up code</p>
<p> </p>
<p>This documentation lists the steps you need to do.</p>
<p><a data-ipb='nomediaparse' href='
http://developer.actuate.com/be/documentation/ihub3/help/adg/adg65/index.html#page/ADG/ProgramDataAccess.1.1.html'>http://developer.actuate.com/be/documentation/ihub3/help/adg/adg65/index.html#page/ADG/ProgramDataAccess.1.1.html</a></p>
;
<p> </p>
<p>Though the steps are for the iHub product, they apply to open source BIRT as well. The documentation is much more clear than the eclipse help for BIRT.</p>