primefaces-extensions / primefaces-extensions.github.com

Organization repo, only for homepage, wiki and issue tracker
https://primefaces-extensions.github.io/
70 stars 22 forks source link

unable to add custom css in pe:gChart #794

Closed maniratna2019 closed 4 years ago

maniratna2019 commented 4 years ago

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 }\"}

maniratna2019 commented 4 years ago

i got the answer for my problem https://stackoverflow.com/questions/61492942/how-to-show-absolute-value-in-tooltip-in-a-pegchart

melloware commented 4 years ago

Thanks I will update my Showcase example to help future people as well.