Home
DevShare Downloads
Use JS vars to create a chart for every row in a table
JasonW
This example uses one table with 2 detail rows. The first row shows some values. The second detail row plots the points on a chart.<br />
<br />
This example uses two scripts. The first script loads values into a map in the oncreate of the first detail row of the table. The second script is a chart script that reassigns the data for the chart to the values stored in the previous script. A couple of things to note. Look at the chart defintion and you will see a constant 1 is used in the definition for the cat and series values. This is to prevent much time being spent on processing the chart data that will be thrown away in the beforeGeneration of the chart. Also not the reason for using persistent variables is because chart generation happens at report render time and the oncreate for the first detail row happens at report generation time. <br />
<br />
This example uses a scripted data set but any dataset should work.
Find more posts tagged with
Comments
There are no comments yet