Set the legend.position option to "bottom":

new google.visualization.ColumnChart(document.getElementById('visualization'
)).
draw(data, {
    title: "Requirements",
    legend: {
        position: 'bottom'
    }
});


On Tuesday, October 21, 2014 4:17:59 PM UTC-4, Abdul Javeed wrote:
>
> How to have the legend at the bottom of the bar chart? Here is my 
> code.....Thanks
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml";>
>   <head>
>     <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
>     <title>
>       Google Visualization API Sample
>     </title>
>     <script type="text/javascript" src="https://www.google.com/jsapi
> "></script>
>     <script type="text/javascript">
>       google.load('visualization', '1', {packages: ['corechart']});
>     </script>
>     <script type="text/javascript">
>       function drawVisualization() {
>         // Create and populate the data table.
>         var data = google.visualization.arrayToDataTable([
>           ['Quantity', 'Capabilities', 'User Stories', 'Detailed 
> Requirements'],
>           ['Requirements',  100,   200,   50]  
>         ]);
>
>         // Create and draw the visualization.
>         new 
> google.visualization.ColumnChart(document.getElementById('visualization')).
>             draw(data,
>                  {title:"Requirements"
>                  }
>             );
>       }
>       
>
>       google.setOnLoadCallback(drawVisualization);
>     </script>
>   </head>
>   <body style="font-family: Arial;border: 0 none;">
>     <div id="visualization" style="width: 100%; height: 350px;"></div>
>   </body>
> </html>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to