How to use the angular-highcharts.Highcharts.getOptions function in angular-highcharts

To help you get started, we’ve selected a few angular-highcharts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github edokeh / klog2 / app / assets / javascripts / admin / dashboard / controller / index.js View on Github external
define(function(require, exports, module) {
    var _ = require('_');
    var Highcharts = require('angular-highcharts').Highcharts;
    var COLORS = Highcharts.getOptions().colors;

    var IndexController = ['$scope', '$http', '$modal', function($scope, $http, $modal) {

        // 获取总体统计数据
        $scope.getDashboard = function() {
            $scope.dashboardXHR = httpGet('/admin/dashboard', function(data) {
                $scope.dashboard = data;

                // 如果启用了 ga chart
                if ($scope.dashboard.ga_enable) {
                    $scope.getTopPages();
                    $scope.getDailyVisit();
                    $scope.getBrowser();
                }
                else {
                    $scope.nowDate = Highcharts.dateFormat('%m月%d日', new Date().getTime());

angular-highcharts

[![NPM version](https://img.shields.io/npm/v/angular-highcharts.svg)](https://npmjs.org/package/angular-highcharts) [![NPM downloads](https://img.shields.io/npm/dt/angular-highcharts.svg)](https://npmjs.org/package/angular-highcharts) ![](https://github.c

MIT
Latest version published 9 months ago

Package Health Score

64 / 100
Full package analysis