MSChart1.Plot.SeriesCollec
MSChart1.Plot.SeriesCollec
Main Topics
Browse All TopicsI'm using VB6 and have been so far successful in using the MSchart control for charts. I'm using MS Chart Control 6.0 (OLEDB).
I have loaded the data as follows
frmChart.MSChart1.ChartDat
My question is: Can I change the existing datapointlabels of a series?
I have tries to use the following code, but I get an error saying the index is out of bounds.
.Plot.SeriesCollection(1).
I have tried iterations with DataPoints.Item(1).DataPoi
Is it possible to access the individual datapoints?
Many thanks in advance for your help.
Bobweather
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
No response from bobweather from 7/16/2003 comment
Award points to chimist(50%) and supunr(50%) is recommend.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
planocz
EE Cleanup Volunteer
Business Accounts
Answer for Membership
by: chimistPosted on 2003-07-16 at 09:01:22ID: 8935752
u can i u don't use ChartData but Data Proprety, in this follow example u can view what i want mean :
GraVarC is my MsChart
Rec is My Recordset
'==================
If Rec.RecordCount <> 0 Then
GraVarC.Visible = True
GraVarC.ColumnCount = 2
GraVarC.RowCount = Rec.RecordCount
GraVarC.RowLabelCount = Rec.RecordCount
GraVarC.Title = "Variation de Cos Phi et prix du KWH de : " & NomSte & " du mois : " & (Format(CmDateC, "MMMM - yyyy"))
GraVarC.Column = 1
GraVarC.ColumnLabel = "Cos Phi"
GraVarC.Column = 2
GraVarC.ColumnLabel = "Prix KWH"
With Rec
.MoveFirst
Do While Not .EOF
GraVarC.Row = .AbsolutePosition
GraVarC.RowLabel = Format(!Date, "DD")
GraVarC.Column = 1
GraVarC.Data = Round(!Fpr, 3)
GraVarC.Column = 2
GraVarC.Data = Round(!prix_kwh, 4)
.MoveNext
Loop
End With
End if
'=======================