Discover the Point of Interest feature in Discovery. How to handle it and store new datapoints selected by an end user.

We recently added a new feature in Discovery. It is called "Point of Interest" (POI for short). The main goal of this feature is to provide a way to mark a datapoint in a chart and do something with it, like storing a value in a new GTS.
POIs are supported by various charts: line, spline, stepped, area, spline-area, map, scatter, bar, and annotations.
In this blog post, I will teach you how to use it.
Define a dashboard
To do so, go to https://studio.senx.io/ and use our "discovery" snippet. Here is the scaffold of our dashboard.
Dataset sample
Now, we can add our first tile that represents our dataset:
You should obtain something like this when you click on a datapoint:
Display POIs in an array
The next step is to simply display our POIs.
Just add a new "tabular" tile that handles POIs events:
Here is the result:
Store Points of Interest into a GTS
At first, we generate (for this post) tokens for the Sandbox. Go to https://sandbox.senx.io/ and click on "Enter Sandbox". Keep somewhere read, write, and tokens.
Update the dashboard variables:
Now, we add a hidden tile in order to handle POIs and store them in a specific GTS.
In this sample, we will store booleans at the given timestamp. But, you can also remove a Point of Interest by clicking on a datapoint with a matching timestamp. So, the easiest way to handle this case is to delete all POIs from our GTS before inserting new ones.
Add the hidden tile:
Display the POI GTS
Now we can remove the tabular tile and add an annotation tile with an auto-refresh over websocket feature:
Here is the final result:
You can find the complete code here. Obviously, you have to use your own tokens and replace placeholders.
Going further
Now you know how to use Points of Interest in Discovery. But you can also define a more complex behavior:
- by preloading the POI GTS within the line chart and using the marker mechanism to symbolize them.
- by adding a test at the first display of the annotation chart to avoid a complete deletion of POIs
You can learn much more about Discovery by reading specific blog posts or by visiting the dedicated web site.
Have fun.
Read more
Server monitoring with Warp 10 and Telegraf
Discovery Tips&Tricks #4 - Production-ready! 
Create a custom tile for Discovery

Senior Software Engineer