Skip to main content
FDigi
Associate III
December 26, 2022
Question

How to get Y and X position from datapoint in static graph?

  • December 26, 2022
  • 1 reply
  • 1011 views

I need to know X and Y position from some points in static graph widget. Is it possible to getX and getY from the vector datapoint of static graph?

This topic has been closed for replies.

1 reply

Yoann KLEIN
ST Employee
December 29, 2022

Hello @FDigi​,

You should be able to access the X and Y coordinates of your StaticGraph points thanks to the xValues and yValues members of the StaticDataGraph class.

/Yoann

Yoann KLEINST Software Developer | TouchGFX