Pie Chart Node
Pie Chart Node
The Pie Chart node enables you to display percentages or proportional data. Each slice can be assigned a different color. Usually, the percent of each category is displayed next to the chart.
Pie charts are best suited to displaying data for 6 or fewer categories.
Adding a Pie Chart node to your workflow
- First, select your desired solution and navigate to Rayven Workflow.
- Select ‘Visualizations’ from the left-hand panel.
- Find the Pie Chart node and drag it onto the canvas.
- Connect the Pie Chart node to your desired input node.
- Double click on the Pie Chart node to open its configuration window.
Configuring your Pie Chart node
- First, give your node a Name. Choose something simple that clearly explains its purpose.
- Next, select the Pie Typefrom the dropdown menu:
- Slice per value (count only): Each chart slice will represent the number of times a particular value occurs in the data field name. The count will increase by 1 each time the node receives that value.
- Slice per child field: Each child field within the data field name will have its own slice of the pie. The corresponding child field data will determine its value.
- Slice per device: Each device (or device filter) will have its own pie slice. The corresponding device (or device filter) data will determine its value.
- Enter your Data Field Name: the field within the incoming payload with the data value(s) you want the widget to display.
- For Pie Types set to per child field or per device, you must choose a Functionto apply based on your desired chart calculation. The options are:
- Sum,
- Average,
- Maximum,
- Minimum,
- Last value received,
- Last Value from Each Device with Common Tag.
- Choose your Calculation Interval to determine the length of time this function should be calculated over. You must enter this as an integer.
- Select a Unit of Measurement from the dropdown menu. These range from minutes to years.
- You can enter a Widget Refresh Interval to determine how often the chart updates in seconds. You must enter this as an integer.
- We recommend you set the number of decimal places for your data using Decimal Precision.
Using the Color Picker
The color picker section allows you to configure the color segments of your chart. For each slice, you can enter a Hex Color code and the Data Field Value to which it should apply.
Clicking 'Add Color' will let you add more slices until all the values in your chart have a color.
Grouping by device label
You might want to set how data should be grouped and displayed on the widget. To group data by device label, you must first create at least one label in the Device Labels section of the Workspace. See Creating Device Labels and Configuring Nodes Using Labels for more information.
- Select the label you will be using to filter devices and enter it under Device label name.
- Select a method for grouping dashboard data from the dropdown options:
- No Grouping (widget per device): one Pie Chart widget will appear for each device.
- Group by device label value (widget per label value): one Pie Chart widget will appear for each unique label value. For example, if the device label is ‘Color’ and the label values are ‘Green’ and ‘Gold’, the dashboard will display two widgets. One will show data for devices labeled ‘Green’, and the other for devices labeled ‘Gold’.
- Group by device label name (one widget): only one widget will be displayed, containing data from all devices with the chosen device label.
See Also: Creating a dashboard, Creating device labels, Configuring nodes using labels
As of Release: 08.12.2021