Hi Besiana,
Thanks for using Syncfusion Products.
We have analyzed your reported query and you can use FastScatter Chart Data Template by overriding FastScatterPresenter class.
And we can achieve your requirement by drawing different symbols using DrawingContext as shown in the given code snippet.
Code Snippet[C#]:
using (DrawingContext context = visual.RenderOpen())
{
foreach (var pt in pp)
{
visual.Index = i;
context.DrawEllipse(br, pn, pt,width ,height); //We can able to draw differend symbol
i++;
}
}
We have prepared the sample based on your requirement. Please download it from the given location.
Please let us know if you have any queries.
Regards,
M.Sheik Syed Abthaheer
Hi Besiana,
Thanks for your update.
There is no need to calculate new points in FastScatter Presenter. We can able to get points from PointCollection based on DataPoint index as shown in the given below code snippet.
Code snippet[C#]:
PointCollection pp = Points; using (DrawingContext context = visual.RenderOpen()) { for (var index = 0; index < data.Count; index++) { var dataPoint = data[index]; var car = (ExpensiveCar)dataPoint.Tag; var p = pp[index]; if (car.CarName.StartsWith("Ultimate")) { context.DrawEllipse(br,pn,p, 10, 10); } else { //drawing other symbol } } } |
We have prepared the sample based on your requirement. Please download it from the below location.
Please let us know if you have any queries.
Regards,
M. Sheik Syed Abthaheer
Hi Besiana,
Thanks for your update.
You can achieve your requirement by applying Tootip property in Fastscatter chart Template as shown in the given code snippet
Code snippet [Xaml]:
<DataTemplate x:Key="fastscatter"> <local:FastScatter Points="{Binding Points}" Series="{Binding Series}" ToolTip="{Binding ToolTip}" /> </DataTemplate> |
Please let us know if you have any queries.
Regards,
M. Sheik Syed Abthaheer
Hi Besiana,
Thanks for your update.
We would like to inform you that, we cannot bind ToolTip value based on Datapoint values. Because we draw the FastScatter chart as a single segment.
However we can achieve your requirement (getting tooltip value based on Datavalue) through the workaround manner.
We have prepared the sample based on your requirement. Please download it from the given location.
Please let us know if you have any queries.
Regards,
M. Sheik Syed Abthaheer