PDA

View Full Version : [OPEN] [FIXED] Charts: Bad rounding of maximum value



Nitro
3 Mar 2011, 4:03 AM
Hey,

line charts can extend over their axes and go into the invisible area beyond the chart. This is especially noticeable with floating point numbers < 10. It's caused by bad rounding in Ext.chart.axis.Axis.calcEnds.

I changed the code to:



out = Ext.draw.Draw.snapEnds(min, (max >> 0) + 1, me.steps);


and after this my starts don't get chopped off at the chart's border anymore

-Matthias

Jamie Avins
3 Mar 2011, 10:07 AM
Thank you for the report.

philogb
7 Mar 2011, 1:52 PM
Hi, this makes sense, thanks again. It will be fixed in the next release.