Scada-LTS
Scada-LTS copied to clipboard
Fixed refresh chart-line and chart-range
Description There is a problem with refreshing the chart state for the chart-line and chart-range components: https://github.com/SCADA-LTS/Scada-LTS/blob/develop/scadalts-ui/src/components/amcharts/readme.md
To Reproduce
- Login as admin;
- Created Virtual Data Source as vds (enabled, udpate:1s) and Virtual Data Point as vdp (enabled, settable, numeric, random, min:0, max:123, start: 0);
- Copy id for vdp;
- Go to 'Graphical Views';
- Created new Graphical View as gv;
- Added "HTML Component" with content:
<div id="chart-line-0" point-ids="data_point_id" refresh-rate="1000"/>
- Click on 'Save';
- We see the generated graph for the set point, but despite refreshing every 1 second, the graph is not updated -> error;
- Analogously for the websocket setting, i.e. with "HTML Component" with the content (for version >= v2.7.1):
<div id="chart-line-0" point-ids="data_point_id" web-socket-enabled/>
Spec:
- Scada-LTS Version: v2.6.18