Add Series - Bubble

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
AGF
Newbie
Newbie
Posts: 34
Joined: Mon Feb 21, 2011 12:00 am

Add Series - Bubble

Post by AGF » Wed Jul 20, 2011 5:38 pm

Code: Select all

 Dim Line_Bubble As New Steema.TeeChart.Styles.Bubble
            frm.TChart1.Series.Add(Line_Bubble)
            tx = frm.TChart1.Series.Count - 1
            frm.TChart1.Series(tx).Tag = CvO.ImportPath
            For i = 0 To DataSet.Tables(0).Columns.Count - 1
                LabelValue = CStr(DataSet.Tables(0).Rows(ValueField1).Item(i))
                XValue = CDbl(DataSet.Tables(0).Rows(ValueField2).Item(i))
                YValue = CDbl(DataSet.Tables(0).Rows(ValueField3).Item(i))
                RadiusValue = CDbl(DataSet.Tables(0).Rows(ValueField4).Item(i))
                frm.TChart1.Series(tx).Add(XValue, YValue, RadiusValue, LabelValue, Color.Aqua)
            Next i
brings this error:

Error 29 Overload resolution failed because no accessible 'Add' accepts this number of arguments.....

But in your Doc is described

Code: Select all

public Int32 Add(System.Double, System.Double, System.Double, System.String, System.Drawing.Color)

???

Thanks and Best Regards

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Add Series - Bubble

Post by Sandra » Thu Jul 21, 2011 10:14 am

Hello AGF,

I have made next simple code where is using the method add that is described in documentation: public Int32 Add(System.Double, System.Double, System.Double, System.String, System.Drawing.Color) and this works fine for me.

Code: Select all

Private Sub InitializeChart()
	Dim Bubble As New Steema.TeeChart.Styles.Bubble(tChart1.Chart)
	Dim rnd As New Random()
	Dim Xvalues As Double, Yvalues As Double, RadiusValue As Double
	Dim LabelValue As [String]
	For i As Integer = 0 To 9
		Xvalues = i
		Yvalues = rnd.[Next](10)
		RadiusValue = 3
		LabelValue = i.ToString()
		Bubble.Add(Xvalues, Yvalues, RadiusValue, LabelValue, Color.Aqua)
	Next

End Sub
Could you please, check if previous code works as you expected?

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

AGF
Newbie
Newbie
Posts: 34
Joined: Mon Feb 21, 2011 12:00 am

Re: Add Series - Bubble

Post by AGF » Mon Jul 25, 2011 4:30 pm

It works well

Post Reply