HighStock - 缺少yAxis刻度和平面值标签

时间:2013-02-21 10:58:26

标签: highstock

当我尝试使用HighStock图表显示平面值时,Y轴上的刻度和实验消失,您可以在以下链接中看到:

http://jsfiddle.net/garlam/VmwAQ/

$(function() {
var chart = new Highcharts.StockChart({

    chart: {
        renderTo: 'container'
    },

    rangeSelector: {
        selected: 1
    },

    yAxis: {
        title: {
            text: 'test-values'
        }
    },

    series: [{
        name: 'test',
        data: [ { x: 1361443380000, y: 10}, { x: 1361443410000, y: 10}, { x: 1361443440000, y:10}, {x:1361443470000, y:10} ]
    }]
});
});

我想避免设置y轴最小值

任何帮助?

1 个答案:

答案 0 :(得分:0)

您可以设置最小/最大值

yAxis: {
        min:0,
        max:20,
        title: {
            text: 'test-values'
        }
    },