I'm trying to test the Google Chart, but I receive follow error:
"One or more participants failed to draw().
The filter cannot operate on a column of type string. Column type must be 
one of: number, date, datetime or timeofday. Column role must be domain, 
and correlate to a continuous axis."

What am I doing wrong?
 


<script type="text/javascript" src="https://www.google.com/jsapi";></script>
    <script type="text/javascript">

         google.load('visualization', '1.0', {'packages':['controls']});
        google.setOnLoadCallback(drawDashboard);
    
      function drawDashboard() {
 var obj = 
[["Date","buy","sell"],["Date(2012,10,2)",15,14],["Date(2012,10,3)",55,51],["Date(2012,10,4)",53,49]];
        var dataa = google.visualization.arrayToDataTable(obj);
        var dashboard = new 
google.visualization.Dashboard(document.getElementById('dashboard_div'));

        var donutRangeSlider = new google.visualization.ControlWrapper({
          'controlType': 'ChartRangeFilter',
          'containerId': 'filter_div',
          'options': {
     'filterColumnIndex': 0,
     'ui': {
      'chartType': 'LineChart',
      'chartOptions': {
        'chartArea': {'width': '90%'},
        'hAxis': {'baselineColor': 'none'}
      },
      'chartView': { 'columns': [0, 1] },
      'minRangeSize': 86400000
    }
          },
        });

        var lineChart = new google.visualization.ChartWrapper({
          'chartType': 'LineChart',
          'containerId': 'chart_div',
          'options': {
                title: 'Title',
          }
        });

        dashboard.bind(donutRangeSlider, lineChart);
        dashboard.draw(dataa);
      }    
</script>

Best regards,
Dragomir

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/hY_rauZ4AD4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to