我的账户
猩码学苑

专注C++开发菁英教育

亲爱的游客,欢迎!

已有账号,请

如尚未注册?

巨朝阳-20221116-Earchs01

[复制链接]
云云学员认证 发表于 2022-11-17 00:29:57 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
  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);




复制代码


回复

使用道具 举报

关注0

粉丝0

帖子39

发布主题
大家都在学
课堂讨论
一周热帖排行最近7x24小时热帖
关注我们
专注C++菁英教育

客服电话:18009298968

客服时间:9:00-21:00

猩码学苑 - 专注C++开发菁英教育!( 陕ICP备2025058934号-1 )

版权所有 © 陕西菁英数字科技有限公司 2023-2026