billboard.js 4.1.5 → 4.2.0-next.1
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/dist/billboard.css +87 -1
- package/dist/billboard.js +11000 -6970
- package/dist/billboard.min.css +2 -2
- package/dist/billboard.min.js +19 -19
- package/dist/billboard.pkgd.js +22584 -14102
- package/dist/billboard.pkgd.min.js +37 -37
- package/dist/billboard.react.js +5 -5
- package/dist/billboard.react.min.js +2 -2
- package/dist/billboard.worker.js +1 -1
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +21 -4
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-stanford.js +22 -13
- package/dist/plugin/billboardjs-plugin-stanford.min.js +4 -4
- package/dist/plugin/billboardjs-plugin-tableview.js +20 -3
- package/dist/plugin/billboardjs-plugin-tableview.min.js +4 -4
- package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +1689 -1252
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +8 -8
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2288 -1012
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +10 -10
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +6350 -2390
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +18 -18
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +1310 -1006
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +10 -10
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +1293 -1006
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +8 -8
- package/dist/theme/dark.css +90 -1
- package/dist/theme/dark.min.css +2 -2
- package/dist/theme/datalab.css +87 -1
- package/dist/theme/datalab.min.css +2 -2
- package/dist/theme/graph.css +87 -1
- package/dist/theme/graph.min.css +2 -2
- package/dist/theme/insight.css +87 -1
- package/dist/theme/insight.min.css +2 -2
- package/dist/theme/modern.css +87 -1
- package/dist/theme/modern.min.css +2 -2
- package/dist-esm/Chart/Chart.js +5 -5
- package/dist-esm/Chart/api/axis.js +2 -3
- package/dist-esm/Chart/api/category.js +2 -3
- package/dist-esm/Chart/api/chart.js +2 -3
- package/dist-esm/Chart/api/color.js +2 -3
- package/dist-esm/Chart/api/data.js +3 -4
- package/dist-esm/Chart/api/export.js +3 -4
- package/dist-esm/Chart/api/flow.js +3 -4
- package/dist-esm/Chart/api/focus.js +5 -3
- package/dist-esm/Chart/api/grid.js +2 -3
- package/dist-esm/Chart/api/group.js +2 -3
- package/dist-esm/Chart/api/legend.js +1 -2
- package/dist-esm/Chart/api/load.js +3 -4
- package/dist-esm/Chart/api/regions.js +3 -4
- package/dist-esm/Chart/api/selection.js +3 -4
- package/dist-esm/Chart/api/show.js +2 -3
- package/dist-esm/Chart/api/stubs.js +3 -4
- package/dist-esm/Chart/api/subchart.js +4 -5
- package/dist-esm/Chart/api/tooltip.js +28 -9
- package/dist-esm/Chart/api/x.js +2 -3
- package/dist-esm/Chart/api/zoom.js +6 -7
- package/dist-esm/ChartInternal/Axis/Axis.js +5 -6
- package/dist-esm/ChartInternal/Axis/AxisRenderer.js +9 -7
- package/dist-esm/ChartInternal/Axis/AxisRendererHelper.js +39 -11
- package/dist-esm/ChartInternal/ChartInternal.js +39 -24
- package/dist-esm/ChartInternal/data/convert.helper.js +2 -3
- package/dist-esm/ChartInternal/data/convert.js +3 -4
- package/dist-esm/ChartInternal/data/data.js +18 -11
- package/dist-esm/ChartInternal/data/load.js +4 -5
- package/dist-esm/ChartInternal/interactions/drag.js +3 -4
- package/dist-esm/ChartInternal/interactions/eventrect.js +4 -5
- package/dist-esm/ChartInternal/interactions/flow.js +3 -4
- package/dist-esm/ChartInternal/interactions/interaction.js +14 -13
- package/dist-esm/ChartInternal/interactions/subchart.js +5 -6
- package/dist-esm/ChartInternal/interactions/zoom.js +4 -5
- package/dist-esm/ChartInternal/internals/category.js +2 -3
- package/dist-esm/ChartInternal/internals/class.js +5 -5
- package/dist-esm/ChartInternal/internals/clip.js +2 -3
- package/dist-esm/ChartInternal/internals/color.js +4 -5
- package/dist-esm/ChartInternal/internals/domain.js +7 -7
- package/dist-esm/ChartInternal/internals/format.js +3 -4
- package/dist-esm/ChartInternal/internals/grid.js +4 -5
- package/dist-esm/ChartInternal/internals/legend.js +7 -7
- package/dist-esm/ChartInternal/internals/redraw.js +8 -8
- package/dist-esm/ChartInternal/internals/region.js +4 -5
- package/dist-esm/ChartInternal/internals/scale.js +2 -3
- package/dist-esm/ChartInternal/internals/selection.js +3 -4
- package/dist-esm/ChartInternal/internals/size.axis.js +2 -3
- package/dist-esm/ChartInternal/internals/size.js +8 -9
- package/dist-esm/ChartInternal/internals/style.js +4 -5
- package/dist-esm/ChartInternal/internals/subchart.util.js +2 -3
- package/dist-esm/ChartInternal/internals/text.arc.js +3 -4
- package/dist-esm/ChartInternal/internals/text.js +22 -23
- package/dist-esm/ChartInternal/internals/text.util.js +4 -5
- package/dist-esm/ChartInternal/internals/title.js +4 -5
- package/dist-esm/ChartInternal/internals/tooltip.js +20 -20
- package/dist-esm/ChartInternal/internals/transform.js +5 -6
- package/dist-esm/ChartInternal/internals/type.js +78 -11
- package/dist-esm/ChartInternal/shape/arc.js +5 -6
- package/dist-esm/ChartInternal/shape/area.js +4 -5
- package/dist-esm/ChartInternal/shape/bar.js +5 -6
- package/dist-esm/ChartInternal/shape/boxplot.js +111 -0
- package/dist-esm/ChartInternal/shape/bubble.js +2 -3
- package/dist-esm/ChartInternal/shape/bullet.js +213 -0
- package/dist-esm/ChartInternal/shape/candlestick.js +5 -6
- package/dist-esm/ChartInternal/shape/core/barRadius.js +2 -3
- package/dist-esm/ChartInternal/shape/core/boxplot.js +192 -0
- package/dist-esm/ChartInternal/shape/core/bubble.js +4 -5
- package/dist-esm/ChartInternal/shape/core/bullet.js +528 -0
- package/dist-esm/ChartInternal/shape/core/candlestick.js +2 -3
- package/dist-esm/ChartInternal/shape/core/dataRegion.js +2 -3
- package/dist-esm/ChartInternal/shape/core/geometry.js +2 -3
- package/dist-esm/ChartInternal/shape/core/heatmap.js +453 -0
- package/dist-esm/ChartInternal/shape/core/path.js +2 -3
- package/dist-esm/ChartInternal/shape/core/point.js +2 -3
- package/dist-esm/ChartInternal/shape/core/sankey.js +576 -0
- package/dist-esm/ChartInternal/shape/core/treemap.js +2 -3
- package/dist-esm/ChartInternal/shape/funnel.js +45 -6
- package/dist-esm/ChartInternal/shape/gauge.js +3 -4
- package/dist-esm/ChartInternal/shape/heatmap.js +144 -0
- package/dist-esm/ChartInternal/shape/line.js +7 -8
- package/dist-esm/ChartInternal/shape/point.js +5 -6
- package/dist-esm/ChartInternal/shape/polar.js +3 -4
- package/dist-esm/ChartInternal/shape/radar.js +19 -7
- package/dist-esm/ChartInternal/shape/sankey.js +154 -0
- package/dist-esm/ChartInternal/shape/shape.js +7 -7
- package/dist-esm/ChartInternal/shape/treemap.js +8 -5
- package/dist-esm/canvas/CanvasAxisRenderer.js +12 -315
- package/dist-esm/canvas/CanvasEngine.js +2 -3
- package/dist-esm/canvas/CanvasPainter.js +2 -3
- package/dist-esm/canvas/CanvasRenderer.js +38 -408
- package/dist-esm/canvas/CanvasTheme.js +28 -8
- package/dist-esm/canvas/HitDetector.js +20 -24
- package/dist-esm/canvas/axisTicks.js +5 -6
- package/dist-esm/canvas/boxplot.js +201 -0
- package/dist-esm/canvas/bullet.js +212 -0
- package/dist-esm/canvas/classes.js +2 -3
- package/dist-esm/canvas/color.js +2 -3
- package/dist-esm/canvas/flow.js +190 -0
- package/dist-esm/canvas/geometry.js +2 -3
- package/dist-esm/canvas/grid.js +206 -0
- package/dist-esm/canvas/heatmap.js +141 -0
- package/dist-esm/canvas/labels.js +3 -4
- package/dist-esm/canvas/pointPattern.js +2 -3
- package/dist-esm/canvas/sankey.js +137 -0
- package/dist-esm/canvas/selection.js +473 -0
- package/dist-esm/canvas/subchart.js +814 -0
- package/dist-esm/canvas/treemap.js +100 -0
- package/dist-esm/canvas/util.js +2 -3
- package/dist-esm/config/Options/Options.js +3 -4
- package/dist-esm/config/Options/axis/axis.js +2 -3
- package/dist-esm/config/Options/axis/x.js +2 -3
- package/dist-esm/config/Options/axis/y.js +2 -3
- package/dist-esm/config/Options/axis/y2.js +14 -3
- package/dist-esm/config/Options/common/boost.js +2 -3
- package/dist-esm/config/Options/common/color.js +2 -3
- package/dist-esm/config/Options/common/grid.js +2 -3
- package/dist-esm/config/Options/common/legend.js +2 -3
- package/dist-esm/config/Options/common/main.js +2 -3
- package/dist-esm/config/Options/common/point.js +2 -3
- package/dist-esm/config/Options/common/title.js +2 -3
- package/dist-esm/config/Options/common/tooltip.js +2 -3
- package/dist-esm/config/Options/data/axis.js +2 -3
- package/dist-esm/config/Options/data/data.js +49 -4
- package/dist-esm/config/Options/data/selection.js +2 -3
- package/dist-esm/config/Options/interaction/interaction.js +2 -3
- package/dist-esm/config/Options/interaction/subchart.js +2 -3
- package/dist-esm/config/Options/interaction/zoom.js +2 -3
- package/dist-esm/config/Options/shape/arc.js +2 -3
- package/dist-esm/config/Options/shape/area.js +2 -3
- package/dist-esm/config/Options/shape/bar.js +2 -3
- package/dist-esm/config/Options/shape/boxplot.js +106 -0
- package/dist-esm/config/Options/shape/bubble.js +2 -3
- package/dist-esm/config/Options/shape/bullet.js +177 -0
- package/dist-esm/config/Options/shape/candlestick.js +2 -3
- package/dist-esm/config/Options/shape/donut.js +2 -3
- package/dist-esm/config/Options/shape/funnel.js +2 -3
- package/dist-esm/config/Options/shape/gauge.js +2 -3
- package/dist-esm/config/Options/shape/heatmap.js +137 -0
- package/dist-esm/config/Options/shape/line.js +2 -3
- package/dist-esm/config/Options/shape/pie.js +2 -3
- package/dist-esm/config/Options/shape/polar.js +2 -3
- package/dist-esm/config/Options/shape/radar.js +2 -3
- package/dist-esm/config/Options/shape/sankey.js +116 -0
- package/dist-esm/config/Options/shape/scatter.js +2 -3
- package/dist-esm/config/Options/shape/spline.js +2 -3
- package/dist-esm/config/Options/shape/treemap.js +2 -3
- package/dist-esm/config/Store/Element.js +2 -3
- package/dist-esm/config/Store/State.js +3 -4
- package/dist-esm/config/Store/Store.js +2 -3
- package/dist-esm/config/classes.js +2 -4
- package/dist-esm/config/config.js +2 -3
- package/dist-esm/config/const.js +31 -23
- package/dist-esm/config/resolver/axis.core.js +4 -5
- package/dist-esm/config/resolver/axis.js +2 -3
- package/dist-esm/config/resolver/canvas.js +112 -911
- package/dist-esm/config/resolver/canvasBoxplot.js +49 -0
- package/dist-esm/config/resolver/canvasBullet.js +29 -0
- package/dist-esm/config/resolver/canvasFlow.js +28 -0
- package/dist-esm/config/resolver/canvasGrid.js +27 -0
- package/dist-esm/config/resolver/canvasHeatmap.js +31 -0
- package/dist-esm/config/resolver/canvasSankey.js +31 -0
- package/dist-esm/config/resolver/canvasSelection.js +30 -0
- package/dist-esm/config/resolver/canvasShape.js +13 -12
- package/dist-esm/config/resolver/canvasSubchart.js +30 -0
- package/dist-esm/config/resolver/canvasType.js +48 -0
- package/dist-esm/config/resolver/category.js +3 -4
- package/dist-esm/config/resolver/customType.js +58 -0
- package/dist-esm/config/resolver/export.js +3 -4
- package/dist-esm/config/resolver/flow.js +5 -6
- package/dist-esm/config/resolver/grid.js +6 -7
- package/dist-esm/config/resolver/interaction/selection.js +6 -7
- package/dist-esm/config/resolver/interaction/subchart.js +6 -7
- package/dist-esm/config/resolver/interaction/zoom.js +6 -7
- package/dist-esm/config/resolver/regions.js +5 -6
- package/dist-esm/config/resolver/shape/arc.helpers.js +5 -6
- package/dist-esm/config/resolver/shape/area.js +3 -4
- package/dist-esm/config/resolver/shape/axis.helpers.js +2 -3
- package/dist-esm/config/resolver/shape/bar.js +5 -6
- package/dist-esm/config/resolver/shape/boxplot.js +30 -0
- package/dist-esm/config/resolver/shape/bubble.js +5 -6
- package/dist-esm/config/resolver/shape/bullet.js +23 -0
- package/dist-esm/config/resolver/shape/candlestick.js +5 -6
- package/dist-esm/config/resolver/shape/donut.js +2 -3
- package/dist-esm/config/resolver/shape/funnel.js +7 -6
- package/dist-esm/config/resolver/shape/gauge.js +4 -5
- package/dist-esm/config/resolver/shape/heatmap.js +23 -0
- package/dist-esm/config/resolver/shape/line.js +2 -3
- package/dist-esm/config/resolver/shape/pie.js +3 -4
- package/dist-esm/config/resolver/shape/polar.js +4 -5
- package/dist-esm/config/resolver/shape/radar.js +5 -6
- package/dist-esm/config/resolver/shape/sankey.js +23 -0
- package/dist-esm/config/resolver/shape/scatter.js +4 -5
- package/dist-esm/config/resolver/shape/treemap.js +4 -5
- package/dist-esm/core.js +5 -6
- package/dist-esm/index.canvas.js +13 -9
- package/dist-esm/index.esm.js +6 -2
- package/dist-esm/module/Cache.js +2 -3
- package/dist-esm/module/browser.js +2 -3
- package/dist-esm/module/dsv.js +2 -3
- package/dist-esm/module/error.js +23 -16
- package/dist-esm/module/generator.js +3 -4
- package/dist-esm/module/sanitize.js +2 -3
- package/dist-esm/module/util/brush.js +2 -3
- package/dist-esm/module/util/dom.js +3 -4
- package/dist-esm/module/util/object.js +13 -6
- package/dist-esm/module/util/type-checks.js +2 -3
- package/dist-esm/module/worker.js +2 -3
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +6 -10
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +10 -18
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +17 -45
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +10 -18
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +9 -16
- package/dist-esm/react/index.js +2 -3
- package/package.json +44 -44
- package/src/Chart/Chart.ts +1 -0
- package/src/Chart/api/focus.ts +3 -0
- package/src/Chart/api/subchart.ts +1 -1
- package/src/Chart/api/tooltip.ts +54 -15
- package/src/ChartInternal/Axis/AxisRenderer.ts +9 -2
- package/src/ChartInternal/Axis/AxisRendererHelper.ts +42 -8
- package/src/ChartInternal/ChartInternal.ts +46 -19
- package/src/ChartInternal/data/IData.ts +13 -0
- package/src/ChartInternal/data/data.ts +26 -5
- package/src/ChartInternal/data/load.ts +2 -2
- package/src/ChartInternal/interactions/interaction.ts +15 -11
- package/src/ChartInternal/internals/class.ts +3 -2
- package/src/ChartInternal/internals/domain.ts +4 -2
- package/src/ChartInternal/internals/format.ts +3 -1
- package/src/ChartInternal/internals/legend.ts +2 -1
- package/src/ChartInternal/internals/redraw.ts +3 -3
- package/src/ChartInternal/internals/size.ts +5 -3
- package/src/ChartInternal/internals/text.ts +24 -28
- package/src/ChartInternal/internals/tooltip.ts +35 -14
- package/src/ChartInternal/internals/transform.ts +2 -2
- package/src/ChartInternal/internals/type.ts +101 -9
- package/src/ChartInternal/shape/boxplot.ts +172 -0
- package/src/ChartInternal/shape/bullet.ts +323 -0
- package/src/ChartInternal/shape/core/boxplot.ts +241 -0
- package/src/ChartInternal/shape/core/bullet.ts +734 -0
- package/src/ChartInternal/shape/core/heatmap.ts +665 -0
- package/src/ChartInternal/shape/core/sankey.ts +782 -0
- package/src/ChartInternal/shape/funnel.ts +73 -2
- package/src/ChartInternal/shape/heatmap.ts +236 -0
- package/src/ChartInternal/shape/radar.ts +30 -1
- package/src/ChartInternal/shape/sankey.ts +242 -0
- package/src/ChartInternal/shape/shape.ts +1 -1
- package/src/ChartInternal/shape/treemap.ts +10 -0
- package/src/Plugin/stanford/index.ts +1 -28
- package/src/canvas/CanvasAxisRenderer.ts +35 -574
- package/src/canvas/CanvasRenderer.ts +68 -640
- package/src/canvas/CanvasTheme.ts +92 -6
- package/src/canvas/HitDetector.ts +30 -28
- package/src/canvas/boxplot.ts +230 -0
- package/src/canvas/bullet.ts +269 -0
- package/src/canvas/flow.ts +237 -0
- package/src/canvas/grid.ts +359 -0
- package/src/canvas/heatmap.ts +147 -0
- package/src/canvas/labels.ts +3 -1
- package/src/canvas/sankey.ts +151 -0
- package/src/canvas/selection.ts +626 -0
- package/src/canvas/subchart.ts +1292 -0
- package/src/canvas/treemap.ts +142 -0
- package/src/config/Options/axis/y2.ts +13 -0
- package/src/config/Options/data/data.ts +47 -1
- package/src/config/Options/shape/boxplot.ts +95 -0
- package/src/config/Options/shape/bullet.ts +170 -0
- package/src/config/Options/shape/heatmap.ts +125 -0
- package/src/config/Options/shape/sankey.ts +108 -0
- package/src/config/Store/State.ts +1 -1
- package/src/config/classes.ts +0 -1
- package/src/config/const.ts +30 -21
- package/src/config/resolver/canvas.ts +126 -1290
- package/src/config/resolver/canvasBoxplot.ts +42 -0
- package/src/config/resolver/canvasBullet.ts +20 -0
- package/src/config/resolver/canvasFlow.ts +18 -0
- package/src/config/resolver/canvasGrid.ts +17 -0
- package/src/config/resolver/canvasHeatmap.ts +23 -0
- package/src/config/resolver/canvasSankey.ts +23 -0
- package/src/config/resolver/canvasSelection.ts +20 -0
- package/src/config/resolver/canvasShape.ts +6 -1
- package/src/config/resolver/canvasSubchart.ts +20 -0
- package/src/config/resolver/canvasType.ts +51 -0
- package/src/config/resolver/customType.ts +69 -0
- package/src/config/resolver/shape/boxplot.ts +31 -0
- package/src/config/resolver/shape/bullet.ts +18 -0
- package/src/config/resolver/shape/funnel.ts +8 -2
- package/src/config/resolver/shape/heatmap.ts +18 -0
- package/src/config/resolver/shape/index.ts +4 -0
- package/src/config/resolver/shape/sankey.ts +18 -0
- package/src/index.canvas.ts +9 -3
- package/src/index.esm.ts +4 -0
- package/src/index.ts +34 -0
- package/src/module/error.ts +32 -18
- package/src/module/util/object.ts +26 -1
- package/src/scss/billboard.scss +106 -0
- package/src/scss/theme/dark.scss +110 -0
- package/src/scss/theme/datalab.scss +106 -0
- package/src/scss/theme/graph.scss +106 -0
- package/src/scss/theme/insight.scss +106 -0
- package/src/scss/theme/modern.scss +106 -0
- package/types/bb.d.ts +4 -0
- package/types/canvas.d.ts +3 -0
- package/types/chart.d.ts +5 -0
- package/types/index.d.ts +4 -0
- package/types/options.d.ts +10 -1
- package/types/options.shape.d.ts +431 -0
- package/types/types.d.ts +4 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
3
|
+
* billboard.js project is licensed under the MIT license
|
|
4
|
+
*
|
|
5
|
+
* billboard.js, JavaScript chart library
|
|
6
|
+
* https://naver.github.io/billboard.js/
|
|
7
|
+
*
|
|
8
|
+
* @version 4.2.0-next.1
|
|
9
|
+
*/
|
|
10
|
+
// src/config/Options/shape/boxplot.ts
|
|
11
|
+
/**
|
|
12
|
+
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
13
|
+
* billboard.js project is licensed under the MIT license
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* boxplot config options
|
|
17
|
+
*/
|
|
18
|
+
var boxplot_default = {
|
|
19
|
+
/**
|
|
20
|
+
* Set boxplot options
|
|
21
|
+
* - **NOTE:**
|
|
22
|
+
* - Each data value is the five-number summary: `[min, q1, median, q3, max]`. The list can have
|
|
23
|
+
* the outliers (array) and the mean (number) after them: `[min, q1, median, q3, max, [outliers], mean]`.
|
|
24
|
+
* - When `boxplot.samples` is set, each data value is the list of the samples instead, and the
|
|
25
|
+
* chart calculates the quartiles (linear interpolation, the default method of Plotly), the whiskers,
|
|
26
|
+
* the outliers and the mean from it.
|
|
27
|
+
* - The color of the box is the color of the data (`data.colors`, `color.pattern`). The stroke and
|
|
28
|
+
* the opacity of the parts are set by CSS (`.bb-boxplot-box`, `.bb-boxplot-median`, `.bb-boxplot-whisker`,
|
|
29
|
+
* `.bb-boxplot-outlier`, `.bb-boxplot-mean`), or by the canvas theme when the chart is rendered on canvas.
|
|
30
|
+
* - The data labels, the subchart and the object form of the value are not supported.
|
|
31
|
+
* @name boxplot
|
|
32
|
+
* @memberof Options
|
|
33
|
+
* @type {object}
|
|
34
|
+
* @property {object} boxplot Boxplot object
|
|
35
|
+
* @property {boolean} [boxplot.samples=false] Set true to give the samples as the data value, instead of the five-number summary.
|
|
36
|
+
* @property {number} [boxplot.width] Change the width.
|
|
37
|
+
* @property {number} [boxplot.width.ratio=0.6] Change the width by ratio.
|
|
38
|
+
* @property {number} [boxplot.width.max] The maximum width value for ratio.
|
|
39
|
+
* @property {number} [boxplot.width.dataname] Change the width for indicated dataset only.
|
|
40
|
+
* @property {number} [boxplot.width.dataname.ratio=0.6] Change the width of the dataset by ratio.
|
|
41
|
+
* @property {number} [boxplot.width.dataname.max] The maximum width value for ratio.
|
|
42
|
+
* @property {number} [boxplot.whisker.width=0.5] Set the width of the cap at the end of the whiskers, by the ratio of the width of the box. 0 hides the caps.
|
|
43
|
+
* @property {number} [boxplot.whisker.iqr=1.5] Set how far the whiskers reach, by the multiple of the interquartile range. A sample out of it is an outlier. Applied when `boxplot.samples` is set.
|
|
44
|
+
* @property {boolean} [boxplot.outlier.show=true] Show the outliers.
|
|
45
|
+
* @property {number} [boxplot.outlier.r=3] Set the radius of the outliers.
|
|
46
|
+
* @property {boolean} [boxplot.mean.show=false] Show the mean.
|
|
47
|
+
* @property {number} [boxplot.mean.r=4] Set the size of the mean marker.
|
|
48
|
+
* @see [Demo](https://naver.github.io/billboard.js/demo/#Chart.BoxplotChart)
|
|
49
|
+
* @example
|
|
50
|
+
* data: {
|
|
51
|
+
* columns: [
|
|
52
|
+
* // min, q1, median, q3, max
|
|
53
|
+
* ["data1", [1, 3, 5, 7, 9], [2, 4, 6, 8, 10]],
|
|
54
|
+
*
|
|
55
|
+
* // with the outliers and the mean: min, q1, median, q3, max, [outliers], mean
|
|
56
|
+
* ["data2", [1, 3, 5, 7, 9, [14, 15], 5.5], [2, 4, 6, 8, 10, [], 6.1]]
|
|
57
|
+
* ],
|
|
58
|
+
* type: "boxplot"
|
|
59
|
+
* },
|
|
60
|
+
* boxplot: {
|
|
61
|
+
* // give the samples, and get the quartiles calculated
|
|
62
|
+
* samples: false,
|
|
63
|
+
*
|
|
64
|
+
* width: 10,
|
|
65
|
+
*
|
|
66
|
+
* // or
|
|
67
|
+
* width: {
|
|
68
|
+
* ratio: 0.2,
|
|
69
|
+
* max: 20
|
|
70
|
+
* },
|
|
71
|
+
*
|
|
72
|
+
* // or specify width per dataset
|
|
73
|
+
* width: {
|
|
74
|
+
* data1: 20,
|
|
75
|
+
* data2: {
|
|
76
|
+
* ratio: 0.2,
|
|
77
|
+
* max: 20
|
|
78
|
+
* }
|
|
79
|
+
* },
|
|
80
|
+
*
|
|
81
|
+
* whisker: {
|
|
82
|
+
* width: 0.5,
|
|
83
|
+
* iqr: 1.5
|
|
84
|
+
* },
|
|
85
|
+
* outlier: {
|
|
86
|
+
* show: true,
|
|
87
|
+
* r: 3
|
|
88
|
+
* },
|
|
89
|
+
* mean: {
|
|
90
|
+
* show: false,
|
|
91
|
+
* r: 4
|
|
92
|
+
* }
|
|
93
|
+
* }
|
|
94
|
+
*/
|
|
95
|
+
boxplot_samples: false,
|
|
96
|
+
boxplot_width: void 0,
|
|
97
|
+
boxplot_width_ratio: .6,
|
|
98
|
+
boxplot_width_max: void 0,
|
|
99
|
+
boxplot_whisker_width: .5,
|
|
100
|
+
boxplot_whisker_iqr: 1.5,
|
|
101
|
+
boxplot_outlier_show: true,
|
|
102
|
+
boxplot_outlier_r: 3,
|
|
103
|
+
boxplot_mean_show: false,
|
|
104
|
+
boxplot_mean_r: 4
|
|
105
|
+
};
|
|
106
|
+
export { boxplot_default as default };
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1
|
|
8
|
+
* @version 4.2.0-next.1
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
// src/config/Options/shape/bubble.ts
|
|
11
11
|
/**
|
|
12
12
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
13
13
|
* billboard.js project is licensed under the MIT license
|
|
@@ -42,5 +42,4 @@ var bubble_default = {
|
|
|
42
42
|
bubble_maxR: 35,
|
|
43
43
|
bubble_zerobased: false
|
|
44
44
|
};
|
|
45
|
-
//#endregion
|
|
46
45
|
export { bubble_default as default };
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
3
|
+
* billboard.js project is licensed under the MIT license
|
|
4
|
+
*
|
|
5
|
+
* billboard.js, JavaScript chart library
|
|
6
|
+
* https://naver.github.io/billboard.js/
|
|
7
|
+
*
|
|
8
|
+
* @version 4.2.0-next.1
|
|
9
|
+
*/
|
|
10
|
+
// src/config/Options/shape/bullet.ts
|
|
11
|
+
/**
|
|
12
|
+
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
13
|
+
* billboard.js project is licensed under the MIT license
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* bullet config options
|
|
17
|
+
*/
|
|
18
|
+
var bullet_default = {
|
|
19
|
+
/**
|
|
20
|
+
* Set bullet options.<br><br>
|
|
21
|
+
* The bullet chart (a.k.a. bullet graph) compares a single quantitative measure
|
|
22
|
+
* against qualitative ranges and an optional comparative target marker.<br>
|
|
23
|
+
* Each data series renders as one bullet, using the last data value of the series as the measure.<br>
|
|
24
|
+
* By default the scale of a bullet includes everything drawn and 0, and the measure is drawn from the 0 position to its value: a negative value extends the scale below 0, and its label is placed at the 0 position. Use `bullet.axis.min` and `bullet.axis.max` to set the scale, and to share it between the bullets.<br>
|
|
25
|
+
* [data.onover](#.data․onover), [data.onout](#.data․onout) and [data.onclick](#.data․onclick) are called with the row of the bullet when its measure or its target markers are hovered or clicked. The range bands are not the data of the row. Use `bullet.rotated` to switch between
|
|
26
|
+
* horizontal (default) and vertical layouts, and `bullet.type` to render the
|
|
27
|
+
* measure as a solid bar or as a dot marker.
|
|
28
|
+
* @name bullet
|
|
29
|
+
* @memberof Options
|
|
30
|
+
* @type {object}
|
|
31
|
+
* @property {object} bullet Bullet object
|
|
32
|
+
* @property {boolean} [bullet.rotated=false] Set bullet orientation.<br>When `false`, bullets are rendered horizontally (measure grows to the right). When `true`, bullets are rendered vertically (measure grows upward).
|
|
33
|
+
* @property {string} [bullet.type="bar"] Set how the measure value is rendered.<br>
|
|
34
|
+
* - **Available type values:**
|
|
35
|
+
* - `bar`: render the measure as a solid bar growing from the baseline.
|
|
36
|
+
* - `dot`: render the measure as a dot marker positioned at the measure value.
|
|
37
|
+
* @property {number} [bullet.marker.size=0] Set the dot radius (in px) used when `bullet.type="dot"`. When `0`, the radius is derived from the bullet thickness.
|
|
38
|
+
* @property {Array|function|object} [bullet.ranges] Set the qualitative range band thresholds.<br>
|
|
39
|
+
* - Can be given as:
|
|
40
|
+
* - `Array`: shared ascending thresholds applied to every bullet (e.g. `[50, 75, 90]`).
|
|
41
|
+
* - `object`: per-data-id thresholds (e.g. `{data1: [50, 75, 90]}`).
|
|
42
|
+
* - `Function`: callback `function(id, value) { return [...] }` returning thresholds per bullet.
|
|
43
|
+
* - When omitted, three bands are generated automatically from the measure/target domain.
|
|
44
|
+
* @property {number|Array|function|object} [bullet.target] Set the comparative target marker value.<br>
|
|
45
|
+
* - Can be given as a `number` or an `Array` of numbers (shared), an `object` keyed by data id (a number or an Array of numbers), or a `Function` `function(id, value) { return number | number[] }`.
|
|
46
|
+
* - Give an `Array` to draw more than one marker for a bullet (e.g. a warning and an error line). All the markers share the same style: `.bb-bullet-target`.
|
|
47
|
+
* @property {object} [bullet.width] Set the thickness of the measure and the length of the target marker.
|
|
48
|
+
* @property {number} [bullet.width.ratio=0.35] Set the measure thickness as a ratio (0~1) of the bullet band.
|
|
49
|
+
* @property {object} [bullet.width.target] Set the target marker length.
|
|
50
|
+
* @property {number} [bullet.width.target.ratio=0.6] Set the target marker length as a ratio (0~1) of the bullet band.
|
|
51
|
+
* @property {Array|function} [bullet.range.colors] Set the qualitative range band colors.<br>
|
|
52
|
+
* - Can be given as an `Array` of color strings (ordered from the smallest to the largest band) or a `Function` `function(index, length) { return color }`. When omitted, the grayscale of the theme is used: the lightness of the first (smallest) and the last band are the CSS variables `--bb-bullet-range-min` and `--bb-bullet-range-max` of `.bb-chart-bullets` (default `55%` and `90%`, the dark themes use darker ones), and the bands in between are interpolated.
|
|
53
|
+
* @property {number} [bullet.padding=4] Set the padding (in px) between each bullet band.
|
|
54
|
+
* @property {boolean} [bullet.axis.show=true] Show or hide the quantitative scale axis drawn under (beside, when rotated) each bullet.
|
|
55
|
+
* @property {number} [bullet.axis.min] Set the min value of the scale of every bullet. When not given, the scale of each bullet is calculated from its values and ranges, so bullets do not share the scale.<br>
|
|
56
|
+
* - Set both `min` and `max` to make the bullets share the same scale.
|
|
57
|
+
* - A value out of the scale is drawn up to the end of the axis, and a target out of the scale is not drawn.
|
|
58
|
+
* - When the scale does not include 0, the measure is drawn from the end of the axis nearest to 0.
|
|
59
|
+
* - When `min` is not less than `max`, both are ignored.
|
|
60
|
+
* @property {number} [bullet.axis.max] Set the max value of the scale of every bullet. See `bullet.axis.min`.
|
|
61
|
+
* @property {number} [bullet.axis.tick.count] Set the approximate number of the ticks of the axis. D3 picks round values, so the actual number can differ. When not given, it follows the length of the axis.
|
|
62
|
+
* @property {Array} [bullet.axis.tick.values] Set the values of the ticks. The values out of the scale are not drawn. It takes precedence over `bullet.axis.tick.count`.
|
|
63
|
+
* @property {function} [bullet.axis.tick.format] Set the format of the tick labels.<br>
|
|
64
|
+
* - **Arguments:**
|
|
65
|
+
* - `value {number}`: Tick value
|
|
66
|
+
* @property {boolean} [bullet.title.show=false] Show or hide the title of each bullet.<br>
|
|
67
|
+
* The title is drawn on the left of the bullet (under the column, when rotated), so the bullets can be told apart without the legend. A long title takes the room of the bullet.
|
|
68
|
+
* @property {object|function} [bullet.title.text] Set the text of the title. By default it is the data name (`data.names`), or the data id.<br>
|
|
69
|
+
* - Can be given as an `object` keyed by data id, or a `Function` `function(id, value) { return string }`.
|
|
70
|
+
* @property {boolean} [bullet.label.show=true] Show or hide the measure value label.<br>
|
|
71
|
+
* The label is the data label of the measure: it is drawn when [data.labels](#.data․labels) is set, and customized by its options (`format`, `colors`, `position`, `centered`, `rotate`, `border`, `image`).
|
|
72
|
+
* @property {function} [bullet.label.format] Set a formatter for the measure value label.<br>
|
|
73
|
+
* Takes precedence over `data.labels.format`.<br>
|
|
74
|
+
* - **Arguments:**
|
|
75
|
+
* - `value {number}`: Measure value
|
|
76
|
+
* - `id {string}`: Data id
|
|
77
|
+
* @see [Demo](https://naver.github.io/billboard.js/demo/#Chart.BulletChart)
|
|
78
|
+
* @see [Demo: Bullet axis and negative value](https://naver.github.io/billboard.js/demo/#BulletChartOptions.BulletAxis)
|
|
79
|
+
* @see [Demo: Bullet target and color by value](https://naver.github.io/billboard.js/demo/#BulletChartOptions.BulletTarget)
|
|
80
|
+
* @see [Demo: Bullet title](https://naver.github.io/billboard.js/demo/#BulletChartOptions.BulletTitle)
|
|
81
|
+
* @example
|
|
82
|
+
* bullet: {
|
|
83
|
+
* // render vertically
|
|
84
|
+
* rotated: true,
|
|
85
|
+
*
|
|
86
|
+
* // render the measure as a dot marker
|
|
87
|
+
* type: "dot",
|
|
88
|
+
* marker: {
|
|
89
|
+
* size: 6
|
|
90
|
+
* },
|
|
91
|
+
*
|
|
92
|
+
* // qualitative range bands (ascending)
|
|
93
|
+
* ranges: [50, 75, 90],
|
|
94
|
+
*
|
|
95
|
+
* // or per data id
|
|
96
|
+
* // ranges: {data1: [50, 75, 90]},
|
|
97
|
+
*
|
|
98
|
+
* // or as a callback
|
|
99
|
+
* // ranges: function(id, value) { return [50, 75, 90]; },
|
|
100
|
+
*
|
|
101
|
+
* // comparative target marker
|
|
102
|
+
* target: 85,
|
|
103
|
+
*
|
|
104
|
+
* // or more than one: [70, 85]
|
|
105
|
+
* // target: [70, 85],
|
|
106
|
+
*
|
|
107
|
+
* // measure thickness & target marker length, as a ratio of the bullet band
|
|
108
|
+
* width: {
|
|
109
|
+
* ratio: 0.35,
|
|
110
|
+
* target: {
|
|
111
|
+
* ratio: 0.6
|
|
112
|
+
* }
|
|
113
|
+
* },
|
|
114
|
+
*
|
|
115
|
+
* // range band colors
|
|
116
|
+
* range: {
|
|
117
|
+
* colors: ["#b3b3b3", "#cccccc", "#e6e6e6"]
|
|
118
|
+
* },
|
|
119
|
+
*
|
|
120
|
+
* padding: 4,
|
|
121
|
+
*
|
|
122
|
+
* // quantitative scale axis
|
|
123
|
+
* axis: {
|
|
124
|
+
* show: true,
|
|
125
|
+
*
|
|
126
|
+
* // the scale of every bullet: the bullets share it
|
|
127
|
+
* min: 0,
|
|
128
|
+
* max: 100,
|
|
129
|
+
*
|
|
130
|
+
* tick: {
|
|
131
|
+
* count: 5,
|
|
132
|
+
* // values: [0, 50, 100],
|
|
133
|
+
* format: function(value) {
|
|
134
|
+
* return value + "%";
|
|
135
|
+
* }
|
|
136
|
+
* }
|
|
137
|
+
* },
|
|
138
|
+
*
|
|
139
|
+
* // title of each bullet
|
|
140
|
+
* title: {
|
|
141
|
+
* show: true,
|
|
142
|
+
* text: function(id, value) {
|
|
143
|
+
* return id.toUpperCase();
|
|
144
|
+
* }
|
|
145
|
+
* },
|
|
146
|
+
*
|
|
147
|
+
* // the value label is a data label: set data.labels to show it
|
|
148
|
+
* // data: {labels: true},
|
|
149
|
+
* label: {
|
|
150
|
+
* show: true,
|
|
151
|
+
* format: function(value, id) {
|
|
152
|
+
* return value;
|
|
153
|
+
* }
|
|
154
|
+
* }
|
|
155
|
+
* }
|
|
156
|
+
*/
|
|
157
|
+
bullet_rotated: false,
|
|
158
|
+
bullet_type: "bar",
|
|
159
|
+
bullet_marker_size: 0,
|
|
160
|
+
bullet_ranges: null,
|
|
161
|
+
bullet_target: null,
|
|
162
|
+
bullet_width_ratio: .35,
|
|
163
|
+
bullet_width_target_ratio: .6,
|
|
164
|
+
bullet_range_colors: null,
|
|
165
|
+
bullet_padding: 4,
|
|
166
|
+
bullet_axis_show: true,
|
|
167
|
+
bullet_axis_min: void 0,
|
|
168
|
+
bullet_axis_max: void 0,
|
|
169
|
+
bullet_axis_tick_count: void 0,
|
|
170
|
+
bullet_axis_tick_values: void 0,
|
|
171
|
+
bullet_axis_tick_format: void 0,
|
|
172
|
+
bullet_title_show: false,
|
|
173
|
+
bullet_title_text: void 0,
|
|
174
|
+
bullet_label_show: true,
|
|
175
|
+
bullet_label_format: void 0
|
|
176
|
+
};
|
|
177
|
+
export { bullet_default as default };
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1
|
|
8
|
+
* @version 4.2.0-next.1
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
// src/config/Options/shape/candlestick.ts
|
|
11
11
|
/**
|
|
12
12
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
13
13
|
* billboard.js project is licensed under the MIT license
|
|
@@ -68,5 +68,4 @@ var candlestick_default = {
|
|
|
68
68
|
candlestick_width_max: void 0,
|
|
69
69
|
candlestick_color_down: "red"
|
|
70
70
|
};
|
|
71
|
-
//#endregion
|
|
72
71
|
export { candlestick_default as default };
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1
|
|
8
|
+
* @version 4.2.0-next.1
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
// src/config/Options/shape/donut.ts
|
|
11
11
|
/**
|
|
12
12
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
13
13
|
* billboard.js project is licensed under the MIT license
|
|
@@ -188,5 +188,4 @@ var donut_default = {
|
|
|
188
188
|
donut_padAngle: 0,
|
|
189
189
|
donut_startingAngle: 0
|
|
190
190
|
};
|
|
191
|
-
//#endregion
|
|
192
191
|
export { donut_default as default };
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1
|
|
8
|
+
* @version 4.2.0-next.1
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
// src/config/Options/shape/funnel.ts
|
|
11
11
|
/**
|
|
12
12
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
13
13
|
* billboard.js project is licensed under the MIT license
|
|
@@ -56,5 +56,4 @@ var funnel_default = {
|
|
|
56
56
|
funnel_rotated: false,
|
|
57
57
|
funnel_spline: false
|
|
58
58
|
};
|
|
59
|
-
//#endregion
|
|
60
59
|
export { funnel_default as default };
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1
|
|
8
|
+
* @version 4.2.0-next.1
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
// src/config/Options/shape/gauge.ts
|
|
11
11
|
/**
|
|
12
12
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
13
13
|
* billboard.js project is licensed under the MIT license
|
|
@@ -244,5 +244,4 @@ var gauge_default = {
|
|
|
244
244
|
gauge_expand_rate: .98,
|
|
245
245
|
gauge_expand_duration: 50
|
|
246
246
|
};
|
|
247
|
-
//#endregion
|
|
248
247
|
export { gauge_default as default };
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
3
|
+
* billboard.js project is licensed under the MIT license
|
|
4
|
+
*
|
|
5
|
+
* billboard.js, JavaScript chart library
|
|
6
|
+
* https://naver.github.io/billboard.js/
|
|
7
|
+
*
|
|
8
|
+
* @version 4.2.0-next.1
|
|
9
|
+
*/
|
|
10
|
+
// src/config/Options/shape/heatmap.ts
|
|
11
|
+
/**
|
|
12
|
+
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
13
|
+
* billboard.js project is licensed under the MIT license
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* heatmap config options
|
|
17
|
+
*/
|
|
18
|
+
var heatmap_default = {
|
|
19
|
+
/**
|
|
20
|
+
* Set heatmap options.<br>
|
|
21
|
+
* The data is a matrix: `data.x` names the columns, a data series is a row, and its values are the cells.
|
|
22
|
+
* The cells are colored by their value: the colors of `heatmap.color.range` are spread from the min to the max value.
|
|
23
|
+
* - **NOTE:** `data.colors` doesn't color the cells (the legend shows the color of the rows).
|
|
24
|
+
* - **NOTE:** The first series is the top row. A `null` value is a cell of `heatmap.color.none`.
|
|
25
|
+
* - **NOTE:** With `heatmap.cell.ratio`, the chart height is set automatically from its width, so the cells keep the ratio and no space is left under them.
|
|
26
|
+
* It follows the width on resize. Set `size.height` to fix the height: the cells are then the biggest of the ratio that fit in it.
|
|
27
|
+
* - **NOTE:** `.hide(id)` removes the row: the other cells keep their colors. The names that don't fit are skipped.
|
|
28
|
+
*
|
|
29
|
+
* The interactions:
|
|
30
|
+
* - [data.onover](#.data․onover), [data.onout](#.data․onout) and [data.onclick](#.data․onclick) are called with the data of a cell `{id, x, index, value, name}`,
|
|
31
|
+
* where `id` is the row, `x` the name of the column, `index` the index of the column and `name` is "row / column".
|
|
32
|
+
* - `.focus(id)` and the legend hover dim the other rows.
|
|
33
|
+
* @name heatmap
|
|
34
|
+
* @memberof Options
|
|
35
|
+
* @type {object}
|
|
36
|
+
* @property {object} heatmap Heatmap object
|
|
37
|
+
* @property {Array} [heatmap.color.range=["#f6efa6","#d88273","#bf444c"]] The colors from the min to the max value (two or more).
|
|
38
|
+
* @property {Array} [heatmap.color.ranges] The colors by the ranges of the values, instead of a color range spread on the values: `[{from, to, color, name}]`.
|
|
39
|
+
* The first range that has the value (`from` <= value <= `to`) is used. Without `from` or `to`, the range has no lower or upper limit.
|
|
40
|
+
* A value in no range is of `heatmap.color.none`. The color bar has a band for each range, with its `name` (or `from - to`).
|
|
41
|
+
* @property {number} [heatmap.color.min] The value of the first color. When it isn't set, the min value of the data is used.
|
|
42
|
+
* @property {number} [heatmap.color.max] The value of the last color. When it isn't set, the max value of the data is used.
|
|
43
|
+
* @property {string} [heatmap.color.none="#ebedf0"] The color of a cell without a value. Set `null` to draw nothing there.
|
|
44
|
+
* @property {number} [heatmap.cell.ratio] The ratio of the width to the height of the cells: `1` makes them squares, `2` twice as wide as high.
|
|
45
|
+
* The chart is as high as the cells need, from its width, so no space is left (and follows the width on resize).
|
|
46
|
+
* When `size.height` is set, the cells are the biggest of the ratio that fit in it, and the space left is empty. When the ratio isn't set, the cells fill the chart.
|
|
47
|
+
* @property {number} [heatmap.cell.padding=0] The gap between the cells in pixels.
|
|
48
|
+
* @property {number} [heatmap.cell.radius=0] The radius of the corners of the cells in pixels.
|
|
49
|
+
* @property {number} [heatmap.cell.border.width=0] The width of the border of the cells in pixels.
|
|
50
|
+
* @property {string} [heatmap.cell.border.color="#fff"] The color of the border of the cells.
|
|
51
|
+
* @property {boolean} [heatmap.label.show=false] Show the values in the cells.
|
|
52
|
+
* @property {function} [heatmap.label.format] Set the formatter of the values in the cells.
|
|
53
|
+
* - **NOTE:** The arguments are the value, the name of the column and the id of the row.
|
|
54
|
+
* @property {string} [heatmap.label.color] The color of the values. When it isn't set, black or white is used to read on the cell.
|
|
55
|
+
* @property {boolean} [heatmap.axis.x.show=true] Show the names of the columns.
|
|
56
|
+
* @property {string} [heatmap.axis.x.position="bottom"] The position of the names of the columns: "bottom" or "top".
|
|
57
|
+
* @property {boolean} [heatmap.axis.y.show=true] Show the names of the rows.
|
|
58
|
+
* @property {boolean} [heatmap.colorbar.show=true] Show the color bar, with the min and the max value, at the right of the cells.
|
|
59
|
+
* @property {string} [heatmap.colorbar.position="right"] The position of the color bar: "right" (vertical), "bottom" or "top" (horizontal, the min value at the left).
|
|
60
|
+
* @property {function} [heatmap.colorbar.format] Set the formatter of the values of the color bar.
|
|
61
|
+
* @see [Demo](https://naver.github.io/billboard.js/demo/#Chart.HeatmapChart)
|
|
62
|
+
* @example
|
|
63
|
+
* data: {
|
|
64
|
+
* x: "x",
|
|
65
|
+
* columns: [
|
|
66
|
+
* // the columns
|
|
67
|
+
* ["x", "Mon", "Tue", "Wed"],
|
|
68
|
+
* // the rows
|
|
69
|
+
* ["Morning", 3, 8, 5],
|
|
70
|
+
* ["Evening", 9, null, 1]
|
|
71
|
+
* ],
|
|
72
|
+
* type: "heatmap" // for ESM, import {heatmap} from "billboard.js" and do type: heatmap()
|
|
73
|
+
* },
|
|
74
|
+
* heatmap: {
|
|
75
|
+
* color: {
|
|
76
|
+
* range: ["#ffffcc", "#41b6c4", "#0c2c84"],
|
|
77
|
+
* min: 0,
|
|
78
|
+
* max: 10,
|
|
79
|
+
* none: "#eee",
|
|
80
|
+
* // or by the ranges of the values
|
|
81
|
+
* ranges: [
|
|
82
|
+
* {to: 0, color: "#ebedf0", name: "none"},
|
|
83
|
+
* {from: 1, to: 9, color: "#9be9a8"},
|
|
84
|
+
* {from: 10, color: "#216e39", name: "10+"}
|
|
85
|
+
* ]
|
|
86
|
+
* },
|
|
87
|
+
* cell: {
|
|
88
|
+
* ratio: 1,
|
|
89
|
+
* padding: 2,
|
|
90
|
+
* radius: 3,
|
|
91
|
+
* border: {
|
|
92
|
+
* width: 1,
|
|
93
|
+
* color: "#fff"
|
|
94
|
+
* }
|
|
95
|
+
* },
|
|
96
|
+
* label: {
|
|
97
|
+
* show: true,
|
|
98
|
+
* format: function(value, x, id) {
|
|
99
|
+
* return value + "%";
|
|
100
|
+
* }
|
|
101
|
+
* },
|
|
102
|
+
* axis: {
|
|
103
|
+
* x: {
|
|
104
|
+
* position: "top"
|
|
105
|
+
* }
|
|
106
|
+
* },
|
|
107
|
+
* colorbar: {
|
|
108
|
+
* show: true,
|
|
109
|
+
* position: "bottom"
|
|
110
|
+
* }
|
|
111
|
+
* }
|
|
112
|
+
*/
|
|
113
|
+
heatmap_color_range: [
|
|
114
|
+
"#f6efa6",
|
|
115
|
+
"#d88273",
|
|
116
|
+
"#bf444c"
|
|
117
|
+
],
|
|
118
|
+
heatmap_color_ranges: void 0,
|
|
119
|
+
heatmap_color_min: void 0,
|
|
120
|
+
heatmap_color_max: void 0,
|
|
121
|
+
heatmap_color_none: "#ebedf0",
|
|
122
|
+
heatmap_cell_ratio: void 0,
|
|
123
|
+
heatmap_cell_padding: 0,
|
|
124
|
+
heatmap_cell_radius: 0,
|
|
125
|
+
heatmap_cell_border_width: 0,
|
|
126
|
+
heatmap_cell_border_color: "#fff",
|
|
127
|
+
heatmap_label_show: false,
|
|
128
|
+
heatmap_label_format: void 0,
|
|
129
|
+
heatmap_label_color: void 0,
|
|
130
|
+
heatmap_axis_x_show: true,
|
|
131
|
+
heatmap_axis_x_position: "bottom",
|
|
132
|
+
heatmap_axis_y_show: true,
|
|
133
|
+
heatmap_colorbar_show: true,
|
|
134
|
+
heatmap_colorbar_position: "right",
|
|
135
|
+
heatmap_colorbar_format: void 0
|
|
136
|
+
};
|
|
137
|
+
export { heatmap_default as default };
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1
|
|
8
|
+
* @version 4.2.0-next.1
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
// src/config/Options/shape/line.ts
|
|
11
11
|
/**
|
|
12
12
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
13
13
|
* billboard.js project is licensed under the MIT license
|
|
@@ -65,5 +65,4 @@ var line_default = {
|
|
|
65
65
|
line_classes: void 0,
|
|
66
66
|
line_point: true
|
|
67
67
|
};
|
|
68
|
-
//#endregion
|
|
69
68
|
export { line_default as default };
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1
|
|
8
|
+
* @version 4.2.0-next.1
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
// src/config/Options/shape/pie.ts
|
|
11
11
|
/**
|
|
12
12
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
13
13
|
* billboard.js project is licensed under the MIT license
|
|
@@ -192,5 +192,4 @@ var pie_default = {
|
|
|
192
192
|
pie_padding: 0,
|
|
193
193
|
pie_startingAngle: 0
|
|
194
194
|
};
|
|
195
|
-
//#endregion
|
|
196
195
|
export { pie_default as default };
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1
|
|
8
|
+
* @version 4.2.0-next.1
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
// src/config/Options/shape/polar.ts
|
|
11
11
|
/**
|
|
12
12
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
13
13
|
* billboard.js project is licensed under the MIT license
|
|
@@ -174,5 +174,4 @@ var polar_default = {
|
|
|
174
174
|
polar_padding: 0,
|
|
175
175
|
polar_startingAngle: 0
|
|
176
176
|
};
|
|
177
|
-
//#endregion
|
|
178
177
|
export { polar_default as default };
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1
|
|
8
|
+
* @version 4.2.0-next.1
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
// src/config/Options/shape/radar.ts
|
|
11
11
|
/**
|
|
12
12
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
13
13
|
* billboard.js project is licensed under the MIT license
|
|
@@ -83,5 +83,4 @@ var radar_default = {
|
|
|
83
83
|
radar_size_ratio: .87,
|
|
84
84
|
radar_direction_clockwise: false
|
|
85
85
|
};
|
|
86
|
-
//#endregion
|
|
87
86
|
export { radar_default as default };
|