I am using ASP.NET Syncfusion control, ChartWebControl, ChartSeriesType.Spline
I can’t set the series width, and I can’t change the color of the series, could you show me how. I tried to change many of the chart control properties, but these don’t help.
I also tried to use the PrepareStyle event to modify the series properties, but I still can’t set the series width, and I can’t change the color of the series.
Thanks a lot.
void series1_PrepareStyle(object sender, ChartPrepareStyleInfoEventArgs args) {
try {
// Style formatting using a callback. You can apply the same settings directly on the series style on the
// point styles.
ChartSeries series = sender as ChartSeries;
if (series != null) {
//args.Style.DisplayText = true;
//args.Style.TextFormat = "{0}";
//args.Style.TextOffset = 3;
args.Style.TextOrientation = ChartTextOrientation.Smart;
args.Style.Symbol.Shape = ChartSymbolShape.Circle;
args.Style.Symbol.Size = new Size(6, 6);
args.Style.Symbol.Color = Color.BlueViolet;
args.Style.DisplayShadow = true;
//args.Style.BaseStyle.
}
} catch (Exception exc) {
throw exc;
}
}//end RefreshSeries()
ASP.NET ChartWebControl_ChartSeriesType.Spline0.zip