google / google-visualization-issues

288 stars 35 forks source link

Gauge color band z-ordering #1107

Open orwant opened 9 years ago

orwant commented 9 years ago
What would you like to see us add to this API?
Gauge chart should do proper z-ordering of color bands in order to allow a yellow range
that extends behind a green range.  Attached is the requested and current, all that
was changed was the ordering of the svg.g.path tags that defined the color bands so
that green was drawn last.  Below is the code options given to the draw javascript
api.

intempgauge.draw(dataView, {width:200, height:200, min:75, max:90, greenFrom:77, greenTo:80,
yellowFrom:75, yellowTo:82});

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

*********************************************************
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 killogge on 2012-12-13 00:16:30


orwant commented 9 years ago
The sequence in which colors bands are rendered is GREEN, YELLOW, RED. So override the
colors value to achieve this effect (In you particular case redColor #00CC00.

I have filed Bug 1195, with working sample, for updating the documentation.

Original issue reported on code.google.com by dpdhole on 2013-04-20 08:14:12