菁英数字科技(猩码)-猩码学苑-专注软件开发人才菁英教育

标题: 巨朝阳-20221116-Earchs01 [打印本页]

作者: 云云    时间: 2022-11-17 00:29
标题: 巨朝阳-20221116-Earchs01
  1.   const box1 = document.querySelector('#box1');
  2.         const box2 = document.querySelector('#box2');
  3.         const box3 = document.querySelector('#box3');
  4.         const box4 = document.querySelector('#box4');
  5.         const box5 = document.querySelector('#box5');
  6.         const box6 = document.querySelector('#box6');
  7.         const box7 = document.querySelector('#box7');
  8.         const box8 = document.querySelector('#box8');
  9.         const box9 = document.querySelector('#box9');

  10.         var myChart1 = echarts.init(box1);
  11.         var option1, option2;

  12.         option1 = {
  13.             legend: {
  14.                 orient: 'vertical',
  15.                 x: 'right',
  16.                 y: 'center',

  17.                 itemStyle: {
  18.                     borderCap: 'round',
  19.                 },
  20.             },
  21.             series: [
  22.                 {
  23.                     name: 'Nightingale Chart',
  24.                     type: 'pie',
  25.                     radius: [5, 50],
  26.                     center: ['50%', '50%'],
  27.                     roseType: 'radius',
  28.                     itemStyle: {
  29.                         itemGap: 10,
  30.                         // borderRadius: 3

  31.                     },
  32.                     data: [
  33.                         { value: 50, name: 'rose 1' },
  34.                         { value: 20, name: 'rose 2' },
  35.                         { value: 50, name: 'rose 3' },
  36.                         { value: 20, name: 'rose 4' },
  37.                     ]
  38.                 }
  39.             ]
  40.         };

  41.         option1 && myChart1.setOption(option1);




复制代码







欢迎光临 菁英数字科技(猩码)-猩码学苑-专注软件开发人才菁英教育 (http://www.xingmaxueyuan.com/) Powered by Discuz! X3.4