This is a known issue with BarChart . Please star this issue (
http://code.google.com/p/google-visualization-api-issues/issues/detail?id=626
).
You'll receive an update as soon as it's closed.

/R.

On 25 July 2011 19:03, Amir <[email protected]> wrote:

> Hi,
>
> When we use a number range filter with a barchart, if the range
> doesn't include any data this error message shows up: One or more
> participants failed to draw()
>
> To regenerate the error you can simply use the code in playground for
> that as follows and choose a range like: 56-60
>
> Here is the example from playground:
>
> function drawVisualization() {
>  // Prepare the data
>  var data = google.visualization.arrayToDataTable([
>    ['Name', 'Age'],
>    ['Michael' , 12],
>    ['Elisa', 20],
>    ['Robert', 7],
>    ['John', 54],
>    ['Jessica', 22],
>    ['Aaron', 3],
>    ['Margareth', 42],
>    ['Miranda', 33]
>  ]);
>
>  // Define a NumberRangeFilter slider control for the 'Age' column.
>  var slider = new google.visualization.ControlWrapper({
>    'controlType': 'NumberRangeFilter',
>    'containerId': 'control1',
>    'options': {
>      'filterColumnLabel': 'Age',
>      'minValue': 0,
>      'maxValue': 60
>    }
>  });
>
>  // Define a bar chart
>  var barChart = new google.visualization.ChartWrapper({
>    'chartType': 'BarChart',
>    'containerId': 'chart1',
>    'options': {
>      'width': 400,
>      'height': 300,
>      'hAxis': {'minValue': 0, 'maxValue': 60},
>      'chartArea': {top: 0, right: 0, bottom: 0}
>    }
>  });
>
>  // Create the dashboard.
>  var dashboard = new
> google.visualization.Dashboard(document.getElementById('dashboard')).
>    // Configure the slider to affect the bar chart
>    bind(slider, barChart).
>    // Draw the dashboard
>    draw(data);
> }
>
> Do you have any idea how I can somehow get around the error message?
>
> Thanks,
>
> Amir.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> 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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
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