How to use the fusioncharts.register function in fusioncharts

To help you get started, we’ve selected a few fusioncharts 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 fusioncharts / fusioncharts-jquery-plugin / lib / jquery-fusioncharts.js View on Github external
/**
 * @module fusioncharts.jqueryplugin
 * @private
 * @requires fusioncharts.transcoder.htmltable
 *
 * @export fusioncharts.jqueryplugin.js
 */

var FusionCharts = require('fusioncharts');
var jQuery = require('jquery');

// Require the html table module
require('./transcoder-htmltable/transcoder-htmltable');

FusionCharts.register('module', ['private', 'extensions.jQueryPlugin', function () {

    var global = this,
        win = global.window,
        lib = global.hcLib,
        doc = win.document,
        jQ = jQuery,
        renderFusionCharts,
        captureAllFusionChartsEvents,
        getChartObjectsFromSelection,
        configureLinkedCharts,
        math = win.Math,
        mathMin = math.min,
        isArray = lib.isArray,
        realtimeCommandMap = {
        feed: 'feedData',
        setdata: 'setData',
github fusioncharts / fusioncharts-jquery-plugin / lib / transcoder-htmltable / transcoder-htmltable.js View on Github external
/**
 * HTMLTable Data Handler
 * This module maps chart type alias with particular FusionCharts object.
 * @private
 *
 * @module fusioncharts.transcoder.htmltable
 */
var FusionCharts = require('fusioncharts');

FusionCharts.register('module', ['private', 'HTMLTableDataHandler', function () {

    var global = this,
        win = global.window,
        doc = win.document,

    /**
     *  Used to remove all textNodes in an array of nodes. Textnodes get created
     *  inadvertently, when the table HTML has newline and space. Returns an
     *  array of nodes that is not an HTMLCollection and has only the non-text
     *  nodes in it.
     *
     *  @param {array} nodeArr Contains the array of nodes that have to be
     *  sanitized.
     */
    sanitizeNodesArray = function (nodeArr) {
        var l,
github fusioncharts / fusioncharts-jquery-plugin / src / transcoder-htmltable / transcoder-htmltable.js View on Github external
/**
 * HTMLTable Data Handler
 * This module maps chart type alias with particular FusionCharts object.
 * @private
 *
 * @module fusioncharts.transcoder.htmltable
 */
var FusionCharts = require('fusioncharts');

FusionCharts.register('module', ['private', 'HTMLTableDataHandler', function () {

    var global = this,
        win = global.window,
        doc = win.document,
        /**
         *  Used to remove all textNodes in an array of nodes. Textnodes get created
         *  inadvertently, when the table HTML has newline and space. Returns an
         *  array of nodes that is not an HTMLCollection and has only the non-text
         *  nodes in it.
         *
         *  @param {array} nodeArr Contains the array of nodes that have to be
         *  sanitized.
         */
        sanitizeNodesArray = function (nodeArr) {
            var l, i, sanitizedArr = [];
            for (i = 0, l = nodeArr.length; i < l; i += 1) {