Skip to content

Cumulocity Datapoints Charting Widget allows you to create charts showing data from one or more devices. You can create many chart types including line, spline, bar, radar, scatter and bubble. Runtime Installation is available. Created by Global Presales.

License

Notifications You must be signed in to change notification settings

SoftwareAG/cumulocity-datapoints-charting-widget-plugin

Repository files navigation

Cumulocity Datapoint Charting Plugin

This Cumulocity Datapoint Charting Widget Plugin is the Cumulocity module federation plugin created using c8ycli. This plugin can be used in Application Builder or Cockpit. This plugin is to create charts showing data from one or more devices. You can create many chart types including line, spline, bar, radar, scatter and bubble.

Please choose Demo Widget release based on Cumulocity/Application builder version:

APPLICATION BUILDER   CUMULOCITY VERSION   DATAPOINT CHARTING WIDGET PLUGIN 
2.0.x >=1018.0 < 1019.0 1.2.x
2.0.x >=1016.0 < 1018.0 1.1.x

Prerequisites:

Cumulocity c8ycli >=1018.x.x

Features

Chart Types

The Datapoint Charting Widget Plugin currently supports the following chart types

  • line and spline

    • line and spline
    • supporting multiple plots on the same graph
  • bar & horizontal bar

    • supporting stacked
    • horizontal and vertical stacked bars
  • pie & doughnut

    • aggregated by time or value range buckets
    • bucket types
  • radar

  • scatter and bubble

  • There will be more added in the future depending on demand (E.G histogram)_

Customization

  • Selected data ranges configurable (# of measurements, time range)
  • precision of data configurable
  • Choose which Axes are displayed and scaled
  • Show Aggregate data (Moving average, Bollinger Bands, or both)
  • Choose colours for plotted data, data point visibility
  • configurable legend
  • show and hide data by clicking legend items, tool tips
  • configurable label format for times

Options

Installation

Runtime Widget Deployment?

This Cumulocity Datapoint Charting Widget Plugin supports runtime deployment. Download the Runtime Binary and install via Administrations --> Ecosystems --> Applications --> Packages .

QuickStart

This guide will teach you how to add widget in your existing or new dashboard.

  1. Open your application from App Switcher

  2. Add new dashboard or navigate to existing dashboard

  3. Click Add Widget

  4. Search for Datapoint Charting

  5. Select Datapoints

  6. Click Save

Congratulations! Datapoint Charting Widget is configured.

User guide

This guide will teach you how to add the widget in your existing or new dashboard.

NOTE: This guide assumes that you have followed the installation instructions

  1. Open the Application Builder application from the app switcher (Next to your username in the top right)
  2. Add a new dashboard or navigate to an existing dashboard
  3. Click Add Widget
  4. Search for Data Points Charting devices and measurements
  5. See below for the configuration options

The widget configuration page contains a number of configuration attributes.

  • Title : Enter the title which will display at the top of your widget

Device and Measurement Configuration section

  • Datapoints: Select one or more datapoints from the datapoints selector field.

datapoints

  • Group measurements within time unit: This allows you to show raw data, or average or sum measurements them when received within the unit of the range you chose (E.G average values by minute).

    • The time unit you chose for the range will determine how the measurements are grouped. The sum measurements in group checkbox will change from the default of averaging to summing the values.
    • This can be disabled in certain circumstances (See 'Plotting one series against another below')
  • Clear Measurement Cache: We store data for charts within the browser so that if you choose a large volume of historic data we can avoid the delay of retrieving it every time you load the chart. This button will clear ALL data for all the charts.

  • Global Chart Options : Here you can choose things like chart type and display options for axes and the legend. Note the global section will only appear once you have selected the devices and measurements.

global chart setting

NOTE: Once the Datapoints information has been populated, you can click the 'Save' button to configure the widget with the default settings

  • Series Settings : Below the global settings you will see a row for each measurement series you selected. By clicking on the row you will expand options that can be set per series. Depending on the chart type there may be further options which can be exposed by clicking the show advanced options checkbox.

series

  • Change the series display name (reflected in the legend)
  • Change the series plot colour.
  • Currently the line chart has advanced options

series

  • hide measurements will hide the plot of the source data
  • choose an option from the display aggregate drop down to show the colour and averaging period (number of measurements)
  • display aggregate allows you to choose to plot a moving average and/or Bollinger Bands

Pie & Doughnut Charts

When plotting a single series you have the option of choosing a pie or doughnut chart. If you do then you need to aggregate or bucket the data to allow it to be displayed.

  • After choosing your series, change the chart type to pie or doughnut
  • The Amount of data chosen and it's unit will determine the time buckets (categories) in the chart.
  • The following is a pie chart showing counts of measurements within time periods

series

  • We can also create a chart showing the number of measurements within value ranges
    • These are defined in the config
  • The number of buckets will determine the bucket ranges when aggregating by value.

series

Plotting one series against another

The example shown here is a plot of the PH measured against a measure of PO4 (Phosphate) in a boiler. The relationship in this made up example is linear and so we should see a straight line when they are plotted against each other.

It is important to make sure that the data you wish to plot is related in some way, and that the measurements will arrive approximately at the same time.

  • After choosing your series, check the Plot data points from one series against another
  • This will change the display so you can choose the x and y of the chart.
  • Select the color and tolerance of what time stamps should match.

When you choose the 2 series and decide to plot them against each other the configuration will automatically switch on the "group measurements" option.

series

It will be disabled so that it cannot be turned off.

series

The above chart is a basic line chart, but you can use the ability to plot data against another series in other types:

  • radar series

  • scatter series

  • bubble (x,y,r) r = diameter of plotted point series


This widget is provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.


For more information you can Ask a Question in the TECH Community Forums.

About

Cumulocity Datapoints Charting Widget allows you to create charts showing data from one or more devices. You can create many chart types including line, spline, bar, radar, scatter and bubble. Runtime Installation is available. Created by Global Presales.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages