Highcharts:隐藏最底部的x轴网格线

时间:2014-05-22 16:27:58

标签: javascript highcharts highstock

我在我的一个股票项目中使用Highcharts。一切都没问题,除了我无法隐藏x轴上的底部网格线,如附图所示。This image

更新:这是小提琴link

我的javascript中有以下属性:

xAxis: {
            type: 'datetime',
            maxZoom: 30 * 24 * 3600000,
            tickInterval: 24 * 3600 * 1000,
            tickLength: 0,
            dateTimeLabelFormats: {
                day: '%e'
            },
            labels: {
                y: 24,
                style: {
                    fontSize: '1.6em',
                    fontWeight: 'normal',
                    fontFamily: 'standardCondensed',
                    color: '#bcbdbd'
                }
            },
            plotLines : [{
                value : (function() {
                        // To Do ...
                    })(),
                color : '#39484d',
                dashStyle : 'solid',
                width : 32,
                label : {
                    text : ''
                }

            }]
        },
        yAxis: {
                title: {
                text:   ''
            },
            opposite: true,
            min: 0,
            plotLines: [{
                value: 0,
                width: 1,
                color:  '#808080'
            }],
            labels: {
                format: '${value}',
                y: 20,
                style: {
                    fontSize: '2em',
                    fontWeight: 'normal',
                    fontFamily: 'standardCondensed',
                    color: '#bcbdbd'
                }
            }
        },

有没有办法隐藏该行但是在底部显示月份数字?

1 个答案:

答案 0 :(得分:4)

Here是您解决方案的助手。你需要添加:

            lineColor: 'transparent',

到每个轴。