# Perspective Ad Hoc Charting and table display of historic tag collection

**URL:** <https://forum.inductiveautomation.com/t/perspective-ad-hoc-charting-and-table-display-of-historic-tag-collection/23042>\
**Category:** Ignition Early Access\
**Created:** [March 4, 2019, 8:04pm UTC](https://forum.inductiveautomation.com/t/perspective-ad-hoc-charting-and-table-display-of-historic-tag-collection/23042 "2019-03-04T20:04:47Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [March 4, 2019, 10:51pm UTC](https://forum.inductiveautomation.com/t/perspective-ad-hoc-charting-and-table-display-of-historic-tag-collection/23042/6 "2019-03-04T22:51:45Z")

</div>

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](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2990b2e0b62ad0d4211ea1ae1bd8ac38c6ec45ac.json) (2.4 KB)  
[TabulaRasa.zip](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3bf91473bdace9bd6222a95f6d63cef41a1a9ba4.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.

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-ad-hoc-charting-and-table-display-of-historic-tag-collection/23042)._
