billboard.js 3.4.1 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/README.md +4 -1
  2. package/dist/billboard.css +1 -1
  3. package/dist/billboard.js +3942 -1467
  4. package/dist/billboard.min.css +1 -1
  5. package/dist/billboard.min.js +2 -2
  6. package/dist/billboard.pkgd.js +8372 -5306
  7. package/dist/billboard.pkgd.min.js +3 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.js +29 -13
  9. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.js +375 -91
  11. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.js +445 -108
  13. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.js +339 -73
  15. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.js +335 -74
  17. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +4236 -3792
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +4637 -3889
  20. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +4804 -3931
  21. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +4595 -3865
  22. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +4607 -3873
  23. package/dist/theme/datalab.css +1 -1
  24. package/dist/theme/datalab.min.css +1 -1
  25. package/dist/theme/graph.css +1 -1
  26. package/dist/theme/graph.min.css +1 -1
  27. package/dist/theme/insight.css +1 -1
  28. package/dist/theme/insight.min.css +1 -1
  29. package/dist-esm/billboard.js +837 -403
  30. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +47 -75
  31. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +68 -86
  32. package/dist-esm/plugin/billboardjs-plugin-stanford.js +52 -77
  33. package/dist-esm/plugin/billboardjs-plugin-tableview.js +49 -76
  34. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +49 -76
  35. package/package.json +39 -39
  36. package/src/Chart/api/chart.ts +4 -1
  37. package/src/Chart/api/data.ts +2 -2
  38. package/src/Chart/api/flow.ts +125 -115
  39. package/src/ChartInternal/Axis/AxisRenderer.ts +29 -3
  40. package/src/ChartInternal/ChartInternal.ts +46 -18
  41. package/src/ChartInternal/data/IData.ts +2 -2
  42. package/src/ChartInternal/data/convert.helper.ts +226 -0
  43. package/src/ChartInternal/data/convert.ts +43 -210
  44. package/src/ChartInternal/data/load.ts +5 -4
  45. package/src/ChartInternal/interactions/zoom.ts +17 -4
  46. package/src/ChartInternal/internals/class.ts +1 -1
  47. package/src/ChartInternal/internals/color.ts +41 -42
  48. package/src/ChartInternal/internals/grid.ts +5 -3
  49. package/src/ChartInternal/internals/legend.ts +21 -6
  50. package/src/ChartInternal/internals/redraw.ts +5 -2
  51. package/src/ChartInternal/internals/scale.ts +3 -1
  52. package/src/ChartInternal/internals/size.axis.ts +5 -2
  53. package/src/ChartInternal/internals/style.ts +54 -0
  54. package/src/ChartInternal/internals/text.ts +118 -18
  55. package/src/ChartInternal/shape/arc.ts +4 -3
  56. package/src/ChartInternal/shape/area.ts +14 -7
  57. package/src/ChartInternal/shape/bar.ts +22 -12
  58. package/src/ChartInternal/shape/line.ts +3 -2
  59. package/src/ChartInternal/shape/point.ts +15 -9
  60. package/src/ChartInternal/shape/polar.ts +1 -1
  61. package/src/Plugin/sparkline/index.ts +22 -11
  62. package/src/Plugin/stanford/index.ts +10 -7
  63. package/src/Plugin/textoverlap/index.ts +4 -1
  64. package/src/config/Options/Options.ts +2 -0
  65. package/src/config/Options/common/boost.ts +31 -0
  66. package/src/config/Options/common/main.ts +15 -1
  67. package/src/config/Options/common/tooltip.ts +1 -1
  68. package/src/config/Options/data/data.ts +11 -3
  69. package/src/config/Options/shape/area.ts +6 -1
  70. package/src/config/Store/State.ts +3 -0
  71. package/src/module/browser.ts +2 -1
  72. package/src/module/generator.ts +18 -16
  73. package/src/module/util.ts +113 -0
  74. package/types/chart.d.ts +2 -2
  75. package/types/options.d.ts +45 -8
