fix a bug importing the api of echarts