You can use the
xChart class or b4x library.
Attached a small project with your example.
xChart doesn't draw a curve joining the bars like in your picture, because for me, it has no meaning.
View attachment 87244
The example project includes the xChart CustomView module.
If you want to use it, you might better use the xChart.b4xlib.
Just a question:
What represents the value of 255 in 'total marks 255' ?
If I calculate the total of the 4 values, what I did in the demo program, I get 270.
Therefore the question.