@@ -5,11 +5,11 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.4.1
8
+ * @version 3.5.0
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
- /*! *****************************************************************************
12
+ /******************************************************************************
13
13
  Copyright (c) Microsoft Corporation.
14
14
 
15
15
  Permission to use, copy, modify, and/or distribute this software for any
@@ -80,12 +80,10 @@ function __spreadArray(to, from, pack) {
80
80
  * Copyright (c) 2017 ~ present NAVER Corp.
81
81
  * billboard.js project is licensed under the MIT license
82
82
  */
83
-
84
83
  /**
85
84
  * Base class to generate billboard.js plugin
86
85
  * @class Plugin
87
86
  */
88
-
89
87
  /**
90
88
  * Version info string for plugin
91
89
  * @name version
@@ -95,77 +93,51 @@ function __spreadArray(to, from, pack) {
95
93
  * @example
96
94
  * bb.plugin.stanford.version; // ex) 1.9.0
97
95
  */
98
- var Plugin = /*#__PURE__*/function () {
99
- /**
100
- * Version info string for plugin
101
- * @name version
102
- * @static
103
- * @memberof Plugin
104
- * @type {String}
105
- * @example
106
- * bb.plugin.stanford.version; // ex) 1.9.0
107
- */
108
-
109
- /**
110
- * Constructor
111
- * @param {Any} options config option object
112
- * @private
113
- */
114
- function Plugin(options) {
115
- if (options === void 0) {
116
- options = {};
96
+ var Plugin = /** @class */ (function () {
97
+ /**
98
+ * Constructor
99
+ * @param {Any} options config option object
100
+ * @private
101
+ */
102
+ function Plugin(options) {
103
+ if (options === void 0) { options = {}; }
104
+ this.options = options;
117
105
  }
118
- this.options = options;
119
- }
120
- /**
121
- * Lifecycle hook for 'beforeInit' phase.
122
- * @private
123
- */
124
-
125
-
126
- var _proto = Plugin.prototype;
127
-
128
- _proto.$beforeInit = function $beforeInit() {}
129
- /**
130
- * Lifecycle hook for 'init' phase.
131
- * @private
132
- */
133
- ;
134
-
135
- _proto.$init = function $init() {}
136
- /**
137
- * Lifecycle hook for 'afterInit' phase.
138
- * @private
139
- */
140
- ;
141
-
142
- _proto.$afterInit = function $afterInit() {}
143
- /**
144
- * Lifecycle hook for 'redraw' phase.
145
- * @private
146
- */
147
- ;
148
-
149
- _proto.$redraw = function $redraw() {}
150
- /**
151
- * Lifecycle hook for 'willDestroy' phase.
152
- * @private
153
- */
154
- ;
155
-
156
- _proto.$willDestroy = function $willDestroy() {
157
- var _this = this;
158
-
159
- Object.keys(this).forEach(function (key) {
160
- _this[key] = null;
161
- delete _this[key];
162
- });
163
- };
164
-
165
- return Plugin;
166
- }();
167
-
168
- Plugin.version = "#3.4.1#";
106
+ /**
107
+ * Lifecycle hook for 'beforeInit' phase.
108
+ * @private
109
+ */
110
+ Plugin.prototype.$beforeInit = function () { };
111
+ /**
112
+ * Lifecycle hook for 'init' phase.
113
+ * @private
114
+ */
115
+ Plugin.prototype.$init = function () { };
116
+ /**
117
+ * Lifecycle hook for 'afterInit' phase.
118
+ * @private
119
+ */
120
+ Plugin.prototype.$afterInit = function () { };
121
+ /**
122
+ * Lifecycle hook for 'redraw' phase.
123
+ * @private
124
+ */
125
+ Plugin.prototype.$redraw = function () { };
126
+ /**
127
+ * Lifecycle hook for 'willDestroy' phase.
128
+ * @private
129
+ */
130
+ Plugin.prototype.$willDestroy = function () {
131
+ var _this = this;
132
+ Object.keys(this).forEach(function (key) {
133
+ _this[key] = null;
134
+ delete _this[key];
135
+ });
136
+ };
137
+ Plugin.version = "3.5.0";
138
+ return Plugin;
139
+ }());
140
+ var Plugin$1 = Plugin;
169
141
 
170
142
  /**
171
143
  * Copyright (c) 2021 ~ present NAVER Corp.
@@ -300,7 +272,8 @@ var win = (function () {
300
272
  /* eslint-enable no-new-func, no-undef */
301
273
  // fallback for non-supported environments
302
274
  win.requestIdleCallback = win.requestIdleCallback || (function (cb) { return setTimeout(cb, 1); });
303
- win.cancelIdleCallback = win.cancelIdleCallback || (function (id) { return clearTimeout(id); });
275
+ // win.cancelIdleCallback = win.cancelIdleCallback || (id => clearTimeout(id));
276
+ win.requestAnimationFrame = win.requestAnimationFrame || (function (cb) { return setTimeout(cb, 1); });
304
277
  var doc = win === null || win === void 0 ? void 0 : win.document;
305
278
 
306
279
  var isNumber = function (v) { return typeof v === "number"; };
@@ -573,6 +546,6 @@ var TableView = /** @class */ (function (_super) {
573
546
  }
574
547
  };
575
548
  return TableView;
576
- }(Plugin));
549
+ }(Plugin$1));
577
550
 
