信通院-灾备 图表源码(在产品图表库基础上进行修改),开发逻辑和产品图表库一致
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435
  1. import ChartBar from '../../../src/chart/map/ChartDpMapCN2/ChartDpMapCN2.js';
  2. import dot from './data/dot';
  3. import line from './data/line';
  4. import heat from './data/heat';
  5. // import area from './data/area';
  6. let dotData=JSON.parse(JSON.stringify(dot));
  7. dotData[0].data.map(v=>{
  8. delete v.type;
  9. });
  10. let bar = new ChartBar(document.getElementsByClassName('c1')[0],{});
  11. let mapStyle=[{
  12. type: "map",
  13. id: "map",
  14. style: {
  15. backgroundColor: "#14181D",
  16. showBackGrid:false,
  17. landColor: "#1E3860",
  18. chinaColor: "#4575a1",
  19. textColor: "#ffffff",
  20. cameraAngle: 40,
  21. cameraDistance: 3600
  22. }
  23. }];
  24. setTimeout(() => {
  25. bar.setOption(mapStyle)
  26. }, 4500 );
  27. // setTimeout(() => {
  28. // bar.setOption(dot)
  29. // }, 5000 );
  30. window.addEventListener('resize', () => {
  31. bar.resize();
  32. });