sangohan / gwt-chronoscope

Automatically exported from code.google.com/p/gwt-chronoscope
GNU Lesser General Public License v2.1
0 stars 0 forks source link

RangeAxis.setRange() method does not update unit labels #95

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
One of my datasets is a percentage value. If the values of this
dataset fall between say 40 and 55, then the dataset axis goes from
40-55.

I want it to always show 0-100, no matter what the values (assume that
the values will never be less than 0 or greater than 100). I had already
requested this in the group
(http://groups.google.com/group/chronoscope/browse_thread/thread/f9bf2cc04e74d24
7/de9938f96c0b639f?hide_quotes=no#msg_de9938f96c0b639f).

Turns out there's a bug when using the setRange() method. Using the data
mentioned above, if I call it using setRange(0,100) - in my graph, the
labels for that axis do not go from 0-100, they're still showing 40-55 (or
near that).

However, the actual line is drawn as if the range is 0-100. So, for
example, if I have a line with all 50% values, it's drawn half-way up the
axis, labelled at the 47.5% mark (halfway bewteen 40 and 55).

So the line is drawn in the correct place, but the unit labels are not updated.

Original issue reported on code.google.com by touchfu...@gmail.com on 17 Nov 2008 at 2:27

GoogleCodeExporter commented 9 years ago
After looking through the Chronoscope code, I've learned the correct term for 
'unit
labels'. Replace the phrase 'unit labels' with 'ticks' and the above might be a 
bit
more clear.

Original comment by touchfu...@gmail.com on 19 Nov 2008 at 2:12