Associate
August 9, 2019
Solved
drawing a filled graph, with multiple colours
- August 9, 2019
- 5 replies
- 1814 views
I need to display a filled graph, where some portions of the graph needs to be displayed in different colour than the basic colour of the graph.
The graph is displayed using a canvas widget, created in touchgfx 4.10.0.
In the drawCanvasWidget function, the graph is drawn using lineTo commands. (The filled effect is created by drawing a series of vertical lines adjacent to each other). The problem is that colour of the line can not be changed in the drawCanvasWidget function as the function is const.
So, how can the part of graph be drawn in multiple colours?
A sample of the graph is in the file attached.
Regards
Mathews
