The Donut chart is a Pie chart variation with the ability to display a single series of data in a two-dimensional circle. It is useful for displaying data as parts of a whole.
Metrics - 1 metric Attributes - 1 or more attributes. For each combination of attribute elements, one slice will be created. For example in the screenshot below for every combination of Month and Category, a slice is created. Use as Filter Option - Available
We can modify the data labels for the data labels and centre label also. You can see the attached screenshots below.
We have an option to enable/disable the Show total in Center label in the Pie chart
From Version 5.1.1, we have added the option ‘Show Overlapping Labels’ in the data labels menu.
From the 4.5 version of Vitara charts, a feature is introduced in pie chart to customize inner radius, start and end angles.
All these customizable properties are available in the ‘Pie’ tab of the property editor. See the screenshot below.
As you can see in the above screenshot, the outer radius is 100% which cannot be changed. And the default inner radius is 70, default both pie start and end angles are set to 90.
Now, let us customize the pie chart with some of these settings.
Inner radius - 10; Pie start angle - 0; Pie end angle - 90.
Inner radius - 0; Pie start angle - 0; Pie end angle - 360. These settings create a full Pie chart.
Inner radius - 40; Pie start angle - 0; Pie end angle - 180.
In the business point of view, certain part of the chart needs to be highlighted to draw more attention from the desicion makers. For example, highlight the stores where total sales is greater than a specific value or highlight the top 10 products whose sales is high during last year’s winter. Thresholds are very useful objects in these use cases.
Thresholds will display some conditional formatting in a chart to highlight certain data points depending on predefined criteria.The criteria are attribute or metric qualifications. If a qualification’s expression evaluates to TRUE, the report displays the threshold. We can also include markers in thresholds.
To apply thresholds in vitara charts, hover the cursor on the chart. Vitara chart will display an ‘Edit’ button. When you click on this ‘Edit’ button the properties window will pop out. Select the thresholds tab to open threshold editor. In the window you can add a new threshold or delete any existing threshold or modify the existing threshold.
Note: From 4.6 version we can apply thresholds using attributes. The source drop down box in the threshold editor window will list all the attributes and metrics in the chart. we can select an attribute as source and define a threshold condition.
In the threshold editor window apply source, target, threshold condition and the other related information to set a threshold on the chart.
After giving all the inputs click on ‘Apply’ button.
Play by - animation shows the chart for each element of the first attribute. For more details about the play by feature please refer to play-by.
The steps to set a background image for all Vitara charts are explained in backgroundImage.
Pie chart supports small multiples feature. Small multiples feature is explained in smallMultiples.
From version 5.0, Gradient color fill can be added where the series property is available.
It can be enabled by selecting options from the series tab for individual series.
It will show the color palette, which will have two selection handles to choose two colors that will render from beginning to end on the series. (From left to right)
From version 5.1 , we have added pattern fill options that can be enabled under the series tab.