Hi Travis,
Thanks for contacting Syncfusion support. We have analyzed your query and tried to replicate the reported scenario at our end. But using this.controls.find() method, we can find the Syncfusion chart component and modify it since the chart does not exist at the design time. Please find the below code example.
[C#]
|
ChartControl chart = new ChartControl();
chart.Name = "chartControl1";
ChartSeries series = new ChartSeries();
series.Points.Add(1, 20);
series.Points.Add(2, 10);
series.Points.Add(3, 30);
series.Points.Add(4, 15);
chart.Series.Add(series);
chart.Skins = Skins.Metro;
this.Controls.Add(chart);
InitializeComponent();
Control[] controls = this.Controls.Find("chartControl1", false);
ChartControl chart1 = controls[0] as ChartControl;
chart1.Series[0].Points[3].X = 5;
chart1.Series[0].Points[3].YValues[0] = 20; |
In the above code, we have created the chart control with name “chartControl1” and added it to the forms. After adding the chart component, we have find the chart using this.Controls.find() and changed the X and Y values of the last point in the chart. Now the chart will render like below.
In the below link, we have attached sample for your reference.
Kindly check the sample and let us know if you have any concern.
Thanks,
Sanjith.