This content has been marked as final. Show 9 replies
You can explicitly set the height and width of a chart by using the height and width attributes. You can also reduce the empty space around the chart by adjusting the container's gap properties (horizontalGap and verticalGap) and padding properties (paddingTop, paddingBottom, etc). For the chart itself, you can adjust the size of the gaps between the labels and the borders by using the gutter properties (details here: http://livedocs.adobe.com/flex/3/html/charts_formatting_03.html).
Thankx for the pointer but it did not help.. what is happening is: on the right side and bottom side of the chart it is leaving a white space of almost equal of the width of chart.
Tried setting container properties like horizontal gap, padding to 0 etc but does not help. here is the code:
<mx:Accordion id="headCountAccordion" selectedIndex="0"
<mx:VBox label="Today" horizontalGap="0" verticalGap="0">
<mx:HBox horizontalGap="10" verticalGap="0">
<mx:ColumnChart id="HeadCountChart" width="30%" height="30%" showDataTips="true" >
<mx:ColumnSeries displayName="Head Count" yField="headcount" />
Can you post a complete sample that illustrates this issue? tnks,
I uploaded the workspace at the provided location. Just unzip and open in ur flex ide.
It has minimal stuff and it shows a lot of gap in right and left side of the chart. However, if i put a datagrid or component it does not show any un-ncecessary gaps.
Ok, I ran the example and see a lot of whitespace... but that's what you are going to get when you set the chart to 30% of the width of the container. I think what you really want is to reduce the size of the container so that there is less whitespace?
I m sorry but you missed the stuff. Even if you removve height and width property from chart still you will notice there is a lot of white space.
any updates please?
I wasn't able to reduce the whitespace with a few things I tried. I would suggest posting your question on the Flexcoders mailing list. Maybe someone can help out there. The link is:
any one any other update please? Thankx danger42 for trying out....