I'm trying to get my scatter plot to show the labels automatically and despite turning it on, it doesn't show them. I can only get tooltips to work.
Any thoughtsL? I've also posted this question here with the source: http://stackoverflow.com/questions/15094892/unable-to-show-labels-in-google-scatter-chart Here is my draw method: drawChart: function() { var self = this; var gdpMin = parseFloat(self.scores[0].gdpScore); var gdpMax = gdpMin; var teaMin = parseFloat(self.scores[0].teaScore); var teaMax = teaMin; var data = new google.visualization.DataTable(); data.addColumn('number', 'GDP Score'); data.addColumn('number', 'TEA Score'); data.addColumn({type:'string', role:'label'}); $.each(self.scores, function(i, score) { gdpScore = parseFloat(score.gdpScore); teaScore = parseFloat(score.teaScore); data.addRows([[gdpScore, teaScore, score.partner]]); if (gdpScore < gdpMin) gdpMin = gdpScore; if (gdpScore > gdpMax) gdpMax = gdpScore; if (teaScore < teaMin) teaMin = teaScore; if (teaScore > teaMax) teaMax = teaScore; }); var options = { title: 'GDP and TEA Scores', hAxis: {title: 'GDP', minValue: gdpMin, maxValue: gdpMax}, vAxis: {title: 'TEA', minValue: teaMin, maxValue: teaMax}, legend: 'none', colors: ['#3B7CBF'] }; var chart = new google.visualization.ScatterChart(document.getElementById('chart_div')); chart.draw(data, options); -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
