I've been playing with a very similar layout for a bar chart and would
offer this suggestion: what about using two different data series with
different colors? Use the first data series for the positive values,
with the negatives marked as missing data and a second series for the
negative values
The Chart API can come close to replicating it: http://tinyurl.com/ya6vhvh
- See the Bar Chart Zero Line section @
http://code.google.com/apis/chart/styles.html#zero_line
- I don't believe you'll be able color the negative/positive bars
differently, so I added red/green marker shape markers, but
Thanks so much for that - fixed all my problems, and I'm now really
enjoying working with this API.
Cheers Keith!
:)
P.S.
Here's the finished, dynamically generated image! http://tinyurl.com/yb5omzx
On Feb 1, 2:07 pm, KeithB kbornho...@gmail.com wrote:
The Chart API can come close to
You might consider using axis styles to make the right edge of your
chart easier to read.
Try adding this to the end of the URL for your chart at
http://tinyurl.com/yb5omzx
chxs=3,00,10,1,l
That will remove the tick marks (that could be mistaken for - sign)
and make the numbers right
I'm having real trouble creating the following chart:
http://i47.tinypic.com/2a4xxsj.png
- I have included the data in the screenshot, but it changes each
time, obviously.
- The total of the data always adds up to zero (if that makes a
difference).
- The negative values should be red, positive