BIRT_retrieving Data (from Data sets) in scripted Chart
Hello everyone,
I'm using BIRT All-in-one Version working on a report where i created a chart using script. I added a chart through Chart-builder( any charts type), and then went to the script button and in the beforeGeneration() i coded the chart and changed it's type to Bar chart
When you open my attached report, you'll see on the Layout a scatter chart, but when you view the report it displays a bar chart which i programmed in the script window.
Here i'm using s scripted data source.
but If you look into the script, you'll see that I've added custom Data per Hand like (A,B,C.....) and numbers like (244,250.....)
Now the question is : How can I a retrieve the data from my Data set ,that i created into the Chart-script. ????
Please see the following picture for better Understanding. Also the example is attached with this post.
Looking forward for some help and thanks in Advance
Khaled
Comments
-
Hi Khaled,
I don't know of a way to get the Data Set values in beforeGeneration. However, this works:
function afterDataSetFilled( series, dataSet, icsc ) { importPackage(Packages.java.util); var list = Arrays.toString(series.getDataSet().getValues()); }
The event triggers for both the X-axis and the Y-axis. Each time it returns an array of data for the Data Set column assigned to the axis.
Warning No formatter is installed for the format ipb1
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 104 General Questions
- 141 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management