Commit f11af2fb authored by Kevin Yumang's avatar Kevin Yumang

SERV-2286 - refactor charts

parent 65d73d21
//#region MAIN FUNCTIONS //#region MAIN FUNCTIONS
function set_chart() { function set_chart() {
if (typeof echarts == 'undefined') {
console.warn('Warning - echarts.min.js is not loaded.');
return;
}
let chartCounter = 0; let chartCounter = 0;
$('.LimitlessBarChart').each(function() { $('.LimitlessBarChart').each(function() {
...@@ -315,12 +320,4 @@ function setResizeEvent(chartElement, chartInstance) { ...@@ -315,12 +320,4 @@ function setResizeEvent(chartElement, chartInstance) {
}); });
} }
$(document).ready(function() { $(document).ready(function() { set_chart(); });
\ No newline at end of file
if (typeof echarts == 'undefined') {
console.warn('Warning - echarts.min.js is not loaded.');
return;
}
set_chart();
});
\ No newline at end of file
//#region MAIN FUNCTIONS //#region MAIN FUNCTIONS
function set_chart() { function set_chart() {
if (typeof echarts == 'undefined') {
console.warn('Warning - echarts.min.js is not loaded.');
return;
}
let chartCounter = 0; let chartCounter = 0;
$('.LimitlessLineChart').each(function() { $('.LimitlessLineChart').each(function() {
...@@ -460,12 +465,4 @@ function setResizeEvent(chartElement, chartInstance) { ...@@ -460,12 +465,4 @@ function setResizeEvent(chartElement, chartInstance) {
}); });
} }
$(document).ready(function() { $(document).ready(function() { set_chart(); });
\ No newline at end of file
if (typeof echarts == 'undefined') {
console.warn('Warning - echarts.min.js is not loaded.');
return;
}
set_chart();
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment