Here is my chart:
The maximum value is 771. I've set the chart scale using chds=0,771
and the y-axis scale using chxr=1,0,771
However, the y-axis draws labels and tick-marks every 100 and doesn't
extend above 700.
Surely the y-axis should continue upward past 700 a bit. Take this
line chart for example:
It has values between 0 and 5.35, and the y-axis continues up past 5.
Am I doing something wrong?
Cheers,
Keith
I also tried hard to automatically label and size my chart to minimum
and maximum. For small values it seems to be no problem. I did it with
values like 36.2 48.1 or 15.7
The minimum (!=0) out of an array -2 and the max +2. It worked great.
But bigger values especially with 1 extreme like 25,19,34,26 and 700
seem to make problems.
Automatic labeling is not that good in ome cases , because it makes
the chart sometimes useless. If my values are all between 20 and 30
and the automatic range is 0-100, it is hard to get a look.
Best regards
Oliver
2009/12/17 Cameron <pric...@gmail.com>:
> --
>
> You received this message because you are subscribed to the Google Groups "Google Chart API" group.
> To post to this group, send email to google-c...@googlegroups.com.
> To unsubscribe from this group, send email to google-chart-a...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-chart-api?hl=en.
>
>
>
--
Korrektes Emailen:
_______________
http://www.olivereikel.de/privat/html/email_knigge.html
correct emailing
http://www.olivereikel.de/privat/english/html/email_knigge.html
Setting explicit pixel widths for the columns isn't an option for me,
because I'm writing a wrapper class in ASP.NET which must be general
enough to support charts of various widths.
Instead, I rounded my values up prior to rendering the chart (e.g. 771
became 800 in both the chart scale and axis range).
This seems to be working, but it's an ugly fix.
For anyone else having this problem, to scale up, I use the formula
10^x where x = floor(log10(chart_max)). If the chart max is in the
hundreds (e.g. 224, 771 etc) it rounds up to the next 100 (300, 800
respectively). If the chart max is in the tens (e.g. 24, 81) it rounds
up to the nearest 10 (30, 90 respectively). Same for thousands etc.