Hi,

Thanks for letting us know.
We will look into this.

- VizBoy.

On Thu, Jan 8, 2009 at 10:46 PM, Austin <[email protected]> wrote:

>
> It looks like the API determines the size of the y-axis item labels by
> counting the number of characters in the label and not the actual
> width of the font character. A workaround for this is to prefix the
> longest label with more spaces.
>
> code (notice 10 l's vs. 5 m's):
>
> <html>
>  <head>
>    <script type="text/javascript" src="http://www.google.com/jsapi";></
> script>
>    <script type="text/javascript">
>      google.load("visualization", "1", {packages:["barchart"]});
>      google.setOnLoadCallback(drawChart);
>      function drawChart() {
>        var data = new google.visualization.DataTable();
>        data.addColumn('string');
>        data.addColumn('number');
>        data.addRows(2);
>        data.setValue(0, 0, "llllllllll");
>        data.setValue(1, 0, "mmmmm");
>        data.setValue(0, 1, 28);
>        data.setValue(1, 1, 15);
>        var chart = new google.visualization.BarChart
> (document.getElementById('chart_div'));
>        chart.draw(data, {width: 350, height: 180, is3D: false,
> legend: 'none'});
>      }
>    </script>
>  </head>
>
>  <body>
>    <div id="chart_div"></div>
>  </body>
> </html>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Visualization 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-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to