All series on a given axis must be of the same data type for line chart

I'm working on line chart using a google js and I have given some sample values for testing and I'm getting the error

All series on a given axis must be of the same data type

Script

 function drawChart() {
            // var data = google.visualization.arrayToDataTable(chartData);
            var data = new google.visualization.DataTable();
            data.addColumn('number', 'Year');
            data.addColumn('string', 'Value');
            data.addColumn('number', 'Quantity');
            data.addRows([
                           [2008,'Value1',36],
                           [2009,'Value2',27],
                           [2010,'Value3',39]
            ]);
            var options = {
                title: "Company Performance Product Category Wise",
                pointSize: 5
            };
            var lineChart = new google.visualization.LineChart(document.getElementById('chart_div'));
            lineChart.draw(data, options);
        }

HTML

 <div id="chart_div" style="width: 600px; height: 400px">
        </div>

Answers


works fine with only two columns...

data.addColumn('string', 'Year');
data.addColumn('number', 'Quantity');
data.addRows([
 ['2008',36],
 ['2009',27],
 ['2010',39]
]);

Need Your Help

Google Anlytics wrong visits

google-analytics analytics

When I select a short period (1 week) I get a correct visits number, however when I select a big period like (1 month and +) I get less than 50% of results, this problem is started from 17 january.

Import Error when use templatetags in Django

python django templatetags

Well, when I'm trying to use 'inclusion' in Django, I met some confused problems that I can't solve it by myself.