This page shows how to get started with Wijmo's Sunburst chart control.
Here are the steps for getting started with the Sunburst chart control in AngularJS applications:
var app = angular.module('app', ['wj']);
The sample shows how to use the Sunburst chart with Grouped CollectionView.
The Sunburst chart control has five basic properties that allow you to customize its layout and appearance:
The example below allows you to see what happens when you change these properties. Also, clicking on a sunburst slice will display a tooltip for the data point.
The legend properties can be used to customize the appearance of the chart's legend. You can also use the header and footer properties to add titles to the Sunburst chart control.
The following example allows you to change the Sunburst's legend.position, header, and footer properties in real-time.
The Sunburst chart control allows you to select data points by clicking or touching a sunburst slice. Use the selectionMode property to specify whether you want to allow selection by data point or no selection at all (default).
Setting the selctionMode property to Point causes the Sunburst to update the selection property when the user clicks on a sunburst slice, and to apply the "wj-state-selected" class to the selected element. Setting the Sunburst's selectionMode property to Series or None will disable selections within the control.
The Sunburst chart offers three additional properties to customize the selection:
The appearance of the Sunburst chart control is largely defined in CSS. In addition to a default theme, we include several professionally designed themes that customize the appearance of all Wijmo controls to achieve a consistent and attractive look.
You can customize the appearance of the Sunburst chart control using CSS. To do this, copy the CSS rules from the default theme to a new CSS file and modify the properties as needed.
In this example, we added the "custom-sunburst-chart" CSS class to the control and defined some CSS rules to change the fill, font family, and font weight of the header and fill color of the slices.