Search code examples
csskendo-uikendo-dataviz

Using Kendo pie charts, is it possible to set the opacity background of the labels?


I am trying to remove the background box of inner labels. Playing around with the debugger, I can set the opacity to 0 and it looks great, but I cannot find an option to set this.Pie Chart


Solution

  • Just set background: "transparent" on the labels object e.g.:

                seriesDefaults: {
                    labels: {
                        template: "#= kendo.format('{0:P}', percentage)#",
                        position: "center",
                        visible: true,
                        background: "transparent"
                    }
                },
    

    DEMO