Scada-LTS icon indicating copy to clipboard operation
Scada-LTS copied to clipboard

Fixed refresh chart-line and chart-range

Open Limraj opened this issue 6 months ago • 0 comments

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

  1. Login as admin;
  2. 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);
  3. Copy id for vdp;
  4. Go to 'Graphical Views';
  5. Created new Graphical View as gv;
  6. Added "HTML Component" with content: <div id="chart-line-0" point-ids="data_point_id" refresh-rate="1000"/>
  7. Click on 'Save';
  8. We see the generated graph for the set point, but despite refreshing every 1 second, the graph is not updated -> error;
  9. 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

Limraj avatar Jul 31 '24 14:07 Limraj