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)
change width of bars in chart
Ele
Hi all¡¡
Is it possible to change the width of the bars in a chart???
Thank you all¡
Find more posts tagged with
Comments
JasonW
You can change the bar widths in the third tab of the chart wizard. Select the Chart Area tree node and then select General Properties. Changing the unit spacing will change the bar widths. You can also change them using script.
function beforeGeneration( chart, context )
{
chart.setUnitSpacing(20);
}
var oldSpacing;
function beforeDrawSeries( series, seriesRenderer, context )
{
oldSpacing = context.getChartInstance().getUnitSpacing();
if( series.getSeriesIdentifier() == "series one" ){
context.getChartInstance().setUnitSpacing(70);
}
}
function afterDrawSeries( series, seriesRenderer, context )
{
context.getChartInstance().setUnitSpacing(oldSpacing);
}
Jason
Ele
Thanks Jason¡