I am new to Google Visualization API, and I'm having trouble with the 
options on this column chart in a ChartWrapper implementation. Specifically 
if I uncomment the vAxis line, the whole thing breaks, and I can't get the 
title to work either. I'd really like to be able to control the horizontal 
and vertical axes and the title. 

Any help would be great. Thank you! And it's for a good cause (public 
health). 

 // Define a column chart
        var columnChart = new google.visualization.ChartWrapper({
          'chartType': 'ColumnChart',
          'containerId': 'chart1',
          'options': {
            'title': 'Cases',
            'legend': 'right',
            //'vAxis': 'Cases',
            'width': 1600,
            'height': 800,
            'chartArea': {'left': 15, 'top': 15, 'right': 0, 'bottom': 0},
          },
          // Instruct the piechart to use colums 0 (Name) and 3 (Diarrhea)
          // from the 'data' DataTable.
          'view': {'columns': [0, 4, 5]}
        });
      
        // Define a table
        var table = new google.visualization.ChartWrapper({
          'chartType': 'Table',
          'containerId': 'chart2',
          'options': {
            'width': '800px'
          }
        });
      
      
        // Create a dashboard
        new 
google.visualization.Dashboard(document.getElementById('dashboard')).
            // Establish bindings, declaring the both the slider and the 
category
            // picker will drive both charts.
            bind([slider, categoryPicker, categoryPickerCommune, 
categoryPickerDistrict], [columnChart, table]).
            // Draw the entire dashboard.
            draw(data);
      }


-- 
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/groups/opt_out.


Reply via email to