0

我需要在极坐标图上重复显示每个 x 轴的标签(通过高图)。目前我有(通过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'
    }]

});

所以我期待这样的结果之一(见示例图片):

  1. 标签 "0, 1, 2, 3, 4, 5" 保留在所有 x 行 - image中。
  2. 在每个图的顶部显示标签 -图像
  3. 在每个绘图内显示标签 -图像

最好的解决方案是第一个,但我可以考虑其他的。

4

1 回答 1

1

您可以启用数据标签、设置颜色和调整 y 参数。

                marker:{
                    radius:10
                },
                dataLabels:{
                    enabled:true,
                    color: 'white',
                    y:7
                },

http://jsfiddle.net/6upMk/3/

于 2014-04-28T09:51:59.153 回答