2024-10-22 08:50 PM
Hi there,
As the title, I use a static graph with a line, and I want to change the line's color according the data.
But I check the API of static graph in TouchGFX document, I didn't find the function like setColor() or setLineColor().
How can I do it by code?
Thanks
Solved! Go to Solution.
2024-10-22 10:25 PM
I got it.
// the static graph object is named graph1
graph1Line1Painter.setColor(0x00FF00);
2024-10-22 10:25 PM
I got it.
// the static graph object is named graph1
graph1Line1Painter.setColor(0x00FF00);