import ChartBar from '../../../src/chart/map/ChartDpMapCN2/ChartDpMapCN2.js'; import dot from './data/dot'; import line from './data/line'; import heat from './data/heat'; // import area from './data/area'; let dotData=JSON.parse(JSON.stringify(dot)); dotData[0].data.map(v=>{ delete v.type; }); let bar = new ChartBar(document.getElementsByClassName('c1')[0],{}); let mapStyle=[{ type: "map", id: "map", style: { backgroundColor: "#14181D", showBackGrid:false, landColor: "#1E3860", chinaColor: "#4575a1", textColor: "#ffffff", cameraAngle: 40, cameraDistance: 3600 } }]; setTimeout(() => { bar.setOption(mapStyle) }, 4500 ); // setTimeout(() => { // bar.setOption(dot) // }, 5000 ); window.addEventListener('resize', () => { bar.resize(); });