123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- import ChartBar3 from '../../../src/chart/radar/ChartRadar3/ChartRadar3.js';
-
- let chart=new ChartBar3(document.getElementsByClassName('c1')[0],{});
-
- window.addEventListener("resize",()=>{
- chart.resize();
- });
-
- let option = {
- title: {},
- tooltip: {
- titleColor: '#ffba00',
- bgStyle: {
- borderColor: '#006b7b',
- borderWidth: 1,
- backgroundColor: '#051936',
- },
- },
- color:['#ff0000',"#3FFFA7","#3F90FF"],
- legend: {
- show: true,
- left: "center",
- top: 'top',
- orient: 'horizontal',
- itemWidth: 12,
- itemGap: 10,
- },
- radar: {
- // shape: 'circle',
- left: '50%',
- top: '55%',
- size: '80%',
- // lineStyle: {
- // lineWidth: 2
- // },
- circleSize: 3,
- indicatorName: {
- color: '#838d8f',
- fontSize: 16
- },
- lineStyle: {
- lineWidth: 1,
- color: '#212122'
- },
- icon:{
- size:5,
- color: "#3FFFA7"
- },
- particleNum: 300,
- indicator: [{
- name: '销售',
- max: 100
- },
- {
- name: '管理',
- max: 100
- },
- {
- name: '信息技术',
- max: 100
- },
- // {
- // name: '客服',
- // max: 100
- // },
- // {
- // name: '研发',
- // max: 100
- // },
- // {
- // name: '客',
- // max: 100
- // },
- // {
- // name: '发',
- // max: 100
- // }
- ]
- },
- series: [
- {
- name: '预算分配',
- type: 'radar',
- // areaStyle: {normal: {}},
- data: [60, 61, 63],//, 67, 70
- },
- {
- name: '实际开销',
- type: 'radar',
- // areaStyle: {normal: {}},
- data: [91, 87, 74],//, 85, 83
-
- },
- {
- name: '理想开销',
- type: 'radar',
- // areaStyle: {normal: {}},
- data: [21, 57, 14],//, 85, 83
-
- }
- ],
- bg:{
- backgroundColor:"#000000"
- },
-
- };
- setTimeout(()=>{
- // chart.setOption(option)
- },2000)
|