轴标签在极坐标图中相互重叠

时间:2014-04-03 07:30:11

标签: highcharts

是否可以配置标签在极坐标图表中不重叠?

http://jsfiddle.net/Zt66h/

$(function(){

$('#container').highcharts({

    chart: {
        polar: true
    },


    xAxis: {
        tickInterval: 10,
        labels: {
            formatter: function () {
                return "this is long text that overlap";
            }
        }
    },          

    plotOptions: {
        series: {
            pointStart: 0,
            pointInterval: 10
        }           
    },

    series: [{
        data: [8, 7, 6, 5, 4, 3, 2, 1,8, 7, 6, 5, 4, 3, 2, 1,8, 7, 6, 5, 4, 3, 2, 1],
        pointPlacement: 'between'
    }]
});

});

1 个答案:

答案 0 :(得分:0)

不幸的是,highcharts不包含检测冲突机制,因此你可以增加widht / height或将useHTML设置为true,在标签上返回类(通过格式化程序),然后使用CSS样式覆盖posision。

相关问题