C#UWP实时图表在Windows运行时应用程序中动态创建CartesianChart

时间:2018-08-21 14:11:02

标签: c# uwp livecharts

我正在尝试在Windows运行时应用程序中动态创建CartesianChart。

代码:

CartesianChart ch = new CartesianChart
{
    Series = new SeriesCollection
    {
        new LineSeries
        {
            Title = "",
            Values = new ChartValues<double> { 1, 1, 2, 3 ,5 }
        }
    }
};

错误消息:

The text associated with this error code could not be found.

Cannot deserialize XBF metadata type list as 'OrientationConverter' was not found in namespace 'LiveCharts.Uwp'. [Line: 0 Position: 0]

在这种情况下,有人可以给我建议吗?

0 个答案:

没有答案