578
551
  export { TableView as default };
@@ -5,14 +5,14 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.4.1
8
+ * @version 3.5.0
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
12
  import { Delaunay } from 'd3-delaunay';
13
13
  import { polygonCentroid, polygonArea } from 'd3-polygon';
14
14
 
15
- /*! *****************************************************************************
15
+ /******************************************************************************
16
16
  Copyright (c) Microsoft Corporation.
17
17
 
18
18
  Permission to use, copy, modify, and/or distribute this software for any
@@ -76,7 +76,8 @@ var win = (function () {
76
76
  /* eslint-enable no-new-func, no-undef */
77
77
  // fallback for non-supported environments
78
78
  win.requestIdleCallback = win.requestIdleCallback || (function (cb) { return setTimeout(cb, 1); });
79
- win.cancelIdleCallback = win.cancelIdleCallback || (function (id) { return clearTimeout(id); });
79
+ // win.cancelIdleCallback = win.cancelIdleCallback || (id => clearTimeout(id));
80
+ win.requestAnimationFrame = win.requestAnimationFrame || (function (cb) { return setTimeout(cb, 1); });
80
81
  var doc = win === null || win === void 0 ? void 0 : win.document;
81
82
 
82
83
  var isDefined = function (v) { return typeof v !== "undefined"; };
