菁英数字科技(猩码)-猩码学苑-专注软件开发人才菁英教育
标题:
巨朝阳-20221116-Earchs01
[打印本页]
作者:
云云
时间:
2022-11-17 00:29
标题:
巨朝阳-20221116-Earchs01
const box1 = document.querySelector('#box1');
const box2 = document.querySelector('#box2');
const box3 = document.querySelector('#box3');
const box4 = document.querySelector('#box4');
const box5 = document.querySelector('#box5');
const box6 = document.querySelector('#box6');
const box7 = document.querySelector('#box7');
const box8 = document.querySelector('#box8');
const box9 = document.querySelector('#box9');
var myChart1 = echarts.init(box1);
var option1, option2;
option1 = {
legend: {
orient: 'vertical',
x: 'right',
y: 'center',
itemStyle: {
borderCap: 'round',
},
},
series: [
{
name: 'Nightingale Chart',
type: 'pie',
radius: [5, 50],
center: ['50%', '50%'],
roseType: 'radius',
itemStyle: {
itemGap: 10,
// borderRadius: 3
},
data: [
{ value: 50, name: 'rose 1' },
{ value: 20, name: 'rose 2' },
{ value: 50, name: 'rose 3' },
{ value: 20, name: 'rose 4' },
]
}
]
};
option1 && myChart1.setOption(option1);
复制代码
欢迎光临 菁英数字科技(猩码)-猩码学苑-专注软件开发人才菁英教育 (http://www.xingmaxueyuan.com/)
Powered by Discuz! X3.4