ZoomCharts Documentation

Version: 1.21.4 (2025-05-13)
Switch to Version 2.0 (BETA)

Display style

This page describes how to specify the visual look for pie chart.

When a pie or slice is added or updated, style calculation takes place.

Pie style

Pie object has the following style attributes:

The pie style is computed in following steps:

Pie style function

Style function is called with the following parameters: styleFunction(pie). See Object Structure section for info on pie read-only fields you can use in style function.

Slice style

Slice object have the following style attributes.

The slice style calculation uses multiple steps to compute the final style.

Slice style function

Style function is called with the following parameters: styleFunction(slice, slice.data). See Object Structure section for info on pie read-only fields you can use in style function.

The default slice style function is:

    slice.label = slice.percent.toFixed(1) + "%";
    if (slice.data.name) {
       slice.label = slice.data.name + " " + slice.label;
    }
X