Pre loader

DataseriesName with special characters

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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()
};

Version
5.1
  • You must to post comments
0
0

Hi Daniel

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.

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies