Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WPF Scatter Plot

Solved!
Go to solution

I currently have an ObservableCollection<Point[]> which i am binding to the datasource property of a graph. This plots fine, but the points in each point array are joined by a line. Is there a way to turn the line off and just show point markers. If so how? And how might you format the markers?

 

Thanks

0 Kudos
Message 1 of 2
(5,730 Views)
Solution
Accepted by topic author BeckyHayter

By default, the graph uses a LinePlotRenderer to draw data. You can set the Renderer on a plot to use a PointPlotRenderer instead:


    <ni:Plot>
        <ni:Plot.Renderer>
            <ni:PointPlotRenderer Fill="Blue" />
        </ni:Plot.Renderer>
    </ni:Plot>

~ Paul H
Message 2 of 2
(5,713 Views)