Configuring the Sunburst Chart
Create a table using the Data Designer, configure a data source and use a special interface to configure the Sunburst chart in your model.
Implementation:
- Create a table using the Data Designer and include every level of hierarchical data you want displayed in the chart.
- Create a data source, and select the table you want to use.
- Add a question to your model and set the type to Sunburst.
- Double-click the question to open the Properties tab.
- Click the Configure button. The configuration dialog will open in the Configuration panel, displaying the General tab.
- (Optional) Adjust the chart's size by setting its Height and Width accordingly.
- (Optional) Use the Start Angle and End Angle options if you want to specify how much of the circle the chart should fill. Enter the numbers representing the degrees of the circle's circumference where the chart will start and end.
To display the chart as a complete circle, leave the default settings.
- (Optional) Use the Inner Radius slider to adjust the size of the chart's root node.
- (Optional) Use the Outer Radius slider to adjust the chart's size when it's rendered.
- (Optional) Choose a theme for your chart by selecting a Colour Palette from the drop-down menu.
- (Optional) Switch to the Appearance tab.
- (Optional) Tick the Show Legend check box to display a legend alongside the chart. Choose where you want it to be docked in the chart area when it's rendered.
- (Optional) Tick the Enable Highlighting check box to apply highlighting when you hover your cursor over segments of the chart.
- (Optional) Use the Highlight Mode drop-down menu to choose which segment of the chart you want to highlight.
- (Optional) Use the Highlight Type drop-down menu to choose whether the highlight should be a solid Color or change the Opacity of the non-highlighted segments.
- (Opacity Type Only) Use the Opacity field to adjust the transparency levels of the non-highlighted segments of the chart.
- (Optional) Tick the Show Data Labels check box to display text on top of the data points in the chart.
- (Optional) Choose a Font, and click the ellipses to set the Size of the data labels.
- (Optional) Use the Overflow Mode drop-down menu to select how to display data labels when their length exceed the segment's size.
- (Optional) Use the Rotation Mode drop-down menu to select whether you want data labels to be tilted to match the angle of their respective segment.
- (Optional) Switch to the Interaction tab.
- (Optional) Tick the Enable Zooming check box if you want users to zoom to only view specific segments. When this is active, users can double-click a segment to update the chart to only display the select segments and any sub-segments.
This option will only work if the On Region Click field is empty.
- (Zooming Only) Use the Control Position (Horizontal) and Control Position (Vertical) drop-down menus to choose where in the chart area you want the zoom controls to appear.
- (Optional) Tick the Enable Animation check box, and use the Animation Type drop-down menu to animate the chart when it is initially rendered.
- (Optional) To perform an action when clicking a segment in the chart, enter its keyword in the On Region Click field.
One way you can use this is to fetch a value from the clicked segment by using the SunburstGetValue function.
- Switch to the Data Source panel.
- Select the data source you created earlier from the Data Source drop-down menu.
- (Optional) Apply a filter to the data source by ticking the Use Filter check box, and select it using the Data Source Filter drop-down menu.
- Use the Value Member drop-down menu to select the table column that contains the values you want to display in the chart.
- Switch to the Levels tab.
- Remove the table's ID column - you don't want this information to be displayed in your chart when it's rendered.
- (Optional) Click the Remove button to delete any table columns you don't want displayed in the chart.
- (Optional) Click the Reset button if you make a mistake, to undo the changes made in the previous step.
- (Optional) Use the Up and Down arrows to adjust the order of the columns. Doing this will affect how they're organised when you view the chart.
- Click Save.
To customise what you'll see when you view the chart in a chosen browser, refer to Customising the Sunburst View.