@@ -211,12 +212,10 @@ function loadConfig(config) {
211
212
  * Copyright (c) 2017 ~ present NAVER Corp.
212
213
  * billboard.js project is licensed under the MIT license
213
214
  */
214
-
215
215
  /**
216
216
  * Base class to generate billboard.js plugin
217
217
  * @class Plugin
218
218
  */
219
-
220
219
  /**
221
220
  * Version info string for plugin
222
221
  * @name version
@@ -226,77 +225,51 @@ function loadConfig(config) {
226
225
  * @example
227
226
  * bb.plugin.stanford.version; // ex) 1.9.0
228
227
  */
229
- var Plugin = /*#__PURE__*/function () {
230
- /**
231
- * Version info string for plugin
232
- * @name version
233
- * @static
234
- * @memberof Plugin
235
- * @type {String}
236
- * @example
237
- * bb.plugin.stanford.version; // ex) 1.9.0
238
- */
239
-
240
- /**
241
- * Constructor
242
- * @param {Any} options config option object
243
- * @private
244
- */
245
- function Plugin(options) {
246
- if (options === void 0) {
247
- options = {};
228
+ var Plugin = /** @class */ (function () {
229
+ /**
230
+ * Constructor
231
+ * @param {Any} options config option object
232
+ * @private
233
+ */
234
+ function Plugin(options) {
235
+ if (options === void 0) { options = {}; }
236
+ this.options = options;
248
237
  }
249
- this.options = options;
250
- }
251
- /**
252
- * Lifecycle hook for 'beforeInit' phase.
253
- * @private
254
- */
255
-
256
-
257
- var _proto = Plugin.prototype;
258
-
259
- _proto.$beforeInit = function $beforeInit() {}
260
- /**
261
- * Lifecycle hook for 'init' phase.
262
- * @private
263
- */
264
- ;
265
-
266
- _proto.$init = function $init() {}
267
- /**
268
- * Lifecycle hook for 'afterInit' phase.
269
- * @private
270
- */
271
- ;
272
-
273
- _proto.$afterInit = function $afterInit() {}
274
- /**
275
- * Lifecycle hook for 'redraw' phase.
276
- * @private
277
- */
278
- ;
279
-
280
- _proto.$redraw = function $redraw() {}
281
- /**
282
- * Lifecycle hook for 'willDestroy' phase.
283
- * @private
284
- */
285
- ;
286
-
287
- _proto.$willDestroy = function $willDestroy() {
288
- var _this = this;
289
-
290
- Object.keys(this).forEach(function (key) {
291
- _this[key] = null;
292
- delete _this[key];
293
- });
294
- };
295
-
296
- return Plugin;
297
- }();
298
-
299
- Plugin.version = "#3.4.1#";
238
+ /**
239
+ * Lifecycle hook for 'beforeInit' phase.
240
+ * @private
241
+ */
242
+ Plugin.prototype.$beforeInit = function () { };
243
+ /**
244
+ * Lifecycle hook for 'init' phase.
245
+ * @private
246
+ */
247
+ Plugin.prototype.$init = function () { };
248
+ /**
249
+ * Lifecycle hook for 'afterInit' phase.
250
+ * @private
251
+ */
252
+ Plugin.prototype.$afterInit = function () { };
253
+ /**
254
+ * Lifecycle hook for 'redraw' phase.
255
+ * @private
256
+ */
257
+ Plugin.prototype.$redraw = function () { };
258
+ /**
259
+ * Lifecycle hook for 'willDestroy' phase.
260
+ * @private
261
+ */
262
+ Plugin.prototype.$willDestroy = function () {
263
+ var _this = this;
264
+ Object.keys(this).forEach(function (key) {
265
+ _this[key] = null;
266
+ delete _this[key];
267
+ });
268
+ };
269
+ Plugin.version = "3.5.0";
270
+ return Plugin;
271
+ }());
272
+ var Plugin$1 = Plugin;
300
273
 
301
274
  /**
302
275
  * Copyright (c) 2017 ~ present NAVER Corp.
@@ -457,6 +430,6 @@ var TextOverlap = /** @class */ (function (_super) {
457
430
  });
458
431
  };
459
432
  return TextOverlap;
460
- }(Plugin));
433
+ }(Plugin$1));
461
434
 
462
435
  export { TextOverlap as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "billboard.js",
3
- "version": "3.4.1",
3
+ "version": "3.5.0",
4
4
  "description": "Re-usable easy interface JavaScript chart library, based on D3 v4+",
5
5
  "homepage": "https://naver.github.io/billboard.js/",
6
6
  "main": "dist/billboard.js",
@@ -95,20 +95,20 @@
95
95
  "d3-zoom": "^3.0.0"
96
96
  },
