Skip to main content
November 20, 2020
Question

Graph widget Multiple y data on one x

  • November 20, 2020
  • 3 replies
  • 1012 views

I am looking for having multiple y data on one x while using dynamic graph widget for some x points. I wonder if it is possible to do so in the present graph api. x data is time shaped and y data is sensor data.

I mean that sensor might have two (or more ) data on some times.

This topic has been closed for replies.

3 replies

Romain DIELEMAN
ST Employee
November 20, 2020

Hi,

What I have done recently was to use two graph widgets on top of another, one for each y data.

Would that suit your case? There must be a better way to do it but it should be enough for most cases.

/Romain

November 20, 2020

Hi

Thank you @Romain DIELEMAN​ 

Data are comming from 1 sensor not 2 sensors, so the solution you made doesnt fit mine. The solution I my self think about is to change (simply double) the number of data in the graph since data can be recieved from sensor in two modes, full speed and half speed.

I wonder if this can be done in the run time of the program, not at the initilization time?

And I wonder if I can have 2 (or more) Y points on one X drawn by the order of addition?

November 24, 2020

Dear @Romain DIELEMAN​ 

Any help, solution or recommendation is appreiated.

Can I change the number of graph points at run time?

November 30, 2020

Dear @Romain Dieleman

Help me please.