Hi Jonny,

I tried your example in the playground, and it seems to work consistently
for me.  I wonder if you are seeing a problem due to some caching.  If so,
this could clear up on its own as caches get flushed.


On Sat, Nov 30, 2013 at 5:32 AM, jonnyG <[email protected]>wrote:

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



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

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