Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
creating chart filter event handler
rpfong
G'day, all. I have a pie chart from which I would like to remove all 0-sized slices from both the pie and the legend. I can create a filter to do this by checking that the data row that I've used to define the pie slice is > 0.
I'd like to write a generic method to do this via the event handler but I'm uncertain of how to use the JS API to do this. I see the afterDataSetFilled API but I don't understand what values the series & dataset args provide.
Any help is appreciated. Thanks!
Find more posts tagged with
Comments
Virgil Dodson
This link is for an older version but shows what series and dataset are used for.<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/documentation/BIRT_220/ChartJavadoc/chart/api/org/eclipse/birt/chart/script/ChartEventHandlerAdapter.html#afterDataSetFilled(org.eclipse.birt.chart.model.component.Series, org.eclipse.birt.chart.model.data.DataSet, org.eclipse.birt.chart.script.IChartScriptContext'>ChartEventHandlerAdapter
(BIRT Chart Engine API)</a>)<br />
<br />
I also attached a report design that uses the afterdataset filled method to change the chart size.