ZSJ_BCY_Web/lib/hcharts/Highcharts/5.0.6/js/modules/no-data-to-display.src.js

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
 * @license Highcharts JS v5.0.6 (2016-12-07)
 * Plugin for displaying a message when there is no data visible in chart.
 *
 * (c) 2010-2016 Highsoft AS
 * Author: Oystein Moseng
 *
 * License: www.highcharts.com/license
 */
(function(factory) {
    if (typeof module === 'object' && module.exports) {
        module.exports = factory;
    } else {
        factory(Highcharts);
    }
}(function(Highcharts) {
    (function(H) {
        /**
         * Plugin for displaying a message when there is no data visible in chart.
         *
         * (c) 2010-2016 Highsoft AS
         * Author: Oystein Moseng
         *
         * License: www.highcharts.com/license
         */
        'use strict';

        var seriesTypes = H.seriesTypes,
            chartPrototype = H.Chart.prototype,
            defaultOptions = H.getOptions(),
            extend = H.extend,
            each = H.each;

        // Add language option
        extend(defaultOptions.lang, {
            noData: 'No data to display'
        });

        // Add default display options for message
        defaultOptions.noData = {
            position: {
                x: 0,
                y: 0,
                align: 'center',
                verticalAlign: 'middle'
            }
            // useHTML: false
        };



        /**
         * Define hasData functions for series. These return true if there are data points on this series within the plot area
         */
        function hasDataPie() {
            return !!this.points.length; /* != 0 */
        }

        each(['pie', 'gauge', 'waterfall', 'bubble', 'treemap'], function(type) {
            if (seriesTypes[type]) {
后面还有 90 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。