pombreda / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

Gauge visualization uses integers for several options #488

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release: 1.1.2

Detailed description:
Several options for gauges use a more restrictive data type (int) than is 
accepted by the Google Chart Tools itself ("number" [1]). See 
setGaugeRange(...), setGreenRange(...), setYellowRange(...) etc. for example.

Workaround if you have one:
Extend Gauge.Options and define new native methods for double typed values.

Links to the relevant GWT Developer Forum posts:
http://groups.google.com/group/gwt-google-apis/t/52d649f0d2b2b0a9

[1] http://code.google.com/apis/chart/interactive/docs/gallery/gauge.html

Original issue reported on code.google.com by rcpau...@gmail.com on 16 Dec 2011 at 2:47

GoogleCodeExporter commented 9 years ago

Original comment by zundel@google.com on 16 Dec 2011 at 3:00

GoogleCodeExporter commented 9 years ago
I don't think that "number" means double. It's just that javascript doesn't 
make any distinction between integers or doubles (loosely typed).
But in fact, those methods should accept doubles, so here goes my patch.

Original comment by rglafo...@gmail.com on 16 Mar 2012 at 10:45

Attachments: