Problem/Motivation

We're adding data streams: #3199413: 2.x Data Stream

In 1.x we had a graph of sensor data. We need to replicate that functionality in 2.x.

Steps to reproduce

N/A

Proposed resolution

I propose we use the Drupal charts module: https://www.drupal.org/project/charts

A really nice feature this module provides is View Chart Attachements... so we can attach a chart to our existing Table view of data stream data. It also has features to build blocks of charts.

I tested out the 5.x-alpha release a few months ago and was able to get it working with Chart.js, but tried again today and ran into some errors. The module supports some other JS charting libraries but not all of their licenses are very friendly. I am biased towards Chart.js since I have used it in the past and think it looks best out of the box.

I'm hoping to use Charts + Chart.js in a custom data stream module and plan to make Chart.js v3 available. Perhaps this can wait a bit for that to catch up. I don't think the integration will be too difficult. #3199377: Chart.js 3.0

Remaining tasks

- Adopt Charts module + charting library
- Add graphs of listener + legacy listener data stream data

User interface changes

- Add graphs of data stream data

API changes

None.

Data model changes

None.

Comments

paul121 created an issue. See original summary.

m.stenta’s picture

Issue tags: +beta blocker
m.stenta’s picture

Moving this to "stable blocker" as it does not need to block "beta".

m.stenta’s picture

Issue tags: -stable blocker +v1 parity

Removing the "stable blocker" tag and replacing it with the "v1 parity" tag, to denote that this does not need to block 2.0.0 release, but remains something that has not yet been ported from v1 to v2.

m.stenta’s picture

Version: 2.x-dev » 3.x-dev