Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all articles
Browse latest Browse all 2061

Edited Unassigned: Issue with ScatterSeries in latest NuGet versions (WPF) [10179]

$
0
0
It seems something has broken or changed regarding ScatterSeries in the latest NuGet packages.

I have a simple MVVM setup:
View:
```
<Window x:Class="TestApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:oxy="http://oxyplot.codeplex.com"
xmlns:local="clr-namespace:TestApplication"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<local:MainWindowModel x:Key="viewModel" />
</Window.Resources>
<Grid DataContext="{StaticResource viewModel}">
<oxy:Plot x:Name="Plot1" Title="A Graph" Margin="10" Grid.Row="1" >
<oxy:ScatterSeries ItemsSource="{Binding Data}" MarkerSize="3" />
<oxy:Plot.Axes >
<oxy:LinearAxis Position="Left" Minimum="0" Maximum="10" />
<oxy:LinearAxis Position="Bottom" Minimum="0" Maximum="25" />
</oxy:Plot.Axes>
</oxy:Plot>
</Grid>
</Window>
```

ViewModel:

```
using OxyPlot;
using System.Collections.Generic;

namespace TestApplication
{
public class MainWindowModel
{
List<DataPoint> data = new List<DataPoint>()
{
new DataPoint(5,5),
new DataPoint(10, 6),
new DataPoint(15, 7),
new DataPoint(20, 5)
};

public List<DataPoint> Data
{
get { return data; }
}

public MainWindowModel()
{ }
}
}
```

If I reference the official packages from codeplex (2014.1.240.1) everything works fine. If I reference the latest NuGet package (2014.1.277.1) no points are rendered.

In addition to that, if I reference the older NuGet package 2014.1.271.1 I get a single point at (0,0).

I might have missed a breaking change in how the newer versions work, but it feels like something has broken in the ScatterSeries implementation.



Viewing all articles
Browse latest Browse all 2061

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>