Search Posts

Category: highstock

Automatically redraw a highStock chart under Angularjs

I want to make a highStock chart under AngularJS, and I want to change some chart option by some buttons. However, it seems that changing the option does not redraw the chart automatically. I tried to follow a thread which works with highChart, but I cannot make the directive work with highStock. Here is a plunker, the watch is well triggered, whereas I don’t know how redraw the chart well. .directive(‘highchart’, function($parse, $timeout) { return […]

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) { […]