cancel
Showing results for 
Search instead for 
Did you mean: 

Graph widget Multiple y data on one x

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.

4 REPLIES 4
Romain DIELEMAN
ST Employee

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

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?

Dear @Romain DIELEMAN​ 

Any help, solution or recommendation is appreiated.

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

Dear @Romain Dieleman

Help me please.