Highcharts 注释和自定义标记不能一起工作

问题描述

我正在使用注释,有些地方可能有自定义标记,当我调用时它会引发错误

chart.addAnnoation({labels:this.state.labels,labelOptions:this.state.labelOptions})

enter image description here

  1413 | b(a,{
  1414 |   initAnnotation: function initAnnotation(a) {
  1415 |     a = new (B.types[a.type] || B)(this,a);
> 1416 |     this.annotations.push(a);
       | ^  1417 |     return a;
  1418 |   },1419 |   addAnnotation: function addAnnotation(a,b) {

  1417 |   return a;
  1418 | },1419 | addAnnotation: function addAnnotation(a,b) {
> 1420 |   a = this.initAnnotation(a);
       | ^  1421 |   this.options.annotations.push(a.options);
  1422 |   C(b,!0) && (a.redraw(),a.graphic.attr({
  1423 |     opacity: 1
series.data =
[
[1619096414000,105.18,{enable:true,symbol:"url(/media/icons/sNow_ice.png)"}],[1619100013000,105.01,[1619103613000,104.85],[1619107215000,104.62],[1619110814000,104.39,[1619114414000,104.11],[1619118014000,103.83],[1619121615000,103.66]
]

单独的自定义标记和注释工作正常,但是当图形在某些点带有自定义标记并尝试在同一图形上添加注释时,它会引发上述错误

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)