【问题标题】:Highcharts not aligning to ticksHighcharts 未与刻度对齐
【发布时间】:2014-07-30 17:44:12
【问题描述】:

还有一个highcharts问题:

我似乎无法让它与刻度线对齐

小提琴:http://jsfiddle.net/mwoods98/gTQ75/1/

  $('#container').highcharts({
                chart: {
                    type: 'bar'
                },
                title: {
                    text: 'Testing Phase'
                },

                xAxis: {
                    categories: ['Phase'],
                    title: {
                        text: null
                    }
                },
                yAxis: {

                    categories: ['Option1', 'Option2', 'Option3', 'Option4', 'Option5', 'Option6', 'Option7', 'Option8', 'Option9', 'Option10', 'Option11', 'Option12', 'Option13', 'Option14'],
        labels: {
            rotation: 45,
        y:40  
        },
                    min: 0,
                    max: 13,
                    endOnTick: false,
                    startOnTick: false,
                    tickInterval: 1,

我已将 endOnTick 和 startOnTick 更改为 true,但我仍然得到相同的结果。 我知道我很接近,但我就是不明白。

提前致谢。

【问题讨论】:

    标签: javascript jquery highcharts


    【解决方案1】:

    我相信您正在寻找的选项是tickMarkPlacement。设置为on:

    小提琴here.

    yAxis: {
        tickmarkPlacement: 'on', 
        // other options here
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-09-04
      • 1970-01-01
      • 1970-01-01
      • 2017-12-11
      • 2020-11-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多