Here I defined tooltip property and legend properties but does not appear in chart.
On inspection of the page i found out
chart:"{\"type\":\"PieChart\",\"options\":{\"pieSliceText\":\"value\",\"tooltip\":\"{isHtml: true,text: \u0027value\u0027}\",\"legend\":\"{ position: \u0027top\u0027, \u0027alignment\u0027: \u0027start\u0027 }\"}
GChartModelBuilder chartBuilder = new GChartModelBuilder(); chartBuilder.setChartType(GChartType.PIE); chartBuilder.addColumns("Topping", "Slices"); chartBuilder.addRow("Sleep", 7);
chartBuilder.addRow("Work", 6); chartBuilder.addOption("pieSliceText", "value"); chartBuilder.addOption("tooltip", "{isHtml: true, text:'value'}"); chartBuilder.addOption("legend","{ position: 'top', 'alignment': 'start' }");
Here I defined tooltip property and legend properties but does not appear in chart. On inspection of the page i found out chart:"{\"type\":\"PieChart\",\"options\":{\"pieSliceText\":\"value\",\"tooltip\":\"{isHtml: true,text: \u0027value\u0027}\",\"legend\":\"{ position: \u0027top\u0027, \u0027alignment\u0027: \u0027start\u0027 }\"}