[solved] gb.chart

Post

Posted
Rating:
#1 (In Topic #118)
Avatar
Administrator
sholzy is in the usergroup ‘unknown’
 I need to create a graph using data I'm collecting using my RPi. It seems there is very few examples and even less information about the gb.chart component. I can show one line, but I would like to display multiple lines on the chart. Anyone know if this is possible?

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
I thought I'd have a go at this and got it working with one line then re-read your post and noticed you wanted 2 lines! :o  So I had another look and found 'Chart.CountDataSets' which seems to be what you are looking for. I started with some code from here https://novatocodegamb…nte-gbchart-graficas.html and came up with the attached program.

I hope it helps.

 <IMG src="http://www.cogier.com/gambas/ChartExample.png"> </IMG>

Attachment

EDIT: - I have put this program on the Gambas Farm as an example.
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Administrator
sholzy is in the usergroup ‘unknown’
Thanks! The .CountDataSets was the missing link! Either I overlooked it or thought it was for some other function. Now on to database mining…

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top
1 guest and 0 members have just viewed this.