Perspective Ad Hoc Charting and table display of historic tag collection

Okay, a few caveats:

  1. you’ll need to have today’s build deployed.
  2. My datasets are pretty simplistic.
  3. There’s got to be a better way to do this, but I was just trying to get you something usable…
  4. There might be a bug when attempting to create a new Series in the XY Chart - we’re investigating.

demotags.json (2.4 KB)
TabulaRasa.zip (10.8 KB)

Steps:
Import the tags from demotags.json
Extract the View from the .zip folder and place it in your Project.
You’ll want to configure a Page Configuration for the new View.
Navigate to the new Page.
Toggling the Toggle Switches and then pressing the button will result in one or the other or both (BUT NOT NONE - I was in a hurry) being rendered in the Chart.

Notes:

  • Instead of Toggle Switches, a multi-select Dropdown would probably be better for determining which tags are displayed.
  • To examine the bulk of the logic, right-click the Refresh button and select “Configure Events”.
  • tag.split('/')[-1] is getting the last token of the split.
  • system.tag.readBlocking was used instead of readAsync because I didn’t want to get into using a callback function.
  • messageType must match exactly the name of the listener configured on the XYChart.
  • To examine the listener, right-click the Chart and select “Configure Scripts”, then select “XYDATACHANNEL”.
  • The self.props.series[i] properties must all be configured in order for a series to render.