sathish gouda

sathish gouda

  • NA
  • 14
  • 49.9k

prevent chart control c# y-axis from having decimal point

Mar 4 2013 2:46 AM
Ive a chart control in my windows form app and currently I have one data which only has the value of 1 for the y-axis. however, the y-axis shows starts from 0, 0.1,0.2, etc. how do I prevent my chart control from having decimal point and make the color shades the point 0 to 1 only? Ive done the code below but the y-axis number changes to 1 all the way... can anyone help me with this?chart1.ChartAreas["ChartArea1"].AxisY.LabelStyle.Format = "#";