Highstock中的数据点不可见

时间:2016-01-19 11:56:30

标签: javascript highcharts highstock

我正在使用Gantt chart来创建数据可视化。我的数据持续时间最长为1秒,因此在example中无法正常显示。有什么方法可以显示在Highstock中同样可见的小型和大型持续时间过程吗?

图表选项

    chart: {
    type: 'xrange',
    renderTo: 'chart',
    events: {
        load: function(e) {
            var max = maxDate;
            var range = (24 * 3600 * 1000) * 7; // one day * 7
            this.xAxis[0].setExtremes(max - range, max);
        }
    }
},
title: {
    text: 'Processes Run'
},
xAxis: {
    type: 'datetime',
    tickInterval: xAxisStepping,
    dateTimeLabelFormats: {
        month: '%b %e, %Y'
    },
    min: minDate,
    max: maxDate,
    minRange: 1000
}, yAxis: {
    startOnTick: false,
    endOnTick: false,
    tickInterval: 1,
    gridLineWidth: 1,
    title: '',
    categories: categories,
    min: minY,
    max: maxY,
    labels: {
        enabled: false
    }
},
navigator: {
    enabled: true
},
series: data,
tooltip: {
    formatter: function() {
        var seriesName = this.series.name;
        return seriesName;
    }
}, credits: {
    enabled: false
},
exporting: {
    enabled: false
},
plotOptions: {
    column: {
        turboThreshold: 200000,
        maxPointWidth: 50,
        pointWidth: 50
    },
    line: {
        lineWidth: 50,
        marker: {
            enabled: false
        },
        dataLabels: {
            enabled: false,
            //align: 'center',
            borderRadius: 5,
            borderWidth: 1,
            y: -6,
            formatter: function() {
                return this.series.name;
            }
        },
        states: {
            hover: {
                lineWidth: 50
            }
        }
    },
    series: {
        cursor: 'pointer',
        animation: false,
        turboThreshold: 100000000,
        dataGrouping: {
            enabled: false
        }
    }

0 个答案:

没有答案