The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Can the Chart control be bound to any sort of datasource?? I am trying my best to figure this out but I have been unsucessful. The only examples I can find use the method Series.Points.Add(DateTime, Double).
Also, when using the Series.Points.Add, what exactly is the purpose of the DateTime??
Thanks, sorry I hassled you so much today!
I settled for using a ListArray, loading in my data using a "for" statement. It works, not what I wanted though.
DJDavis Jebaraj Syncfusion Team June 25, 2004 12:16 PM UTC
Hi Kevin,
The ChartControl can be used with a data source by implementing the IChartSerieModel interface. I will create a sample and put it up for download at the earliest.
The Points.Add method has the following overloads:
public void Add(double x, params double[] yValues)
public void Add(double x, double y)
public void Add(double x, params DateTime[] dates)
public void Add(double x, DateTime date)
public void Add(ChartPoint cp)
public void Add(DateTime date, params double[] yValues)
public void Add(DateTime date, double y)
As you can see, the DateTime values are used when needed. The most common overload would be the
public void Add(double x, double y)
with a single double value for the x and y axes.
Regards,
Davis