How can I add an DataSeries with special characters like:
var newSurface = new SciChartSurface
Name = “Y-Test”,
XAxes = new AxisCollection(XAxisEventCollection.Where(x => x.Id == eventItem.XAxisId).ToList()),
YAxes = new AxisCollection(YAxisEventCollection.Where(y => y.Id == eventItem.YAxisId).ToList()),
RenderableSeries = new ObservableCollection(seriesCollection),
Width = Report1.EventChartWidth,
Height = Report1.EventChartHeight,
Background = ColorHelper.GetMediaBrushColor(Colors.White),
RenderSurface = new HighQualityRenderSurface()
The property ‘Name’ is inherited from FrameworkElement. This is the name of the control specified in XAML so that you can access it in Code-behind. It is not the name of the chart or the chart title.
I suggest if you want to name your charts, you can either look at the SciChartSurface.ChartTitle property, or use SciChartSurface.Tag to store custom information about the chart.
Please login first to submit.