97
97
  "devDependencies": {
98
- "@babel/core": "^7.17.9",
98
+ "@babel/core": "^7.18.6",
99
99
  "@babel/eslint-parser": "^7.17.0",
100
- "@babel/plugin-proposal-class-properties": "^7.16.7",
101
- "@babel/plugin-proposal-object-rest-spread": "^7.17.3",
102
- "@babel/plugin-transform-runtime": "^7.17.0",
103
- "@babel/preset-env": "^7.16.8",
104
- "@babel/preset-typescript": "^7.16.7",
105
- "@babel/runtime": "^7.17.9",
100
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
101
+ "@babel/plugin-proposal-object-rest-spread": "^7.18.6",
102
+ "@babel/plugin-transform-runtime": "^7.18.6",
103
+ "@babel/preset-env": "^7.18.6",
104
+ "@babel/preset-typescript": "^7.18.6",
105
+ "@babel/runtime": "^7.18.6",
106
106
  "@commitlint/cli": "^15.0.0",
107
- "@commitlint/config-conventional": "^16.2.1",
107
+ "@commitlint/config-conventional": "^17.0.3",
108
108
  "@rollup/plugin-babel": "^5.3.1",
109
- "@rollup/plugin-node-resolve": "^13.2.0",
109
+ "@rollup/plugin-node-resolve": "^13.2.1",
110
110
  "@rollup/plugin-replace": "^4.0.0",
111
- "@rollup/plugin-typescript": "^8.3.2",
111
+ "@rollup/plugin-typescript": "^8.3.3",
112
112
  "@semantic-release/changelog": "^6.0.1",
113
113
  "@semantic-release/commit-analyzer": "^9.0.2",
114
114
  "@semantic-release/exec": "^6.0.3",
@@ -116,49 +116,49 @@
116
116
  "@semantic-release/npm": "^9.0.1",
117
117
  "@semantic-release/release-notes-generator": "^10.0.3",
118
118
  "@types/chai": "^4.3.1",
119
- "@types/d3": "^7.1.0",
120
- "@types/mocha": "^9.0.0",
119
+ "@types/d3": "^7.4.0",
120
+ "@types/mocha": "^9.1.1",
121
121
  "@types/sinon": "^10.0.11",
122
- "@typescript-eslint/eslint-plugin": "^5.19.0",
123
- "@typescript-eslint/parser": "^5.19.0",
122
+ "@typescript-eslint/eslint-plugin": "^5.30.0",
123
+ "@typescript-eslint/parser": "^5.30.0",
124
124
  "babel-helper-modules": "^6.0.0",
125
- "babel-loader": "^8.2.4",
125
+ "babel-loader": "^8.2.5",
126
126
  "babel-plugin-add-module-exports": "^1.0.4",
127
127
  "babel-plugin-minify-constant-folding": "^0.5.0",
128
- "babel-plugin-minify-dead-code-elimination": "^0.5.1",
128
+ "babel-plugin-minify-dead-code-elimination": "^0.5.2",
129
129
  "babel-plugin-minify-guarded-expressions": "^0.4.4",
130
130
  "babel-plugin-minify-numeric-literals": "^0.4.3",
131
131
  "babel-plugin-minify-type-constructors": "^0.4.3",
132
132
  "babel-plugin-transform-inline-consecutive-adds": "^0.4.3",
133
- "babel-plugin-transform-merge-sibling-variables": "^6.9.4",
133
+ "babel-plugin-transform-merge-sibling-variables": "^6.9.5",
134
134
  "babel-plugin-transform-minify-booleans": "^6.9.4",
135
135
  "better-docs": "^2.7.2",
136
136
  "chai": "^4.3.4",
137
137
  "clean-webpack-plugin": "^4.0.0",
138
138
  "cloc": "^2.9.0",
139
- "core-js": "^3.21.1",
139
+ "core-js": "^3.23.3",
140
140
  "coveralls": "^3.1.1",
141
141
  "cross-env": "^7.0.3",
142
142
  "css-loader": "^6.7.1",
143
- "css-minimizer-webpack-plugin": "^3.3.1",
143
+ "css-minimizer-webpack-plugin": "^4.0.0",
144
144
  "d3-color": "^3.1.0",
145
145
  "d3-delaunay": "^6.0.2",
146
146
  "d3-format": "^3.1.0",
147
147
  "d3-polygon": "^3.0.1",
148
148
  "docdash": "^1.2.0",
149
149
  "dtslint": "^4.2.1",
150
- "eslint": "^8.13.0",
150
+ "eslint": "^8.18.0",
151
151
  "eslint-config-naver": "^2.1.0",
152
152
  "eslint-plugin-import": "^2.26.0",
153
- "eslint-plugin-jsdoc": "^39.2.1",
154
- "eslint-webpack-plugin": "^3.1.1",
155
- "exports-loader": "^3.1.0",
153
+ "eslint-plugin-jsdoc": "^39.3.3",
154
+ "eslint-webpack-plugin": "^3.2.0",
155
+ "exports-loader": "^4.0.0",
156
156
  "hammer-simulator": "0.0.1",
157
- "husky": "^7.0.4",
157
+ "husky": "^8.0.1",
158
158
  "istanbul-instrumenter-loader": "^3.0.1",
159
- "istanbul-lib-instrument": "^5.1.0",
159
+ "istanbul-lib-instrument": "^5.2.0",
160
160
  "jsdoc": "^3.6.10",
161
- "karma": "^6.3.18",
161
+ "karma": "^6.4.0",
162
162
  "karma-chai": "^0.1.0",
163
163
  "karma-chrome-launcher": "^3.1.1",
164
164
  "karma-coverage-istanbul-reporter": "^3.0.3",
@@ -169,27 +169,27 @@
169
169
  "karma-sourcemap-loader": "^0.3.8",
170
170
  "karma-webpack": "^5.0.0",
171
171
  "lite-fixture": "^1.0.2",
172
- "mini-css-extract-plugin": "^2.6.0",
173
- "mocha": "^9.2.2",
172
+ "mini-css-extract-plugin": "^2.6.1",
173
+ "mocha": "^10.0.0",
174
174
  "node-sass": "^7.0.1",
175
175
  "regenerator-runtime": "^0.13.7",
176
- "rollup": "^2.70.1",
176
+ "rollup": "^2.75.7",
177
177
  "rollup-plugin-delete": "^2.0.0",
178
- "sass-loader": "^12.6.0",
179
- "semantic-release": "^19.0.2",
178
+ "sass-loader": "^13.0.2",
179
+ "semantic-release": "^19.0.3",
180
180
  "simulant": "^0.2.2",
181
- "sinon": "^13.0.1",
181
+ "sinon": "^14.0.0",
182
182
  "string-replace-loader": "^3.1.0",
183
183
  "style-loader": "^3.3.1",
184
- "terser-webpack-plugin": "^5.3.1",
185
- "tslib": "^2.3.1",
186
- "typescript": "^4.6.3",
187
- "webpack": "^5.72.0",
184
+ "terser-webpack-plugin": "^5.3.3",
185
+ "tslib": "^2.4.0",
186
+ "typescript": "4.6.2",
187
+ "webpack": "^5.73.0",
188
188
  "webpack-bundle-analyzer": "^4.5.0",
189
189
  "webpack-clean": "^1.2.5",
190
- "webpack-cli": "^4.9.1",
190
+ "webpack-cli": "^4.10.0",
191
191
  "webpack-common-shake": "^2.1.0",
192
- "webpack-dev-server": "^4.8.1",
192
+ "webpack-dev-server": "^4.9.2",
193
193
  "webpack-merge": "^5.8.0",
194
194
  "webpackbar": "^5.0.2",
195
195
  "write-file-webpack-plugin": "^4.5.1"
@@ -100,7 +100,7 @@ export default {
100
100
  */
101
101
  destroy(): null {
102
102
  const $$ = this.internal;
103
- const {$el: {chart, svg}} = $$;
103
+ const {$el: {chart, style, svg}} = $$;
104
104
 
105
105
  if (notEmpty($$)) {
106
106
  $$.callPluginHook("$willDestroy");
@@ -119,6 +119,9 @@ export default {
119
119
  .selectChildren()
120
120
  .remove();
121
121
 
122
+ // remove <style> element added by boost.useCssRule option
123
+ style && style.parentNode.removeChild(style);
124
+
122
125
  // releasing own references
123
126
  Object.keys(this).forEach(key => {
124
127
  key === "internal" && Object.keys($$).forEach(k => {
@@ -97,7 +97,7 @@ extend(data, {
97
97
  * @function data․names
98
98
  * @instance
99
99
  * @memberof Chart
100
- * @param {object} names If this argument is given, the names of data will be updated. If not given, the current names will be returned. The format of this argument is the same as
100
+ * @param {object} names If this argument is given, the names of data will be updated. If not given, the current names will be returned. The format of this argument is the same as [data.names](./Options.html#.data%25E2%2580%25A4names).
101
101
  * @returns {object} Corresponding names according its key value, if specified names values.
102
102
  * @example
103
103
  * // Get current names
@@ -110,7 +110,7 @@ extend(data, {
110
110
  * data2: "New Name 2"
111
111
  *});
112
112
  */
113
- names: function(names?: Array<{ [key: string]: string; }>): {[key: string]: string} {
113
+ names: function(names?: Array<{ [key: string]: string|null; }>): {[key: string]: string|null} {
114
114
  const $$ = this.internal;
115
115
 
116
116
  return $$.updateDataAttributes("names", names);