Scatter Series Broken in Today's Change Sets?

Apr 25, 2012 at 7:40 PM
Edited Apr 25, 2012 at 7:40 PM

 

My simple graph, XAML pasted below, worked perfectly in source Change Set 8106a90e8feb released Friday. However, I have tried all three Change Sets that were released today, and my Scatter Series no longer draws at all with any of them. I'm assuming something broke during refactoring?



<oxy:Plot Name="mainPlot" Title="Try This" LegendOrientation="Horizontal" LegendPlacement="Outside" LegendPosition="TopCenter" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" >
            <oxy:Plot.Axes>
                <oxy:LinearAxis Name="yAxis" AbsoluteMinimum="0.0" Title="Load" Position="Left"  MajorGridlineStyle="Solid" MinorGridlineStyle="Solid" />
                <oxy:LinearAxis Name="xAxis" Title="Position" StartPosition="{Binding Path=reverseXAxisDirection, Mode=OneWay, Converter={StaticResource BooleanToAxisStartPositionConverter}, UpdateSourceTrigger=PropertyChanged}" EndPosition="{Binding Path=reverseXAxisDirection, Mode=OneWay, Converter={StaticResource BooleanToAxisEndPositionConverter}, UpdateSourceTrigger=PropertyChanged}" Position="Bottom" MajorGridlineStyle="Solid" MinorGridlineStyle="Solid" />
            </oxy:Plot.Axes>

            <oxy:Plot.Series>
                <oxy:LineSeries Title="Basis" Name="basisSeries" Color="MediumBlue" StrokeThickness="2" MarkerType="Circle" MarkerSize="3" MarkerFill="MediumBlue" DataFieldX="x" DataFieldY="y" ItemsSource="{Binding Path=plots.basisPlot, UpdateSourceTrigger=PropertyChanged}"/>
                <oxy:LineSeries Title="Comparison" Name="comparisonSeries" Color="Maroon" StrokeThickness="2" MarkerType="Circle" MarkerSize="3" MarkerFill="Maroon" DataFieldX="x" DataFieldY="y" ItemsSource="{Binding Path=plots.comparisonPlot, UpdateSourceTrigger=PropertyChanged}"/>

                <oxy:ScatterSeries Name="highlightedBasisPointsSeries" MarkerFill="Orange" MarkerType="Circle" MarkerSize="4" MarkerStroke="MediumBlue" DataFieldX="x" DataFieldY="y" ItemsSource="{Binding Path=plots.highlightedBasisPointsPlot, UpdateSourceTrigger=PropertyChanged}" />
                <oxy:ScatterSeries Name="highlightedComparisonPointsSeries" MarkerFill="OliveDrab" MarkerType="Circle" MarkerSize="4" MarkerStroke="Maroon" DataFieldX="x" DataFieldY="y" ItemsSource="{Binding Path=plots.highlightedComparisonPointsPlot, UpdateSourceTrigger=PropertyChanged}" />
            </oxy:Plot.Series>
        </oxy:Plot>
Coordinator
Apr 25, 2012 at 8:05 PM

Thanks for the notice! I think this was a bug introduced when I changed the way data points are created from the ItemsSource collection. The default ScatterPoint constructor was not setting the Size property. It should be NaN, to get the point size from the parent ScatterSeries. Should be fixed now.