Home
Designing Analytics Reports
Single colored line displayed for SVG output in pie chart
Migrateduser
<p>Hi,</p>
<p> </p>
<p>In SVG output of BIRT pie chart there is a single colored line displayed for zero values, using color of the last item with zero value. See screenshot for a better idea.</p>
<p> </p>
<p> </p>
<p>I replaced the zero values with null which removes them from pie chart, including colored line and keeps them in legend. Which is fine, but if i upload them to ReportServer, its SVG chart renderer still displays single colored line in graphs. </p>
<p> </p>
<p>Would be possible to remove the zero values from chart using onRender script? I found this one for labels but can't figure out one for actual values.</p>
<p> </p>
<div>function beforeDrawDataPointLabel( dph, label, icsc )</div>
<div>{</div>
<div>if( label.getCaption().getValue() == "0 | 0%" ){</div>
<div>label.setVisible(false);</div>
<div>}</div>
<div>}</div>
<div> </div>
<p> </p>
<p> </p>
<p>Thanks,</p>
Find more posts tagged with
Comments
There are no comments yet