Selection of scatter points

May 21, 2014 at 12:02 PM
Hi,
I tried to change the color of selected points in ScatterSeries but nothing is changing (I started from the examples online).

What is wrong with my code?
           Model.SelectionColor =
                OxyColors.Aqua;

            // create scatter
            Scatter =
                new ScatterSeries();

            // set scatter
            Scatter.MarkerType =
                MarkerType.Cross;

            Scatter.MarkerStroke =
                OxyColors.Black;

            Scatter.MarkerType = 
                MarkerType.Diamond;

            Scatter.MarkerFill =
                OxyColors.Red;

            Scatter.BinSize = 
                8;
            Scatter.SelectionMode = 
                SelectionMode.Multiple;

            foreach(var keyPoint in listKPoints)
            {
                Scatter.Points.Add(
                    new ScatterPoint()
                    {
                        X = keyPoint.X,
                        Y = keyPoint.Y,
                        Size = SizeMarker
                    }
                );
            }

            // add scatter to Model
            Model.Series.Add(Scatter);
Thanks for any help :)
May 21, 2014 at 8:36 PM
Edited May 21, 2014 at 9:33 PM
OK fixed,
your library is great, but please, improve the examples on the web, the code showed there is not the same that I found in the full downloaded source code. On the web, the part about mouse events is totally missed xD then, to avoid misunderstanting for a newbie like me:
1) Or remove the tab 'Code' from Sliverlight example browser;
2) Or add the same code that it is in the full source code.

It is only a suggestion :) cheers
May 22, 2014 at 12:57 PM
Edited May 22, 2014 at 12:57 PM
The code you see in the "Code" tab is generated automatically with the ToCode() method and it serves to share the visual plot. If you want the real behavior you must explore the source.
May 22, 2014 at 2:24 PM
OK thanks :)