When you call chart.draw, you need to give it the view, not the data.

On Mon Dec 01 2014 at 3:34:28 PM Dustin Böttger <boettgerdus...@gmail.com>
wrote:

> Does not work in my code :-( This is my code.What am i doing wrong?
>
>
>
>
>  function drawMarkersMap() {
>       var data = google.visualization.arrayToDataTable([
>         ['City',   'Anzahl', ],
>
>         ['Albanien',      " & Spieler::Summe Albanien & "],
>         ['Andorra',      " & Spieler::Summe Andorra & "],
>         ['Armenien',      " & Spieler::Summe Armenien & "],
>         ['Aserbaidschan',      " & Spieler::Summe Aserbaidschan & "],
>         ['Belgien',      " & Spieler::Summe Belgien & "],
>         ['Bosnien und Herzegowina',    " & Spieler::Summe Bosnien & "],
>         ['Bulgarien',    " & Spieler::Summe Bulgarien & "],
>         ['Dänemark',    " & Spieler::Summe Dänemark & "],
>         ['Deutschland',    " & Spieler::Summe Deutschland & "],
>         ['GB-ENG',    " & Spieler::Summe England & "],
>          ['Estland',    " & Spieler::Summe Estland & "],
>        ['Färöer',    " & Spieler::Summe Färöer & "],
>
> ]);
>
> var view = new google.visualization.DataView(data);
>           view.setRows(view.getFilteredRows([{
>               column: 1,
>               test: function(v) { return v !== 0; }
>           }]));
>
>
>
>       var options = {
>
>         region: 'world',
>         displayMode: 'markers',
> backgroundColor: '#5E5C5C',
>           datalessRegionColor: '#DAD8D9',
>         colorAxis: {colors: ['black','green', 'red']}
>
>       };
>
>       var chart = new
> google.visualization.GeoChart(document.getElementById('chart_div'));
>       chart.draw(data, options);
>     };
>     </script>
>   </head>
>   <body bgcolor=#5E5C5C>
>     <div id=\"chart_div\" style=\"width: 963px; height: 368px;\"></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 google-visualization-api+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-visualization-api@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
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