ChartSeries series1 = new ChartSeries("Series Name", ChartSeriesType.Spline);
series1.Style.Interior = new Syncfusion.Drawing.BrushInfo(Color.Blue);
series1.SortPoints = true;
series1.Style.Border.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.chartControl1.Series.Add(series1); |
ChartCustomPoint cp1 = new ChartCustomPoint();
cp1.Symbol.Shape = ChartSymbolShape.Arrow;
cp1.Symbol.Color = Color.Green;
cp1.CustomType = ChartCustomPointType.ChartCoordinates;
cp1.XValue = -100;
cp1.YValue = 58;
this.chartControl1.CustomPoints.Add(cp1); |
ChartSeries series1 = new ChartSeries("Series Name", ChartSeriesType.Spline);
series1.Style.Interior = new Syncfusion.Drawing.BrushInfo(Color.Red);
series1.Styles[1].Symbol.Shape = ChartSymbolShape.Arrow;
series1.Styles[1].RelatedPoints.Width = 1;
series1.Styles[1].Symbol.Color = Color.Red;
series1.Styles[1].Symbol.Border.Color = Color.Red;
series1.Style.Border.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
series1.Style.Border.Width = 3; |
ChartCustomPoint cp1 = new ChartCustomPoint();
cp1.Symbol.Shape = ChartSymbolShape.Circle;
cp1.Symbol.Color = Color.Green;
cp1.Symbol.Border.Color = Color.Transparent;
cp1.Symbol.Size = new Size(10,10);
cp1.CustomType = ChartCustomPointType.ChartCoordinates;
cp1.XValue = 10;
cp1.YValue = 10;
this.chartControl1.CustomPoints.Add(cp1);
ChartCustomPoint cp2 = new ChartCustomPoint();
cp2.Symbol.Shape = ChartSymbolShape.Circle;
cp2.Symbol.Color = Color.Green;
cp2.Symbol.Border.Color = Color.Transparent;
cp2.Symbol.Size = new Size(10, 10);
cp2.CustomType = ChartCustomPointType.ChartCoordinates;
cp2.XValue = 50;
cp2.YValue = 10;
this.chartControl1.CustomPoints.Add(cp2);
ChartCustomPoint cp3 = new ChartCustomPoint();
cp3.Symbol.Shape = ChartSymbolShape.Arrow;
cp3.Symbol.Color = Color.Red;
cp3.Symbol.Border.Color = Color.Red;
cp3.CustomType = ChartCustomPointType.ChartCoordinates;
cp3.XValue = 50;
cp3.YValue = 10;
this.chartControl1.CustomPoints.Add(cp3); |