We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Line chart gets muddled up when using multiple series

I have a line chart that uses multiple series. It works well enough on the initial load but when filters are applied, it gets muddled up, and when the page is zoomed in or out, it goes back to normal.

Please look at this gif.


This is the chart markup



and this is how the chart is loaded


I use .NET 5 and Syncfusion 19.4.0.56


3 Replies

DG Durga Gopalakrishnan Syncfusion Team January 23, 2023 01:15 PM UTC

Hi Isaac,


We have ensured your reported scenario in .NET 5 with specified NuGet version 19.4.0.56. We suggest you to call the chart RefreshAsync method after changing the chart series datasource using dropdown list. We have prepared sample as per your attached GIF. Please check with below sample and video.


public void ChangeData(ChangeEventArgs<string, DropDownData> args)

    {

        if (args.Value.ToString() == "Last 7 Days")

        {

            this.ChartPoints = new List<DateTimeData>

            {

                new DateTimeData { Day = new DateTime(2023, 1, 16), DEU_Temp = 35, JPN_Temp = 31 },

                //…

           };

        }

        else if (args.Value.ToString() == "Last 2 Weeks")

        {

            this.ChartPoints = new List<DateTimeData>

            {

                new DateTimeData { Day = new DateTime(2023, 1, 09), DEU_Temp = 25, JPN_Temp = 21 },

                //…

           };

        }

        chartObj.RefreshAsync(false);

 

    }


Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/ChartRefresh702199533.zip


Video : https://www.syncfusion.com/downloads/support/directtrac/general/ze/DataUpdate-1257707171.zip


If you are still facing problem, please try to replicate an issue in above sample or share us issue reproduced sample to validate this case further from our end. Kindly revert us if you have any other concerns.


Regards,

Durga Gopalakrishnan.



IM Isaac Mane January 25, 2023 03:54 PM UTC

This is fixed in version 20. Thank you for your reply.



DG Durga Gopalakrishnan Syncfusion Team January 26, 2023 06:03 AM UTC

Isaac,


Most welcome. Please get back to us if you need any further assistance. We are always happy in assisting you.


Loader.
Up arrow icon