User (Legacy) Posted April 13, 2006 Report Posted April 13, 2006 Hi, I have a chart with a numeric Y Axis for decimal numbers like "2.25" I am currently setting the YAxis Step to a decimal number like 0.25. The Step works great, except that sometimes, the first label prints like "1.251456", instead of a number like "1.25". This makes ALL the Y-Axis labels display as really long decimal numbers that are all 0.25 units apart (1.251456, 1.501456, 1.751456, etc). I want to make sure that every Y Axis label is a multiple of 0.25. I was hoping I could set the AsixY.FirstLabel property to 2.25 or 2.5, but I see that the FirstLabel property only supports integers. How can I make sure that all Y-Axis labels are mulitples of 0.25? Thanks, Brook Hunter
Software FX Posted April 17, 2006 Report Posted April 17, 2006 By making the Min a multiple of 0.25 you will ensure all labels are. Something like: chart.AxisY.Min = Math.Floor(chart.AxisY.Min / 0.25) * 0.25; should do it. -- Francisco Padron www.chartfx.com
Recommended Posts
Archived
This topic is now archived and is closed to further replies.