我需要在极坐标图上重复显示每个x轴的标签(通过highcharts)。目前我有(通过JSFiddle):
jQuery("#container").highcharts({
"chart": {
"polar": true,
"type": "line"
},
"title": {
"text": "VIDA PESSOAL" },
"legend": {
"enabled": false
},
"pane": {
"size": "80%"
},
"xAxis": {
"categories": ["fam\u00edlia\/amigos","moradia","sa\u00fade","dinheiro",
"crescimento pessoal","crescimento profissional","lazer"],
"tickmarkPlacement": "on",
"lineWidth": 0
},
"yAxis": {
"tickInterval": 1,
"min": 0,
"max": 6
},
"plotOptions": {
"line": {
"lineWidth": 0
},
"series": {
"animation": false,
"color": "red"
}
},
"series": [{
"name": "Pontuação",
"data": [2,1,5,3,1,3,3],
"pointPlacement": 'on'
}]
});
所以我期待其中一个结果(参见示例图片):
答案 0 :(得分:1)
您可以启用数据标签,设置颜色和调整y参数。
marker:{
radius:10
},
dataLabels:{
enabled:true,
color: 'white',
y:7
},