g.raphael icon indicating copy to clipboard operation
g.raphael copied to clipboard

Inappropriate scale range chosen when graphing small numbers

Open p-jackson opened this issue 12 years ago • 0 comments

When I create a line graph with small y values, the default axis range chosen by g.raphael is far too big.

Here's an example of the problem: http://dl.dropbox.com/u/9193041/g.raphael/scale.html

It looks like the inappropriate range is calculated in the snapEnds function. Here's a potential fix: http://dl.dropbox.com/u/9193041/g.raphael/patch.diff

I've only tried this patch out in Chrome on my plots.

p-jackson avatar Mar 04 '12 23:03 p-jackson