赛题:
(后期更新)
知识点笔记:textStyle: { color: 'red', //设置字体颜色 fontStyle:'italic', //设置斜体 fontWeight:'bolder' ///设置字体加粗(粗体) }, left: 'center', // 显示居中 top: 'top', //显示在图表上边(默认)// bottm:显示在图表下边
option = {
title: {
text: '为各省份酒店综合情况',
textStyle: {
color: 'red',
fontStyle:'italic',
fontWeight:'bolder'
},
left: 'center',
top: 'top',
},
tooltip: {},
legend: {
data: ['上海', '北京', '广东','四川','海南'],
top:'bottom'
},
radar: {
// shape: 'circle',
name: {
textStyle: {
color: '#fff',
backgroundColor: '#999',
borderRadius: 3,
padding: [3, 5]
}
},
indicator: [
{ name: '四星/五星酒店的数量', max: 2200},
{ name: '平均评分', max: 4.58},
{ name: '评论数', max: 193582},
{ name: '直销拒单率', max: 0.5},
{ name: '各省酒店出租率', max: 0.8}
]
},
series: [{
type: 'radar',
// areaStyle: {normal: {}},
data: [
{
value: [1000,4.58,100000,0.5,0.8],
name: '上海'
},
{
value: [1200,4.45,23582,0.4,0.75],
name: '北京'
},
{
value: [1100,4.38,100000,0.45,0.89],
name: '四川'
},
{
value: [2200,4.05,193582,0.48,0.65],
name: '广东'
},
{
value: [1800,4.5,170000,0.35,0.68],
name: '海南'
}
]
}]
};