Back

Dashed slices and labels

Shows how to assign different dash areas.

Documentation Open in JSFiddle
Start Free Trial Purchase

HTML

HTML
<script src="https://cdn.zoomcharts-cloud.com/1/nightly/zoomcharts.js"></script>

    <div id="demo" style="width: 100%">
    </div>

CSS

CSS
//No CSS for this example 

JavaScript

JavaScript

    var chart = new PieChart({
        container: document.getElementById("demo"),
        area: { height: null },
        theme: PieChart.themes.gradient,
        data: { url: "/dvsl/data/pie-chart/browsers.json" },
        slice: {
            margin: 3,
            style: {
                lineDash: [3, 5],
                lineColor: "blue",
                label: {
                    backgroundStyle: {
                        lineColor: "black",
                        lineDash: [6, 6, 3, 3]
                    },
                    textStyle: {
                        font: "30px arial"
                    },
                    padding: 5,
                    borderRadius: 15
                }
            }
        }
    });

Data

Data
//Data too large to output
Download Data