Project

General

Profile

Support #8711

Loading Y-axis values on moving Live 2D graph using WCartesianChart

Added by Someshwar DK about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
06/18/2021
Due date:
% Done:

0%

Estimated time:

Description

Hello,

I am currently using WCartesianChart for the live display of incoming data on Y-axis received once every second with Data/Time on X-axis. Written code creates a model with WStandardItemModel of size 64 with Date/Time on X-axis and incoming integer values to be plotted as Scatter-plot on Y-axis.

The problem we are seeing is, after 64 seconds of seeing Live graph, code circles back to loading data into the model starting from 0. While the X-axis moves forward, the Y-axis continues to load on the first 64 columns of X-axis and the plot does not move forward beyond 64th column.

Which API do I use to keep offsetting the column on X-axis once model reaches the last data point?

I tried using setXSeriesColumn(64) but this did not work and frankly, I do not completely understand the usage of this API. Some code snippets for live 2D graph would be helpful. Most examples I have seen show static display and not live display.

No data to display

Also available in: Atom PDF