blob: fe04671c71b4ed1f18093cc0b9a6af99d845c4e1 [file] [log] [blame]
/*
title: Radial Polar Bar Label Position
titleCN: 极坐标柱状图标签
category: bar
difficulty: 2
*/
option = {
title: [
{
text: 'Radial Polar Bar Label Position (middle)'
}
],
polar: {
radius: [30, '80%']
},
radiusAxis: {
max: 4
},
angleAxis: {
type: 'category',
data: ['a', 'b', 'c', 'd'],
startAngle: 75
},
tooltip: {},
series: {
type: 'bar',
data: [2, 1.2, 2.4, 3.6],
coordinateSystem: 'polar',
label: {
show: true,
position: 'middle', // or 'start', 'insideStart', 'end', 'insideEnd'
formatter: '{b}: {c}'
}
},
animation: false
};
export {};