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},
    };
}

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. 
 
  1. Try to reproduce the reported scenario in the provided sample.
  2. 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. 


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.  


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 


Loader.
Up arrow icon