Highcharts中Windbarb与Scatter系列能否组合?问题求助
Highcharts scatter与windbarb系列组合添加异常问题
我通过WindDirectionAddSeries函数为Highcharts图表添加系列:
function WindDirectionAddSeries(thisChart) { thisChart.addSeries({ name: 'AverageBearing', id: 'AverageBearing', data: AverageBearing, color: '#0D6D9D', yAxis: 'Direction', type: 'scatter', zIndex: 5, tooltip: { valueSuffix: ' ' } }, false); thisChart.addSeries({ name: 'WindBarbs', xAxis: 1, color: 'red', type: 'windbarb', visible: true, dataGrouping: { enabled: true, units: [ ['hour', [3]] ] }, tooltip: { pointFormatter() { return this.series.name + ': ' + (this.value / 0.27778).toFixed(1) + ' km/h' } }, data: WindBarbData }, false); }
该方法对line、area等系列类型有效,但添加scatter与windbarb系列时,addSeries调用无返回,其他JavaScript异步函数出现异常,疑似内存被覆盖。已尝试精简参数但无效,现咨询:
- 是否从根本上支持组合这两种系列?
- 若支持,问题出在哪里?
- 若不支持,能否提交功能需求?
内容的提问来源于stack exchange,提问作者Hans Rottier
相关产品推荐
相关产品推荐

