Having trouble with displaying apexcharts on my dashboard. There are 5 charts on the dashboard and their behavior is acting strange. The charts only show up after reloading the page 3 to 4 times or when inspect element is clicked. Otherwise, only 2 or 3 charts are visible. Any ideas on how to resolve this issue?
Let's investigate further...
This JavaScript file retrieves data using AJAX.
Upon console logging, I can see values in the data key.
var revenueData = [];
var fetchEarningData = function() {
$.ajax({
url: "dashboard/earning",
type: "Get",
dataType: "json",
cache: false,
success: function (data) {
jQuery.map(data, function (n) {
revenueData.push(n)
});
},
complete: function (data) {
},
error: function (data) {
}
});
// Other AJAX calls for fetching customer, member, order, stockIn-amount, debit and credit data follow...