Home
Designing Analytics Reports
Radar Chart API - Cannot Access WebLineMax/Min
Migrateduser
<p>I am trying to edit the Web Line Scale of a Radar Chart but can't seem to do it.</p>
<p> </p>
<p>in the Chart's onRender script I am adding this:</p>
<pre class="_prettyXprint _lang-js">
function beforeGeneration( chart, icsc )
{
var rSeries = chart.getSeriesDefinitions().get(0).getSeries().get(0);
rSeries.setWebLineMax(800);
}
</pre>
<p>and I get the error:</p>
<pre class="_prettyXprint _lang-">
Chart RadarChart:
+ TypeError: Cannot find function setWebLineMax in object org.eclipse.birt.chart.model.component.impl.SeriesImpl@1c954ab (visible: true, seriesIdentifier: , labelPosition: Outside, stacked: false, translucent: <unset>). at line 15 of chart script:''
</pre>
<p>As the Series is returned as type SeriesImpl rather than RadarSeriesImpl how can I modify the WebLineMax and WebLineMin properties?</p>
<p> </p>
<p>Regards,</p>
<p> </p>
<p>Paul</p>
<p> </p>
<p>If you want to know why I wish to do this is because I want to leave the setting on Auto to calculate the range itself then set the WebLineMin to zero as I do not want a non-zero origin. The above is purely test code.</p>
Find more posts tagged with
Comments
There are no comments yet