Last post Jan 17, 2012 06:15 AM by blbose
None
0 Points
3 Posts
Dec 20, 2011 12:07 AM|blbose|LINK
In my chart the y-axis values starts from 0.0, 0.2,0.4.. and so on. Instead i need y-axis to start from 0,1,2....
Please help.
Participant
1340 Points
476 Posts
Dec 20, 2011 12:22 AM|sunilgurjar|LINK
set y-axis min and max values to convert min=Math.Ceiling(min) , max =Math.Ceiling(max ) this value 0.0, 0.2,0.4. show because chart area axis using double value for draw the chart area.so u convert this value using Math.Ceiling(min) function .
Member
10 Points
Dec 21, 2011 02:19 PM|webavail2|LINK
If you're using .netCHARTING, try setting
chart.YAxis.MinimumInterval = 1;
Jan 17, 2012 06:15 AM|blbose|LINK
Thanks for the help. Chart.Yaxis.MinimumInterval=1 worked very well !.
None
0 Points
3 Posts
DotnetCharting - Y-axis showing decimal values
Dec 20, 2011 12:07 AM|blbose|LINK
In my chart the y-axis values starts from 0.0, 0.2,0.4.. and so on. Instead i need y-axis to start from 0,1,2....
Please help.
Participant
1340 Points
476 Posts
Re: DotnetCharting - Y-axis showing decimal values
Dec 20, 2011 12:22 AM|sunilgurjar|LINK
read my blog
http://sunilgurjar.blogspot.com/
Member
10 Points
3 Posts
Re: DotnetCharting - Y-axis showing decimal values
Dec 21, 2011 02:19 PM|webavail2|LINK
If you're using .netCHARTING, try setting
chart.YAxis.MinimumInterval = 1;
None
0 Points
3 Posts
Re: DotnetCharting - Y-axis showing decimal values
Jan 17, 2012 06:15 AM|blbose|LINK
Thanks for the help. Chart.Yaxis.MinimumInterval=1 worked very well !.