AllowMultiSelection not working in scatter chart
For some reason im unable to select multiple series in my scatter chart. what am i doing wrong?
@using Syncfusion.Blazor
@using Syncfusion.Blazor.Charts
@inject NavigationManager NavigationManager
<SfChart Title="TestGraph" AllowMultiSelection="true" SelectionMode="SelectionMode.DragXY">
<ChartSeriesCollection>
<ChartSeries DataSource="@SalesReports" XName="X" YName="Y" Type="ChartSeriesType.Scatter">
</ChartSeries>
<ChartSeries DataSource="@SalesReports1" XName="X" YName="Y" Type="ChartSeriesType.Scatter">
</ChartSeries>
</ChartSeriesCollection>
</SfChart>
@code{
public class ChartData
{
public double X { get; set; }
public double Y { get; set; }
}
public List<ChartData> SalesReports = new List<ChartData>
{
new ChartData { X= 60, Y= -8},
new ChartData { X= 48, Y= 2},
new ChartData { X= 66, Y= 3},
new ChartData { X= 78, Y= 2}
};
public List<ChartData> SalesReports1 = new List<ChartData>
{
new ChartData { X= 90, Y= 3},
new ChartData { X= -7, Y= 60.5},
new ChartData { X= 42, Y= 17},
new ChartData { X= 4, Y= 65},
};
}
SIGN IN To post a reply.
4 Replies
SM
Srihari Muthukaruppan
Syncfusion Team
November 23, 2021 05:13 PM UTC
Hi Rickard,
We have tested the reported scenario and it is working fine in the latest version of the chart 19.3.55 with the lodash file. Unfortunately we are unable to reproduce the reported scenario. Please find the sample used for testing and screenshot for your reference. We have also attached our demo sample link with multiple selection for your reference.
Code Snippet:
|
@using Syncfusion.Blazor
@using Syncfusion.Blazor.Charts
@inject NavigationManager NavigationManager
<SfChart Title="TestGraph" AllowMultiSelection="true" SelectionMode="SelectionMode.DragXY">
<ChartSeriesCollection>
<ChartSeries DataSource="@SalesReports" XName="X" YName="Y" Type="ChartSeriesType.Scatter">
</ChartSeries>
<ChartSeries DataSource="@SalesReports1" XName="X" YName="Y" Type="ChartSeriesType.Scatter">
</ChartSeries>
</ChartSeriesCollection>
</SfChart>
@code{
public class ChartData
{
public double X { get; set; }
public double Y { get; set; }
}
public List<ChartData> SalesReports = new List<ChartData>
{
new ChartData { X= 60, Y= -8},
new ChartData { X= 48, Y= 2},
new ChartData { X= 66, Y= 3},
new ChartData { X= 78, Y= 2}
};
public List<ChartData> SalesReports1 = new List<ChartData>
{
new ChartData { X= 50, Y= 8},
new ChartData { X= 60, Y= 4},
new ChartData { X= 70, Y= 2},
new ChartData { X= 65, Y= 5}
};
} |
Screenshot:
If you still face this issue. kindly revert us with the following information which will be more helpful for further analysis and provide you the solution sooner.
- Try to reproduce the reported scenario in the provided sample.
- Share the replication procedure for the reported scenario.
Regards,
Srihari M
RI
Rickard
November 25, 2021 07:17 PM UTC
Hello again!
When I create a method for the chart event i only get values from one chartseries. i have attached a zipfile where i have this issue
Kind regards
Rickard Hoffman
Attachment: SelectionEvent_1b04b3a8.rar
DG
Durga Gopalakrishnan
Syncfusion Team
November 26, 2021 03:22 PM UTC
Hi Rickard,
We have considered this as bug and logged a defect report. This fix will be available in our upcoming weekly patch release which is scheduled to be rolled out on 14th December 2021. We appreciate your patience until then. You can keep track of the bug from the below feedback link.
Feedback Link : https://www.syncfusion.com/feedback/30718/multiple-points-are-not-stored-in-selecteddatavalues-of-onselectionchanged-event
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.
Regards,
Durga G
DG
Durga Gopalakrishnan
Syncfusion Team
December 15, 2021 03:09 PM UTC
Hi Rickard,
We are glad to announce that our v19.3.59 patch release is rolled out; we have added the fix for reported issue. You can use the latest Syncfusion.Blazor NuGet package version.
Nugget Package : https://www.nuget.org/packages/Syncfusion.Blazor
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Durga G
SIGN IN To post a reply.
- 4 Replies
- 3 Participants
-
RI Rickard
- Nov 22, 2021 11:12 PM UTC
- Dec 15, 2021 03:09 PM UTC