Download: Tree Ring
This article explains how to import a Tree Ring Chart from D3 as a plugin in Sisense.
Tree charts show the relationship between different levels of data. It can be used visualizes how certain metrics roll up from the bottom level to the top. See the referenced wiki page on tree charts for more information.
The following steps will walk through the process of adding the new chart type and creating a sample Tree Ring Chart.
Step 1 - Add the Plugin
Download the attachment and unzip the contents into your C:\Program Files\Sisense\PrismWeb\plugins\ folder. If you are using version 7.2 and higher unzip the contents into your C:\Program Files\Sisense\app\plugins\ folder. If the plugins folder doesn't exist, just create it. After those files have been unzipped there, you may also have to restart the web server. Now, when you create a new widget the tree ring chart should show up in the list of options
Step 2 - Create the Chart
On your dashboard, click the Create Widget button and select Advanced Configuration. Next, select the Tree Ring Chart from the chart types menu. Choose between 1 and 3 dimensions to use as the hierarchy, making sure the top level items are listed first. Then, pick a metric to use as the size. The size of each circle should correlate to its value.
- This plugin uses the default sisense color palette, but this can be customized. If you open widget.js in any text editor, there is a variable name Colors on line 127. Enter in your own hex color codes, and they will be reflected in the chart.
- In order to calculate the values for each node, this plugin takes the SUM of the child nodes. This means that the results may look a bit off when using other formulas like COUNT, AVERAGE, MEDIAN, etc.
- UPDATED 11/20/2015 - Updated to fix an issue with the center node's tooltip. It used to show the max value of the inner ring, now it shows the total for the whole widget. Also the colors used come from the dashboard's color palette.
- UPDATED 11/21/2015 12/1/2015 - Fixed an issue that appeared when only showing 1 level of nodes.
Please sign in to leave a comment.