Pre loader

how to connect my data to chart?

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


Now I’m making 2D line chart, using example file.

but I want to make a chart from my data. I have a data file.

Unfoltunately, I don’t know how to connect my data with source code.

please let me know the solution.

  • How to connect my data and source code(2D Line chart example code)?
  • You must to post comments

SciChart expects a list of XValues and YValues as double arrays. When you construct an XyDataSeries in SciChart you use this syntax:

double[] xValues = ...
double[] yValues = ...
var dataSeries = new XyDataSeries<double, double>();
dataSeries.Append(xValues, yValues);

See Tutorial on working with Series and Data for more info.

Your data file is Excel, you will have to read that Excel file and convert into double array for XValues and a double array for YValues.

So, search for some ways to load Excel files and you should have your solution

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.