Drag and Drop table – aggregation block
Input: Bind from loadHistory – output
Column: “row”
Method: count
Drag and Drop logic – if block
Input 0: Bind from tableAggregation – output
Op: >
Input 1: “1”
Then: Bind from loadHistory – output
Drag and Drop date time – date range block
Input: Bind from metricGraph – Symbol Properties - selectedRange
Right click on formatted, select Pinned
Drag and Drop String Operations – Split
Input: Bind from dateRange – formatted
Separator: “/”
Drag and Drop Variables – Table
Click on data – table tab in properties panel
Generic table window will pop up
Double click on v1, change it to “timestamp”
Double click on v2, change it to “value”
Right click on v3, select Delete
Right click on row 2, select Delete
Right click on row 1, select Delete
Right click on row 0, select Delete
Close table window
Name: “singleValue”
In properties window, click save – invoke
Drag and Drop Table – Add Row
Click on plus
Name: “start”
Table: Bind from singleValue – output
Column 0: “timestamp”
Column 1: “value”
Duplicate start block
Name: “end”
Click on split – output Table
Move table window off dataflow, so you can see both
Drag and Drop the cell located at row:0 in the value column to start – value 0
Drag and Drop the cell located at row:1 in the value column to end – value 0
Drag and Drop Data Services – Load Value
Click on loadHistroy
In properties panel hover over blue dot of path
Right click on it, select Copy Binding
Click on loadValue
In properties panel hover over blue dot of path
Right click on it, select Paste
Bind value to start – value 1
Bind value to end – value 1
Drag and Drop logic – delay block
Delay: “0.2”
Input 0: Bind from metricGraph – List – Value
Output 0: Bind to start – invoke
Click on start
Invoke: Bind to end - invoke
Drag and Drop Table – Remove Rows
Invoke: Bind from metricGraph – List – Value
Table: Bind from singleValue
Condition: “row >= 0”
Click on singleValue
Data: Bind to if – else
Click on if
Output: Bind to metricGraph – Chart – Series – Series Series Properties Advanced – Data Source
Double click on output blue dot to hang binding window