信通院-灾备 图表源码(在产品图表库基础上进行修改),开发逻辑和产品图表库一致
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import ChartPie1 from '../../../src/chart/pie/ChartPie1/ChartPie1.js';
  2. let chart = new ChartPie1(document.getElementsByClassName('c1')[0], {});
  3. window.addEventListener("resize", () => {
  4. chart.resize();
  5. });
  6. // let s = {
  7. // "title": {
  8. // "text": "",
  9. // "left": "5%",
  10. // "top": "5%",
  11. // "textStyle": {"fontSize": 14, "fontWeight": "normal", "color": "#000000"}
  12. // },
  13. // "legend": {
  14. // "show": false,
  15. // "orient": "vertical",
  16. // "left": "right",
  17. // "top": "5%",
  18. // "itemAngelR": 10,
  19. // "textStyle": {"fontSize": 12, "fontWeight": "normal", "color": "#7b7b7b"}
  20. // },
  21. // "pie1": {
  22. // "center": {"x": "50%", "y": "50%"},
  23. // "width": "70%",
  24. // "lineLength": 200,
  25. // "arcWidth": 10,
  26. // "detailStyle": {"show": true, "fontSize": 14, "fontWeight": "normal", "color": "#ffffff", "numShow": 0}
  27. // },
  28. // "series": [{"name": "深圳", "maxValue": 1, "value": 1}, {"name": "四川", "maxValue": 3, "value": 3}, {
  29. // "name": "成都",
  30. // "maxValue": 3,
  31. // "value": 3
  32. // }, {"name": "武汉", "maxValue": 1, "value": 1}, {"name": "上海", "maxValue": 3, "value": 3}, {
  33. // "name": "北京",
  34. // "maxValue": 3,
  35. // "value": 3
  36. // }, {"name": "江苏", "maxValue": 1, "value": 1}],
  37. // "bg": {"backgroundColor": "#161729"},
  38. // "noTheme": {},
  39. // "useDashboardTheme": false,
  40. //
  41. //
  42. // }
  43. // setTimeout(v=>{
  44. // chart.setOption(s);
  45. // },3000)
  46. //在这里 运行