Re: Piechart Display issue

344 views
Skip to first unread message

asgallant

unread,
Sep 25, 2012, 2:54:18 PM9/25/12
to google-visua...@googlegroups.com
Normally, the slice would be drawn as a single line if it is so small, but in the case of 3D pie charts, the slices don't render at all if below a certain size (which, I suspect, is the point at which the width of the slice on the outer edge of the pie would be less than 1 pixel).

You can make the pie slice render by artificially increasing it's value in the DataTable.  Make sure to set the formatted value of the data point to the correct value so it will display properly.

To handle this automatically, you can play around with the ideas in this demo: http://jsfiddle.net/asgallant/b4yCL/.  The second option (chart 3) is the one you want.

On Tuesday, September 25, 2012 10:27:23 AM UTC-4, chartuser wrote:
Hi All,

I have set the sliceVisisiblity threshold to "0" to display all slices, But the legend displays the label, but the piechart does not display the slices

sample data:

 var data = google.visualization.arrayToDataTable([
          ['Task', 'Hours per Day'],
          ['Work',     55000],
          ['Sleep',    5]
        ]);

        var options = {
          title: 'My Daily Activities',is3D: true, sliceVisibilityThreshold: 0
        };


In the above sample, the work legend occupies 100% and does not show the other legend sleep.

kindly let me know is there any other option to display both the slices in the chart.
Reply all
Reply to author
Forward
0 new messages