How to use the angular-highcharts.Highcharts 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 {
github edokeh / klog2 / app / assets / javascripts / admin / dashboard / index.js View on Github external
define(function (require, exports, module) {
    var angular = require('angularjs');
    var angularHighcharts = require('angular-highcharts');

    angularHighcharts.Highcharts.setOptions({
        lang: {
            shortMonths: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
            weekdays: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
        }
    });

    var dashboard = angular.module('dashboard', [angularHighcharts.name]);

    dashboard.seajsController(require('./controller/index'));

    dashboard.factory(require('./factory/dashboard'));


    module.exports = dashboard;
});

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 10 months ago

Package Health Score

64 / 100
Full package analysis