the main things i want to fix are the legend text is correct, but the colour boxes do not match the colours used in the graph, and i would like to put a label or similar on the yaxes, i guess i could use a label control over the drawing area, but figure there should be someway to do that within the graph

First you need to note that the Chart command has a comment of "This component is not stable yet". I agree that the 'Labels' command seems to do nothing, in fact the syntax 'help' says it is 'Read only'!

I could not get your code to run as it was missing bits, but I took what I could and made effort to get it running and came up with the attached.

but the colour boxes do not match the colours used in the graph

I don't quite understand what the problem is here as it seems to work OK for me.

i guess i could use a label control over the drawing area, but figure there should be someway to do that within the graph

It would be nice but I can't find out how to do this. You might try creating a new Class and add the Labels or hack the Gambas source code and see if you can understand how the Labels are supposed to work.

I expect you have looked at the Chart Example I put on the Gambas Farm.

From what I can work out from your code you seem to have worked out how to use this.

If you could upload a working program including a sample data file that might help.

First you need to note that the Chart command has a comment of "This component is not stable yet"

that was about 5 years ago, it looks like the programmer has lost interest in this

here is my code, obviously some stuff is nothing to do with the graph, i will probably move the graphing into a separate procedure later, some comments to explain code for other components not required for testing graph, the code is still a bit messy as i keep trying different things, then do not always remember to remove

I don't quite understand what the problem is here as it seems to work OK for me.

i am not sure why mine do not match, as i see yours are perfect, i will post a screen shot

Screenshot from 2018-06-22 21-58-25.png (13.78 KiB) Viewed 1787 times

also i note that the screenshot above, the uploads legend looks similar to the data color, on one monitor. on the other screen it looks more like yellow, though the data columns look green, the downloads legend looks purple on the other monitor, data green
your sample matches on both monitors

For Each aln In adt
If Not aln Then Continue
Chart[i + 1].Values = [Val(Split(aln)[0]), Val(Split(aln)[1])]
Inc i
Next