This topic is locked
[SOLVED]

 label on each segment pie chart

11/8/2018 3:40:33 AM
PHPRunner General questions
F
firecloud author

try solution from here but got error

Chart label

chart.labels().textFormatter("{%x}");

chart.labels().position("outside");


Uncaught TypeError: chart.labels(...).textFormatter is not a function

at constructor.Runner.Charts.chartModifyHandlers.internodeCall (RunnerAll.js:73)

at Object.setupChart (RunnerAll.js:64)

at Object.success (RunnerAll.js:57)

at j (loadfirst.js:1)

at Object.fireWith [as resolveWith] (loadfirst.js:1)

at x (loadfirst.js:1)

at XMLHttpRequest.b (loadfirst.js:1)
F
firecloud author 11/8/2018



try solution from here but got error

Chart label

chart.labels().textFormatter("{%x}");

chart.labels().position("outside");


Uncaught TypeError: chart.labels(...).textFormatter is not a function

at constructor.Runner.Charts.chartModifyHandlers.internodeCall (RunnerAll.js:73)

at Object.setupChart (RunnerAll.js:64)

at Object.success (RunnerAll.js:57)

at j (loadfirst.js:1)

at Object.fireWith [as resolveWith] (loadfirst.js:1)

at x (loadfirst.js:1)

at XMLHttpRequest.b (loadfirst.js:1)



this one is working.

chart.labels().position("outside");

chart.labels().format("{%x} ({%YPercentOfTotal}{decimalsCount:2}%)");