Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 944 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 944 Bytes

Angular Highcharts Directive

An angular directive that wraps around highcharts.

See the code below for this convenient and modelar integration.

USing this directive along with some of the code

HTML

<div>
    <chart value="basicAreaChart" type="area" height="400"></chart>
</div>

Angular

'use strict';

angular.module('chartsExample.controllers', []).controller('MainCtrl', ['$scope', '$http', function($scope, $http) {
    $http.get("charts/basicAreaChart.json").success(function(data) {
        $scope.basicAreaChart = data;
    });
}]);

Bitdeli Badge