How to change the static graph line's color?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-22 8: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.
Labels:
- Labels:
-
TouchGFX Designer
1 ACCEPTED SOLUTION
Accepted Solutions
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-22 10:25 PM
I got it.
// the static graph object is named graph1
graph1Line1Painter.setColor(0x00FF00);
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-22 10:25 PM
I got it.
// the static graph object is named graph1
graph1Line1Painter.setColor(0x00FF00);
