MappView - XY Chart

Hi,

why there isn’t the “ChartInterpolationType” parameter in XY Chart?

It would be very helpful for us

Hi,

honestly spoken I don’t know.

But from a mathematical point of view, I assume that interpolation is not possible in the way we know.

If having a time based chart, your base value = time has a equidistant steady incline which is predictible and therefore easy to interpolate without any speculation.
But in a x,y system this is not the case.
Even if interpolating between 2 x,y tupels this would not really lead to an information that is reliable as “nearby truth”, as there’s no implicit dependency in the values.

At least this is what I think, but I could be completely wrong :smiley:
Maybe someone else knows it?

Best regards!

I found few posts where we talked about XY Chart:
Chart configuration in mappView - Ask Questions / HMI & Visualization - B&R Community

MappView API? - Ask Questions / HMI & Visualization - B&R Community
Ciao
Valerio

Hi Alexander,

in the LineChart it is possible also using “LineChartIndexAxis” (not time based).

Thanks Valerio,

but it wasn’t helpful.

@hobi72 any idea, recommendations,guidelines?

Thanks
Ciao

Valerio

:thinking:

The XYChart is technically on a different basis, compared to the LineChart. The XYChart uses a commercial chart library, while the LineChart was handcrafted.
At the time the XYChart was specified I guess there were simply no requirements for this function.

Usually I would recommend to use the WDTC to expose the needed functions - but in this case it is a little problematic, as you’d need to have a license for the chart library, too.

I guess there is currently not much I can offer.

CHH

Thanks so much Christian for your answer!

Ciao
Valerio