'C# Winform LiveCharts does not know how to plot
I'm trying to draw a graph with some arrays. I got 4 arrays (Time,Temprature,Speed,Water). I want to add Time array on AxisX. The others are going to be on AxisY. But when I try to draw the graph, I get this error message " C# form livecharts does not know how to plot int32[].."
cartesianChart2.Series = new LiveCharts.SeriesCollection
{
new LineSeries
{
Title="Temprature",
Values=new ChartValues<int[]>{Temprature}
},
new LineSeries
{
Title="Water",
Values=new ChartValues<int[]>{waterGrap}
},
new LineSeries
{
Title="Speed",
Values=new ChartValues<int[]>{RPMGraph}
}
};
If you want I can share my code.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|