Pie chart draw issue using scripted datasource

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


 


Could you please help me on this . Thanks in advance


Comments

  • edited May 29, 2017

    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.


    Then the tasks are to supply code/script for the open, fetch and close methods of the created Scripted data set.


    1. open() provides the object representing your source of data, say a backend service that returns a collection of interesting objects.


    2. fetch() method then iterates over the retrieved objects/values one-by-one


    3. close() then contains any clean up code


     


    This documentation lists the steps you need to do.


    http://developer.actuate.com/be/documentation/ihub3/help/adg/adg65/index.html#page/ADG/ProgramDataAccess.1.1.html


     


    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.


Sign In or Register to comment.