You could determine a scale and size that suits what you seem to think is
the best size for the individual aspects of a given chart, and use some
tricks to determine the user's viewable screen size and scale according to
%'s of that.

For instance if you decided your chart looked best at width x and your
viewable browser size was x2 then you can take what % of x2 x is and then
once you have that you have a base.  Do this for the other "objects" that
make up the chart.  Then you can use some tricks to determine the user's
viewable browser area, apply the % of the size you determine above, and give
that a go.  You should be able to make it scale relatively well that way.
 Might not be the best way to do it but it would get you somewhere to start.
 The biggest issue this would give you is that you have to make a cut off
point somewhere down the line.

That would be your best bet atm.

On Wed, Sep 8, 2010 at 8:51 AM, KeithB <[email protected]> wrote:

> Sorry, I'm just a user, not a Chart API developer.
>
> I believe the API was initially used internally and then made
> available to us developers. As such, it's quite powerful, but there's
> never been a "we'll make it look nice for you" kind of feature with
> other charting tools. My guess is that it will never automatically
> scale your data and attempt to create axis ticks/values, but maybe
> someone on the Chart API team can chime in.
>
> With Javascript on the client and various server-side technologies
> that developers can use, are you sure you can't loop through all your
> values? Somehow you're generating a list of values to pass into the
> CHD parameter and it shouldn't be too CPU-intensive to find the min/
> max values and calculate a suitable axis range. If you need help,
> surely someone here on the forum has already done the work...
>
> Good luck,
> Keith
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Chart API" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-chart-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-chart-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-chart-api?hl=en.

Reply via email to