//Display loading
chart.showLoading({
text: "Chart data is trying to load...",
x: "center",
y: "center",
textStyle: {
color:"red",
fontSize:14
} ,
effect:"spin"
});
//hide loading
chart.hideLoading();