PDA

View Full Version : Pie Chart Padding



cwolcott
Jan 15, 2012, 11:15 PM
Does anyone know if there is anyway to reduce the margin/padding around a pie chart. I have removed the legend from the pie chart, but there is still a lot of spacing. I haven't looked at the EXT JS code to see why.

{Author removed attachments}

Other charts seem to not have extra spacing (Bar, Radar, ...)

Daniil
Jan 16, 2012, 8:37 PM
Hi,

There is the InsetPadding property set up in our Pie example.

InsetPadding="60"

The default is 10.

So, you can remove or set up your custom value.

See also
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.chart.Chart-cfg-insetPadding

cwolcott
Jan 16, 2012, 11:28 PM
Thanks, worked perfectly. I feel like an idiot. I will try to read and remember more before I bother you.

Daniil
Jan 17, 2012, 6:30 AM
No problem, please feel free to ask.