please find the sample code:

DataTable data = DataTable.create();
    data.addColumn(ColumnType.STRING, "Grant Type");
    data.addColumn(ColumnType.NUMBER, "Options");
    data.addRows(4);

    data.setValue(0, 0, "OPT");
    data.setValue(0, 1, 5);
    data.setValue(1, 0, "RSA");
    data.setValue(1, 1, 8);
    data.setValue(2, 0, "RSU");
    data.setValue(2, 1, 17);
    data.setValue(3, 0, "MSS");
    data.setValue(3, 1, 8);
 // Create a minimal pie chart.
        PieOptions pieOptions = PieChart.createPieOptions();
        Options options = pieOptions;
        // Common options
        options.setAxisTitlesPosition("out");
        options.setBackgroundColor(Color.create("F0FFF0", "black", 2));
        ChartArea chartArea = ChartArea.create();
       // chartArea.setTop(5);
        chartArea.setHeight(300);
        chartArea.setWidth(380);
        chartArea.setLeft(8);
        options.setChartArea(chartArea);
//        options.setColors("pink", "black", "white");
        options.setFontName("Arial");
        options.setFontSize(12);
        options.setGridlineColor("blue");
        options.setHeight(400);
//        options.setWidth(380);
        options.setInterpolateNulls(true);
        options.setLegend(LegendPosition.RIGHT);
        TextStyle textStyle = TextStyle.create();
        textStyle.setFontSize(12);
        textStyle.setFontName("Arial");
        options.setLegendTextStyle(textStyle);
        options.setLineWidth(5);
        options.setTitle("Plan Summary");
        options.setTitleTextStyle(textStyle);
        options.setTooltipTextStyle(textStyle);
        options.setWidth(400);

        // Pie specific
        pieOptions.set3D(true);
        TextStyle textStyle1 = TextStyle.create();
        textStyle1.setFontSize(10);
        textStyle1.setFontName("Arial");
        textStyle1.setColor("white");
        pieOptions.setPieSliceText("data");
        pieOptions.setPieSliceTextStyle(textStyle1);
        pieOptions.setPieResidueSliceLabel("Bling");
        pieOptions.setSliceVisibilityThreshold(1/100000);

        Widget widget = new PieChart(data, options);




On Fri, Jan 13, 2012 at 1:24 AM, Jinji <[email protected]> wrote:

> Can you post a sample HTML that demonstrates the problem?
>
> On Thu, Jan 12, 2012 at 2:30 AM, Francis <[email protected]> wrote:
>
>> The slice text in the Pie chart( percentage value) is not showing in
>> IE 8. it is displaying properly in Firefox.
>>
>> Do you know the reason ?  I have set
>> pieOptions.setPieSliceText("percentage"); even i set it as "data"
>> but this is not failing only in IE.
>>
>> --
>> 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.
>



-- 
Thanks,
Francis Xavier S
J2EE Developer ,
Link Market Services,
Sydney, Australia.

-- 
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