billboard.js 3.6.0 → 3.6.2
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.
- package/README.md +13 -77
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +4531 -7081
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +7931 -11567
- package/dist/billboard.pkgd.min.js +2 -3
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +27 -62
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +303 -528
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +368 -648
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +305 -513
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +306 -500
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +2121 -2265
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +2892 -3502
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +3146 -4013
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +2921 -3514
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +3037 -3835
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +1 -1
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +1 -1
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +1 -1
- package/dist-esm/billboard.js +54 -38
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +3 -8
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +3 -12
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +3 -12
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +3 -12
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +3 -8
- package/package.json +23 -23
- package/src/ChartInternal/data/IData.ts +8 -2
- package/src/ChartInternal/interactions/eventrect.ts +22 -13
- package/src/ChartInternal/interactions/interaction.ts +39 -26
- package/types/options.d.ts +7 -0
package/README.md
CHANGED
|
@@ -18,6 +18,7 @@ billboard.js is a re-usable, easy interface JavaScript chart library, based on [
|
|
|
18
18
|
- [Examples](https://naver.github.io/billboard.js/demo/)
|
|
19
19
|
- [Roadmap](https://github.com/naver/billboard.js/wiki/Roadmap)
|
|
20
20
|
- [Contribution Guide](CONTRIBUTING.md)
|
|
21
|
+
- [Development Guide](DEVELOPMENT.md)
|
|
21
22
|
- [Comparison table with other libraries](https://github.com/naver/billboard.js/wiki/Comparison-table)
|
|
22
23
|
- [Migration guide from C3.js](https://github.com/naver/billboard.js/wiki/How-to-migrate-from-C3.js%3F)
|
|
23
24
|
- [Third Party Applications](https://github.com/naver/billboard.js/wiki/Third-party-applications)
|
|
@@ -33,11 +34,6 @@ billboard.js is a re-usable, easy interface JavaScript chart library, based on [
|
|
|
33
34
|
- v3 updates:
|
|
34
35
|
- [billboard.js 3.0 release: D3.js v6 support & new candlestick type!](https://netil.medium.com/billboard-js-3-0-release-d3-js-v6-support-new-candlestick-type-9bd74af6a753)
|
|
35
36
|
|
|
36
|
-
## Playground
|
|
37
|
-
Play with the diverse options generating on the fly!
|
|
38
|
-
- https://naver.github.io/billboard.js/playground/ (obsolete)
|
|
39
|
-
- https://beta.observablehq.com/@idris-maps/billboard-js-playground (by [@idris-maps](https://github.com/idris-maps))
|
|
40
|
-
|
|
41
37
|
## Questions?
|
|
42
38
|
If you have any questions, checkout the previous posts or create a new one at:
|
|
43
39
|
- [Stack Overflow: billboard.js tagged posts](https://stackoverflow.com/questions/tagged/billboard.js)
|
|
@@ -50,6 +46,9 @@ If you have any questions, checkout the previous posts or create a new one at:
|
|
|
50
46
|
|
|
51
47
|
Download dist files from the repo directly or install it via npm.
|
|
52
48
|
|
|
49
|
+
<details>
|
|
50
|
+
<summary>Dist file list from the repo. (click to expand)</summary>
|
|
51
|
+
|
|
53
52
|
### For development (Uncompressed)
|
|
54
53
|
|
|
55
54
|
You can download the uncompressed files for development
|
|
@@ -85,10 +84,16 @@ You can download the compressed files for production
|
|
|
85
84
|
- https://naver.github.io/billboard.js/release/[VERSION]/dist/billboard.pkgd.js
|
|
86
85
|
- https://naver.github.io/billboard.js/release/[VERSION]/dist/billboard.pkgd.min.js
|
|
87
86
|
|
|
87
|
+
</details>
|
|
88
|
+
|
|
88
89
|
### Themes
|
|
89
90
|
> If you want apply themes, simply load one of the theme css file provided instead of the default css file.
|
|
90
91
|
> - [Screenshot Preview](https://github.com/naver/billboard.js/wiki/Themes)
|
|
91
92
|
|
|
93
|
+
|
|
94
|
+
<details>
|
|
95
|
+
<summary>Dist theme file list from the repo. (click to expand)</summary>
|
|
96
|
+
|
|
92
97
|
#### datalab
|
|
93
98
|
- https://naver.github.io/billboard.js/release/latest/dist/theme/datalab.css
|
|
94
99
|
- https://naver.github.io/billboard.js/release/latest/dist/theme/datalab.min.css
|
|
@@ -102,6 +107,8 @@ You can download the compressed files for production
|
|
|
102
107
|
- https://naver.github.io/billboard.js/release/latest/dist/theme/graph.css
|
|
103
108
|
- https://naver.github.io/billboard.js/release/latest/dist/theme/graph.min.css
|
|
104
109
|
|
|
110
|
+
</details>
|
|
111
|
+
|
|
105
112
|
### Nightly version
|
|
106
113
|
|
|
107
114
|
Nightly version is the latest build from the master branch.
|
|
@@ -192,6 +199,7 @@ Load billboard.js after D3.js.
|
|
|
192
199
|
```
|
|
193
200
|
|
|
194
201
|
or use importing ESM.
|
|
202
|
+
> 📌 Also check: [How to load as ESM directly from the browser?](https://github.com/naver/billboard.js/wiki/How-to-load-as-ESM-directly-from-the-browser%3F)
|
|
195
203
|
|
|
196
204
|
```js
|
|
197
205
|
// 1) import billboard.js
|
|
@@ -244,78 +252,6 @@ var chart = bb.generate({
|
|
|
244
252
|
chart.load( ... );
|
|
245
253
|
```
|
|
246
254
|
|
|
247
|
-
## How to start developing billboard.js?
|
|
248
|
-
|
|
249
|
-
For anyone interested in developing billboard.js, follow the instructions below.
|
|
250
|
-
> Required Node.js version: `10.10.0+`
|
|
251
|
-
|
|
252
|
-
### Development Environment
|
|
253
|
-
|
|
254
|
-
#### 1. Clone the repository
|
|
255
|
-
|
|
256
|
-
Clone the billboard.js repository and install the dependency modules.
|
|
257
|
-
|
|
258
|
-
```bash
|
|
259
|
-
# Create a folder and move.
|
|
260
|
-
$ mkdir billboard.js && cd billboard.js
|
|
261
|
-
|
|
262
|
-
# Clone the repository.
|
|
263
|
-
$ git clone https://github.com/naver/billboard.js.git
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
#### 2. Install dependencies
|
|
267
|
-
`npm` and `Yarn` are supported.
|
|
268
|
-
|
|
269
|
-
```
|
|
270
|
-
# Install the dependency modules.
|
|
271
|
-
$ npm install
|
|
272
|
-
|
|
273
|
-
# or
|
|
274
|
-
$ yarn
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
#### 3. Build
|
|
278
|
-
|
|
279
|
-
Use npm script to build billboard.js
|
|
280
|
-
|
|
281
|
-
```bash
|
|
282
|
-
# Run webpack-dev-server for development
|
|
283
|
-
$ npm start
|
|
284
|
-
|
|
285
|
-
# Build
|
|
286
|
-
$ npm run build
|
|
287
|
-
|
|
288
|
-
# Generate jsdoc
|
|
289
|
-
$ npm run jsdoc
|
|
290
|
-
```
|
|
291
|
-
|
|
292
|
-
Two folders will be created after the build is completed.
|
|
293
|
-
|
|
294
|
-
- **dist** folder: Includes the **billboard.js** and **billboard.min.js** files.
|
|
295
|
-
- **doc** folder: Includes API documentation. The home page for the documentation is **doc/index.html**.
|
|
296
|
-
|
|
297
|
-
### Linting
|
|
298
|
-
|
|
299
|
-
To maintain the same code style and quality, we adopted [ESLint](https://eslint.org/). The [rules](https://github.com/naver/eslint-config-naver/tree/master/rules) are based on the [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript) with some modifications.
|
|
300
|
-
Setup your editor for check or run the below command for linting.
|
|
301
|
-
|
|
302
|
-
```bash
|
|
303
|
-
$ npm run lint
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
### Test
|
|
307
|
-
|
|
308
|
-
Once you created a branch and finished the development, you must perform a test with `npm test` command before the push to a remote repository.
|
|
309
|
-
|
|
310
|
-
```bash
|
|
311
|
-
$ npm test
|
|
312
|
-
```
|
|
313
|
-
Running the `npm test` command will start [Mocha](https://mochajs.org/) tests via [Karma-runner](https://karma-runner.github.io/).
|
|
314
|
-
|
|
315
|
-
## Bug Report
|
|
316
|
-
|
|
317
|
-
If you find a bug, please report to us by posting [issues](https://github.com/naver/billboard.js/issues) on GitHub.
|
|
318
|
-
|
|
319
255
|
## License
|
|
320
256
|
billboard.js is released under the [MIT license](https://github.com/naver/billboard.js/blob/master/LICENSE).
|
|
321
257
|
|