I converted your Java code to an HTML page, and it shows just fine on IE8: http://savedbythegoog.appspot.com/?id=fd278f3d97ef12c1e6d9668234e7d01950339dce
Please provide an example HTML page (not Java code) that demonstrates the problem you are seeing. (BTW, your code has many options that are irrelevant for PieChart, and also, the pieSliceText option doesn't accept "data" as input. See here<http://code.google.com/apis/chart/interactive/docs/gallery/piechart.html#Configuration_Options>for all PieChart options) Just a thought, could it be that you are rendering the chart on a hidden div? The Google Visualization API doesn't support that (when doing that, weird text issues come up, so it might explain what you're seeing). On Fri, Jan 13, 2012 at 12:24 AM, Francis Xavier S <[email protected]>wrote: > 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. > -- 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.
