Bar Chart Node

      Bar Chart Node


        Article summary

        Bar Chart Node

        The Bar Chart node displays input data in vertical bars based on predetermined logic. This type of chart is useful for comparing data across different groups or tracking changes over time. It’s most effective when you’re working with bigger changes.


        Adding a Bar Chart node to your workflow

        1. First, select your desired solution and navigate to Rayven Workflow.
        2. Select ‘Visualizations’ from the left-hand panel. 
        3. Find the Bar Chart node and drag it onto the canvas. 
        4. Connect the Bar Chart node to your desired input node.
        5. Double click on the Bar Chart node to open its configuration window.



        Configuring your Bar Chart node

        1. First, give your node a Name. Choose something simple that clearly explains its purpose.
        2. If you want, you can add a Widget Subtitle. This additional text helps explain the data presented in the node. Anything added here will appear directly under the Widget Name in a smaller font.
        3. Select the Device/Device Label Name checkbox if you want the device or label name displayed on the widget.
        4. Next, enter your Input Data Field: the field name within the incoming payload with the data value(s) you want the widget to display.
        5. Choose a Functionto apply to the data based on how you want your chart’s data calculated. The options are:
          • Sum,
          • Average,
          • Maximum,
          • Minimum,
          • Accumulated,
          • As-Is,
          • Last value received.
        6. Enter an X-axis Time Interval to determine the period of input data. It must be an integer.
        7. Select a Unit of Measurement from the dropdown menu. These range from minutes to years.
        8. You can choose your own Widget Refresh Interval to determine how often the chart updates in seconds.
        9. Next, add a Y-axis Name or Title.
        10. If you want chart outputs to appear in a new field, enter this value under Output Field Name.
        11. You can enter a Range for your chart. Range Min should contain the lower value and Range Max the upper.
        12. Check Enable to Display Future Data if you want to plot predictive values.
        13. You can select colors for the bar chart display using the Bar Color field.
        14. If working to Decimal Precision, enter the number of decimal places you want the dashboard data to display.

        Selecting a date format

        To configure any bar chart, you must choose a date format. When configuring your X-axis and Tooltip fields, select from the following options:

        • Default,
        • Date only,
        • Time only.

        Grouping by device label

        You will need to save at least one label in the Device Labels section of the Workspace before configuring this section. See Creating Device Labels for more information.

        1. Select your desired device label and enter it under Device Label Name.
        2. Select a method for grouping the widget on the dashboard from the dropdown options:
          • No Grouping (widget per device) will create a unique widget for each device.
          • Group by device label value (widget per label value) will create a unique widget 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) will display only one widget. It will contain data from all devices that have the device label specified.


        See also: Creating a dashboard, Creating device labels, and Configuring nodes using labels.