0

i am trying to load some stock historical data into highchart but i am getting Cannot read property 'info' of undefined while using Angular 2 Highcharts. It works with one set of data but when i try different data it throws this error. wonder if it is something to do with saved instance and need a way to destroy the old chart in Angular 2. It seems like the same issue here, but not sure how to fix this in Angular2 highcharts Cannot read property 'info' of undefined

<chart [options]="options" type="StockChart"
   (load)="saveInstance($event.context)">

Community
  • 1
  • 1
kam
  • 425
  • 2
  • 6
  • 24
  • Your code does not allow to reproduce the problem. Read [how to create a Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve) and try to recreate a live example of the issue on plunkr/jsfiddle/etc. – morganfree Mar 15 '17 at 11:43

1 Answers1

0

The Problem was with the actual data and not highcharts. one of the json property in the data was Date which was in string format and wasn't getting converted to milliseconds.

kam
  • 425
  • 2
  • 6
  • 24