BIRT Pie chart can grow property? -
i have pie chart using birt. works fine problem shows data "fitted" in chart's size. there "can grow" property equivalent pie charts? mean data shows if resize pie chart larger one. if choose larger amount of data, won't fit again. need size "auto resize" according how many data displayed.
i tried modifying advanced settings nothing worked
- format - overflow: auto, scroll , visible
- push down - set true
i not see other properties related pie chart formatting. can point me right direction? thanks.
nevermind, found here tweaked bit. onrender event of chart type this:
function afterdatasetfilled(series, dataset, icsc) { if( series.getseriesidentifier() == "categoryseries" ){ if( dataset.getvalues().length <= 4 ){ icsc.getchartinstance().getblock().getbounds().setwidth(450); icsc.getchartinstance().getblock().getbounds().setheight(250); } if( dataset.getvalues().length > 4 && dataset.getvalues().length < 8 ){ icsc.getchartinstance().getblock().getbounds().setwidth(450); icsc.getchartinstance().getblock().getbounds().setheight(400); } if( dataset.getvalues().length > 8 ){ icsc.getchartinstance().getblock().getbounds().setwidth(450); icsc.getchartinstance().getblock().getbounds().setheight(600); } } } "categoryseries" title of "simple series" type can found in "format chart" tab when chart double clicked.
Comments
Post a Comment