Page 1 of 1

Multiple graph instances programatically

Posted: Tue Apr 28, 2009 11:08 am
by 13051218
I need to create programatically multiple instances of a chart which I will use as a template. I want each graph zoomed and edited individually. The graphs should scroll so that I can see the whole set.

Could you provide an example in VB6 which I can follow in order to acheive this or something similar?

Thanks for your reply

Posted: Tue Apr 28, 2009 2:47 pm
by 13051218
I'm afraid you made a mistake and answered another question

Posted: Tue Apr 28, 2009 2:50 pm
by yeray
Hi Yacu,

Yep, sorry, I've just corrected it. I'm investigating your issue right now and I'll answer you as soon as possible.

Posted: Wed Apr 29, 2009 10:13 am
by yeray
Hi Yacu,

You should be able to create a chart at runtime like this:

Code: Select all

Dim chartObj As New TeeChart.TChart
And then you should be able to create series or what you want, normally:

Code: Select all

chartObj.AddSeries scHorizBar