Search Posts

Category: highcharts-ng

Highcharts-ng stock chart gives "TypeError: Cannot read property ‘hoverSeries’ of undefined" when loading data asynchronously

In my AngularJS app I’m using the custom directive ‘highcharts-ng’ to generate charts. I have a JSFiddle that creates a stock chart and works properly with scope-defined data, but throws an error when data are being fetched with $resource calls to a REST API (through a Factory): JSFiddle that works with scope-defined data For the REST-driven version, I have the following function for querying data: function getData(start, end) { return measurementsFactory .getMeasurements(start, end) .then(function(response) { […]