Hi
New to this group...
the style feature looks great but the one described in bar and column chart 
is not working in the playground (or in my site)...any one any ideas?
Am I missing something obvious??




function drawVisualization() {
  // Create and populate the data table.
   var data = google.visualization.arrayToDataTable([
 
//this bit from the section on how to color in bar charts

 ['Element', 'Density', { role: 'style' }],
        ['Copper', 8.94, '#b87333'],            // RGB value
  ['Silver', 10.49, 'silver'],            // English color name
  ['Gold', 19.30, 'gold'],
  ['Platinum', 21.45, 'color: #e5e4e2' ], // CSS-style declaration
      ]);

  // Create and draw the visualization.
  new google.visualization.BarChart(document.getElementById('visualization')
).
      draw(data,
           {title:"not working",
            width:600, height:400,
           
            vAxis: {title: "Year"},
            hAxis: {title: "Cups"}}
      );
}

Try pasting into the playground - only works occasionally, other times 
returns 'All series on a given axis must be of the same data type

-- 
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