[solved] gb.chart

Post Reply
User avatar
Got2BeFree
Posts: 25
Joined: Saturday 26th November 2016 2:52am
Location: Lost

[solved] gb.chart

Post by Got2BeFree » Wednesday 17th May 2017 3:57am

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?
Last edited by Got2BeFree on Thursday 18th May 2017 5:49am, edited 1 time in total.
I'm wondering around lost in the future, not knowing where the present is.

User avatar
cogier
Site Admin
Posts: 222
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: gb.chart

Post by cogier » Wednesday 17th May 2017 3:41pm

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://novatocodegambas.blogspot.com/2 ... ficas.html and came up with the attached program.

I hope it helps.

Image
ChartExample.tar
(54.5 KiB) Downloaded 64 times
EDIT: - I have put this program on the Gambas Farm as an example.

User avatar
Got2BeFree
Posts: 25
Joined: Saturday 26th November 2016 2:52am
Location: Lost

Re: gb.chart

Post by Got2BeFree » Thursday 18th May 2017 5:48am

Thanks! The .CountDataSets was the missing link! Either I overlooked it or thought it was for some other function. Now on to database mining...
I'm wondering around lost in the future, not knowing where the present is.

Post Reply