Highcharts 放大时,Highchart/stock返回不同的对象

Highcharts 放大时,Highchart/stock返回不同的对象,highcharts,highstock,Highcharts,Highstock,在highstocks工具提示中,我需要显示特定点的数据 s += '<br/>Price: '+ this.points[0].y +' EUR'; s += '<br/>Ask: '+ this.points[0].point.ask +' EUR'; s += '<br/>Bid: '+ this.points[0].point.bid +' EUR'; 我就是这样做的: tooltip: { formatter: functi

在highstocks工具提示中,我需要显示特定点的数据

s += '<br/>Price: '+ this.points[0].y +' EUR';
s += '<br/>Ask: '+ this.points[0].point.ask +' EUR';
s += '<br/>Bid: '+ this.points[0].point.bid +' EUR';
我就是这样做的:

tooltip: {
            formatter: function() {
                var s = '<b>'+ Highcharts.dateFormat('%A, %b %e, %Y', this.x) +'</b>';
                s += '<br/>Time: '+ Highcharts.dateFormat('%H:%mu', this.x);

                if(this.point)
                {
                    s += "<br/>this is a flag on " + new Date(this.point.x).toDateString();
                }
                else
                {
                    s += '<br/>Price: '+ this.points[0].y +' EUR';
                    s += '<br/>Ask: '+ this.points[0].point.ask +' EUR';
                    s += '<br/>Bid: '+ this.points[0].point.bid +' EUR';
                    console.log(this.points[0].point);
                }

                return s;
            }

        },

我觉得有义务回答这个问题,因为我花了几个小时试图找到一个类似问题的解决方案,而忽略了这个问题,尽管它在问题中被作为一个编辑来回答。因此,这里有一个解决方案:

series: [{
     name: 'USD to EUR',
     data: newusdeur,
     dataGrouping : {
          enabled: false
     }
}]
备选方案:

plotOptions: {
    series: {
        dataGrouping : {
            enabled: false
        }
    }
}


我试过这个,效果很好!数据分组:{enabled:false}使用数据分组时,Highstock将创建点。因此,所有额外的信息将被解散。
plotOptions: {
    series: {
        dataGrouping : {
            enabled: false
        }
    }
}