Hi,
Chart API allows you to control position of ticks, the font size and the
text. You can explicitly set the number of ticks and their text as you see
fit.
Google has also an Interactive Chart API (javascript based) that does much
better job and scaling the axis according to the data - please try using
that:
http://code.google.com/apis/visualization/interactive_charts.html

--Ed

On Thu, Aug 12, 2010 at 3:20 PM, Noddy <[email protected]> wrote:

> Hi,
>
> There appears to be a problem with your Chart API when the legend is
> positioned to the right or left. The problem appears to be that the
> tick marks on the x axis do not take in to consideration the size of
> the legend when it is determining how far apart and how often the tick
> marks should be displayed, thus they write over one another making it
> difficult or impossible to read.
>
> This example is with the legend to the bottom and the x axis tick
> marks are readable:
>
> http://chart.apis.google.com/chart?chxr=0,2008,2009|1,0,5500&chxs=0,676767,11,0,lt,676767|1,676767,11,0,lt,676767&chxt=x,y&chs=140x400&cht=lxy&chco=FF0000,FF9900,0000FF,C3D9FF&chds=2008,2009,0,5500,2008,2009,0,5500,2008,2009,0,5500,2008,2009,0,5500&chd=t:2008,2009|0,5500|2008,2009|0,550|2008,2009|0,1500|2008,2009|0,500&chdl=Total+Sold+(Hammer)|Avg.+Sold+Lot+Value|Total+Bought+(Hammer)|Total+Bought+Lot+Value&chdlp=b&chg=100,50&chls=2|1,5,5|1|1,5,5
>
> In this example, we have moved the legend to the right and increased
> the width of the chart by 140 (this is the approximate size in width
> that the legend takes up). As you can see the x axis tick marks are
> unreadable.
>
> http://chart.apis.google.com/chart?chxr=0,2008,2009|1,0,5500&chxs=0,676767,11,0,lt,676767|1,676767,11,0,lt,676767&chxt=x,y&chs=280x400&cht=lxy&chco=FF0000,FF9900,0000FF,C3D9FF&chds=2008,2009,0,5500,2008,2009,0,5500,2008,2009,0,5500,2008,2009,0,5500&chd=t:2008,2009|0,5500|2008,2009|0,550|2008,2009|0,1500|2008,2009|0,500&chdl=Total+Sold+(Hammer)|Avg.+Sold+Lot+Value|Total+Bought+(Hammer)|Total+Bought+Lot+Value&chg=100,50&chls=2|1,5,5|1|1,5,5
>
> You have to increase the size of the chart to 360 before the x axis
> tick marks become readable.
>
> http://chart.apis.google.com/chart?chxr=0,2008,2009|1,0,5500&chxs=0,676767,11,0,lt,676767|1,676767,11,0,lt,676767&chxt=x,y&chs=360x400&cht=lxy&chco=FF0000,FF9900,0000FF,C3D9FF&chds=2008,2009,0,5500,2008,2009,0,5500,2008,2009,0,5500,2008,2009,0,5500&chd=t:2008,2009|0,5500|2008,2009|0,550|2008,2009|0,1500|2008,2009|0,500&chdl=Total+Sold+(Hammer)|Avg.+Sold+Lot+Value|Total+Bought+(Hammer)|Total+Bought+Lot+Value&chg=100,50&chls=2|1,5,5|1|1,5,5
>
> Hope this is clear for you. Please come back to me if you need
> anything further to help resolve this issue.
>
> Thanks.
>
> --
> 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