Chart ej2.min.js error

Hello I have problem with Chart control, on some browsers like Edge/Firefox when the chart is rendered error has occurring.


For example :


My code:

    <ejs-chart id="container" title="Wartość sprzętu na wykresie Linie produktowe" width="100%">

         <e-chart-tooltipsettings enable="true">

        </e-chart-tooltipsettings>

        <e-chart-primaryxaxis valueType="DateTimeCategory" intervalType="Days">

        </e-chart-primaryxaxis>

         <e-chart-zoomsettings enableMouseWheelZooming="true" enablePinchZooming="true" enableSelectionZooming="true"></e-chart-zoomsettings>

        <e-series-collection>

            <e-series dataSource="ViewBag.dataSource" name ="CRHO" xName="Data" yName="CRHO" type="@Syncfusion.EJ2.Charts.ChartSeriesType.StackingLine"></e-series>

} <e-series dataSource="ViewBag.dataSource" name ="HEAVY" xName="Data" yName="HEAVY" type="@Syncfusion.EJ2.Charts.ChartSeriesType.StackingLine"></e-series>

            <e-series dataSource="ViewBag.dataSource" name ="LIFTS" xName="Data" yName="LIFTS" type="@Syncfusion.EJ2.Charts.ChartSeriesType.StackingLine"></e-series>

            <e-series dataSource="ViewBag.dataSource" name ="LIGHT" xName="Data" yName="LIGHT" type="@Syncfusion.EJ2.Charts.ChartSeriesType.StackingLine"></e-series>

            <e-series dataSource="ViewBag.dataSource" name ="MODULES" xName="Data" yName="MODULES" type="@Syncfusion.EJ2.Charts.ChartSeriesType.StackingLine"></e-series>

            <e-series dataSource="ViewBag.dataSource" name ="OTH" xName="Data" yName="OTH" type="@Syncfusion.EJ2.Charts.ChartSeriesType.StackingLine"></e-series>

            <e-series dataSource="ViewBag.dataSource" name ="OUSE" xName="Data" yName="OUSE" type="@Syncfusion.EJ2.Charts.ChartSeriesType.StackingLine"></e-series>

            <e-series dataSource="ViewBag.dataSource" name ="POH" xName="Data" yName="POH" type="@Syncfusion.EJ2.Charts.ChartSeriesType.StackingLine"></e-series>

            <e-series dataSource="ViewBag.dataSource" name ="SAFE" xName="Data" yName="SAFE" type="@Syncfusion.EJ2.Charts.ChartSeriesType.StackingLine"></e-series>

            <e-series dataSource="ViewBag.dataSource" name ="SCAFF" xName="Data" yName="SCAFF" type="@Syncfusion.EJ2.Charts.ChartSeriesType.StackingLine"></e-series>

        </e-series-collection>

    </ejs-chart>


My dataset:




Result on Brave(chromium based):



5 Replies

DG Durga Gopalakrishnan Syncfusion Team August 10, 2022 04:12 PM UTC

Hi Dominik,


Greetings from Syncfusion.


We have ensured your reported scenario with attached snippet and screenshot. Chart is rendered fine without any exception in chrome, Firefox and edge browsers. We have attached the tested sample and screenshot for your reference.



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


Please revert us if you have any concerns.


Regards,

Durga Gopalakrishnan.



DO Dominik August 10, 2022 05:33 PM UTC

Hello still nothing, but I have found out that error is related to culture. When I commented out

in my _Layout.cshtml

function loadCultureFiles(name) {

var files = ['numbers.json','currencies.json'];

var loadCulture = function (prop) {

var val, ajax;

ajax = new ej.base.Ajax(location.origin + '/../../cldr-data/main/' + name + '/' + files[prop], 'GET', true);

ajax.onSuccess = function (value) {

val = value;

ej.base.loadCldr(JSON.parse(val));

};

ajax.send();

ej.base.setCulture('pl');

ej.base.setCurrencyCode('PLN');

};

for (var prop = 0; prop < files.length; prop++) {

loadCulture(prop);

}

}


document.addEventListener('DOMContentLoaded', function () {

loadCultureFiles('pl');

});


Everything is fine, but I have wrong (default) culture now ;/ Any ideas? I want to keep my culture and have charts :(



DG Durga Gopalakrishnan Syncfusion Team August 11, 2022 03:13 PM UTC

Hi Dominik,


We are validating your reported scenario. We will update the further details within two business days(16th August 2022). We appreciate your patience until then.


Regards,

Durga Gopalakrishnan.



DO Dominik August 17, 2022 02:39 PM UTC

Hello Durga,


Any update regarding this issue? If you need more information please let me know :)



DG Durga Gopalakrishnan Syncfusion Team August 17, 2022 03:39 PM UTC

Hi Dominik,


Thanks for being patience. We have ensured your reported scenario with specified locale pl; chart is rendered fine without any exception. We have attached the tested sample and screenshot for your reference.


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


Since we are unable to replicate an issue from our end, we request you to share the following information which will be helpful for further analysis and provide you the solution.

  • Try to reproduce the reported scenario in attached sample.
  • Please share your sample (or) code snippet with full configurations.
  • Share the details if you have done any other customization in your sample.
  • Share your datasource file.
  • Share your NuGet package version.


Kindly revert us if you have any concerns.


Regards,

Durga Gopalakrishnan.


Loader.
Up arrow icon