Answer the question
In order to leave comments, you need to log in
How to draw a graph with OxyPlot in WPF with received data?
Good day to all, I'm struggling with this issue. There is data obtained from JSON by type:
{
"id": 17744942,
"event_type_id": 22,
"workshop_id": 1,
"machine_id": 1,
"time1": 1632993370500,
"time2": null,
"data": null,
"float": 330.98,
"enum_value": null,
"uint32": null
},
{
"id": 17744944,
"event_type_id": 22,
"workshop_id": 1,
"machine_id": 1,
"time1": 1632993371000,
"time2": null,
"data": null,
"float": 329.59,
"enum_value": null,
"uint32": null
},
{
"id": 17744946,
"event_type_id": 22,
"workshop_id": 1,
"machine_id": 1,
"time1": 1632993371500,
"time2": null,
"data": null,
"float": 330.32,
"enum_value": null,
"uint32": null
},
Func<double, double> numID = (x) => Convert.ToDouble(dateTime); //dateTime перевод времени timestamp
Func<double, double> Float = (x) => [email protected]float; // item. обращение к классу десериализации
MyModel.Series.Add(new FunctionSeries(numID, 0, 10, 0.0001));
MyModel.Series.Add(new FunctionSeries(Float, 0, 10, 0.0001));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question