locked
DotnetCharting - Y-axis showing decimal values RRS feed

  • Question

  • User1730419165 posted

    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.

    Tuesday, December 20, 2011 12:07 AM

All replies

  • User1501365188 posted
    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 .

    Tuesday, December 20, 2011 12:22 AM
  • User-818781221 posted

    If you're using .netCHARTING, try setting

    chart.YAxis.MinimumInterval = 1;

    Wednesday, December 21, 2011 2:19 PM
  • User1730419165 posted

    Thanks for the help. Chart.Yaxis.MinimumInterval=1 worked very well !.

    Tuesday, January 17, 2012 6:15 AM