Flex line charts: baseAtZero

baseAtZero... this little property helped save me a lot of code. The client didn't like that the charts were sometimes so squished because the charts always started at 0 but none of the data was close to the zero range. I was going to loop through the data in each chart and set the min and max... but then I discovered this property.


<mx:verticalAxis>
<mx:LinearAxis id="vaxis" baseAtZero="false"/>
</mx:verticalAxis>


All it does basically is stop the chart from forcing the vertical axis start at 0, and therefore starts it based on the data.

Comments

Popular posts from this blog

Flex Advanced Data Grid collapses on refresh

Add and remove lineseries - Flex LineChart