Ets Chart Container
Add-ons

Plugin Description: Ets chart management that eliminates repetitive code for chart initialization, resizing, refreshing, and other operations.
Last Updated: 2021-04-20 00:01:28
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | // Initialization method/** * @method Initialization method init * @param {object} param Initialization configuration * @param {object} custom Chart loading configuration * @example$echartsBox.init({ // Whether to resize with the window resize: true, // Whether to add a timer task; if enabled, this value specifies the timer interval intervalTime: 10000, // Global parameter retrieval method getQueryTerms: queryTerm, // Timed refresh callback function rfcb: refreshFuns, // Window resize callback function rscb: resizeFuns}, { // Example: Chart container ID echartsId: { // This method is called only once // init: function () {}, qi: function () { this.callback({ ... }); } },}); *//** * @memberof echartsBox * @method Redefine chart size resize * @param {Array=} ids If no value is passed, all charts will be resized */ |
评论