How do you access dataset from a chart element through script
<p style="color:rgb(40,40,40);font-size:15px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">Hello, </p>
<p style="color:rgb(40,40,40);font-size:15px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">I have a chart element in .rptdesign file. it uses the dataset that has two columns (<strong>x</strong>,<strong>y</strong>) and are used to make the plot. </p>
<p style="color:rgb(40,40,40);font-size:15px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">Now depending on how many points are the dataset, I would need to <strong>dynamically</strong> adjust the properties of the chart, through the beforeGeneration() event handler or any other applicable event handler.</p>
<p style="color:rgb(40,40,40);font-size:15px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">Question: how do I access dataset list values from within the beforeGeneration() event handler as shown below:</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">function beforeGeneration( chart, icsc )<br>
{<br>
importPackage( Packages.org.eclipse.birt.chart.model.data.impl );<br>
totalPoints = ????? <br>
}</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> </p>
<p style="color:rgb(40,40,40);font-size:15px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">Thanks!!</p>