Selection of scatter points
This discussion was imported from CodePlex
opensw wrote at 2014-05-21 14:02:
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?
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 :)opensw wrote at 2014-05-21 22:36:
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
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
everytimer wrote at 2014-05-22 14:57:
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.
opensw wrote at 2014-05-22 16:24:
OK thanks :)
Servicio de atención al cliente por UserEcho