google / google-visualization-issues

288 stars 35 forks source link

GWT wrapper 1.0.2; ScatterPlot, logScale (both XY) => X axis has two 0s. #94

Open orwant opened 9 years ago

orwant commented 9 years ago
What steps will reproduce the problem? Please provide a link to a
demonstration page if at all possible, or attach code.

1. replace
samples/VisualizationShowcase/src/com/google/gwt/visualization/visualizationshowcase/client/ScatterDemo.java
with the attached file

2. start the hosted mode
(launch-scripts/<platform>/VisualizationShowcase-shell) and open the
ScatterChart example. X axis will have the following values: 0, 0, 1, 10,
100..., and it should be 0,1,10,100...

What component is this issue related to (PieChart, LineChart, DataTable,
Query, etc)?
ScatterPlot

Are you using the test environment (version 1.1)?
(If you are not sure, answer NO)
No (version 1.0.2)

What operating system and browser are you using?
Mac, FF 3.5 & Safari 4.x. Also tried IE7 on WinXP. 

*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by amavisto on 2009-10-19 16:29:48


orwant commented 9 years ago
actually, it's mathematically impossible to have a zero on a logscale axis - so
please remove both zeros!!!

Original issue reported on code.google.com by manuel.weiss on 2009-10-22 14:06:38

orwant commented 9 years ago
I assume the playground uses v1.1 so this is still an issue. Replace the drawVisualization()
method with attached.

This seriously limits the quality of presentation of scientific data which often involves
small numbers. Scale should continue down below 1 as 0.1, 0.01, 0.001...

The attached example has fairly small y values (e.g. 10^-8; also common) and 0.00000001
is an inappropriate label so labels should automatically switch to exponent notation
or a property should be exposed to control label formatting.

Original issue reported on code.google.com by geowerks on 2010-08-17 15:01:49