google-code-export / google-ajax-examples

Automatically exported from code.google.com/p/google-ajax-examples
1 stars 1 forks source link

Pie Chart #130

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. copy paste the below code in 
https://code.google.com/apis/ajax/playground/?type=visualization#pie_chart
and Run Code.

function drawVisualization() {
  // Create and populate the data table.
  var data = google.visualization.arrayToDataTable([
    ['Task', 'Hours per Day'],
    ['Work', 713],
    ['Eat', 2],
    ['Commute', 2],
    ['Watch TV', 2],
    ['Sleep', 1]
  ]);

  // Create and draw the visualization.
  new google.visualization.PieChart(document.getElementById('visualization')).
      draw(data, {title:"So, how was your day?"});
}
​ 
What is the expected output? What do you see instead?
Pie chart is drawn but in legend the last columns label is shown as "Other" 
instead its should be "Sleep"

What version of the product are you using? On what operating system?
i have used Linux and Windows 8 with Google Chrome 25

Please provide any additional information below.

Original issue reported on code.google.com by ashwinve...@gmail.com on 15 Mar 2013 at 3:17

GoogleCodeExporter commented 9 years ago
This is expected behavior, check "sliceVisibilityThreshold" configuration 
option.

Original comment by domba...@gmail.com on 12 Apr 2013 at 11:12