Sign in to follow this  
a_goodgirl

Y Canvas Padding

Recommended Posts

Hello!

Property "canvasPadding" set the space between the canvas border and first & last data points.

How to set this space (between the canvas border and first & last data points) on the Y axis in pixels (without using yAxisMinValue and yAxisMaxValue)?

 

post-24036-0-66191900-1397826579_thumb.jpg

Share this post


Link to post
Share on other sites

Hello!

Property "canvasPadding" set the space between the canvas border and first & last data points.

How to set this space (between the canvas border and first & last data points) on the Y axis in pixels (without using yAxisMinValue and yAxisMaxValue)?

Hi,

 

Please note that padding would not be much helpful here. This gap is because of you data point's value being less than the Y-axis maximum value displayed on the chart.

 

Hence, you can either set the datapoint value to equal the Y-axis max value or set the "yAxisMaxValue" to be equal to the largest value in your data.

 

Hope this helps. :)

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this