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):
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.
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 :(
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.
Hello Durga,
Any update regarding this issue? If you need more information please let me know :)
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.
Kindly revert us if you have any concerns.
Regards,
Durga Gopalakrishnan.