sets the template for the pie inner labels
webix.ui({
view:"chart",
type:"pie",
label:"#month#",
pieInnerText:"#sales#",
...
})
The property is applicable only to pie charts
As a function, the property accepts a data object and is called for each data item:
webix.ui({
view:"chart",
type:"pie",
pieInnerText:function(obj){ return obj.sales;},
...
})
pieInnerText template function takes 3 parameters:
pieInnerText: (item, totalValue, levelIndex)=>{
const percent = Math.round(item.sales/totalValue*100) + "%";
if(!levelIndex)
return `<span class="group">${item.country}<br/>${percent}<span>`;
return percent;
}