defines text inside the donut hole
webix.ui({
view: "chart",
type:"donut",
innerRadius:70,
donutInnerText: "Sales";
},
});
Defined as a string, donutInnerText can take plain text or HTML template as its value. When used as a function, it accepts 2 parameters:
{
view: "chart",
type: "donut",
donutInnerText: function(data, total) {
return (
"<span style='font-size:20px'>"+data[0].type+":</span><br>"+data[0].val
);
}
}