I am using Live chart for the first time in a C# form application. I have a data grid view (datagridview1). It has two columns. Date and Price. I am trying to make a cartesian diagram based on these two values. I dunno how to use the data grid view column values in the chart. Any suggestions, please!
- cartesianChart1.Series = new SeriesCollection
- {
- new LineSeries
- {
- Title = "Date Vs Price",
- },
-
- };
- cartesianChart1.AxisX.Add(new Axis
- {
- Title = "Date",
-
-
- });
- cartesianChart1.AxisY.Add(new Axis
- {
- Title = "Price",
-
-
- });
-
- |Date |Price |
- |2020-01-27 09:42:38 |100 |
- |2020-01-27 09:43:38 |200 |
- |2020-01-27 09:44:38 |220 |
I am trying to draw a cartesian graph--> Date Vs. Price. Any suggestion to load these data into the live chart from Datagrid view?