Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Single colored line displayed for SVG output in pie chart
haringa
<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
haringa
<p>I found the culprit causing this issue.</p>
<p> </p>
<p>Grouping was enabled in Edit Chart -> Select Data -> Category Definition -> Edit Grouping and Sorting. It's all good now.</p>