I have a chart on a user form that can contain from 0 to 6 series. It's defined as a SPLINE chart.
I would like to put a combobox on the form to allow the users to select the type of chart they prefer.
1 - How can I pass that as a variable into this code?
2 - Can it be applied globally to all series in the chart from one combox?
I would like to put a combobox on the form to allow the users to select the type of chart they prefer.
1 - How can I pass that as a variable into this code?
2 - Can it be applied globally to all series in the chart from one combox?
VB.NET:
Case RBtnPort1.Checked = True
Chart1.Series(0).ChartType = DataVisualization.Charting.SeriesChartType.Spline
Chart1.Series(0).Points.Clear()
For Count As Integer = 0 To DataGridView1.Rows.Count - 2
Chart1.Series(0).Points.AddXY(DataGridView1.Item(0, Count).Value, DataGridView1.Item(2, Count).Value)
Next