Search code examples
angularjshighchartshighcharts-ng

highcharts-ng: Cannot read property 'setExtremes' of undefined


Suddenly highcharts-ng module started throwing out quite a strange error.

enter image description here

I did not touch this part of the code and I don't use setExtremes property.

Error Line 92:

enter image description here

If somebody already faced with such kind of problem I really appreciate your help.


Solution

  • This is a new bug introduced in 0.0.9 and only partially fixed in 0.0.10.

    It will be fixed in a 0.0.11 shortly. In the meantime if in your chart config you define a yAxis it will work:

    yAxis: {
          events: {}
        }