billboard.js 4.1.4 → 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 +11129 -7032
- package/dist/billboard.min.css +2 -2
- package/dist/billboard.min.js +20 -20
- package/dist/billboard.pkgd.js +22703 -14154
- 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 +3 -4
- 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 +15 -9
- 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 +26 -17
- package/dist-esm/ChartInternal/Axis/AxisRendererHelper.js +40 -12
- 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 +25 -19
- 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 +13 -13
- 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 +42 -23
- 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 +9 -9
- 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 +15 -11
- package/dist-esm/ChartInternal/shape/treemap.js +8 -5
- package/dist-esm/canvas/CanvasAxisRenderer.js +28 -328
- 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 +6 -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 +4 -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 +113 -900
- 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/chart.ts +2 -1
- package/src/Chart/api/flow.ts +20 -7
- 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 +29 -20
- package/src/ChartInternal/Axis/AxisRendererHelper.ts +45 -9
- 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/flow.ts +50 -19
- 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 +18 -12
- package/src/ChartInternal/internals/size.ts +5 -3
- package/src/ChartInternal/internals/text.ts +24 -28
- package/src/ChartInternal/internals/tooltip.ts +59 -20
- 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/point.ts +6 -3
- package/src/ChartInternal/shape/radar.ts +30 -1
- package/src/ChartInternal/shape/sankey.ts +242 -0
- package/src/ChartInternal/shape/shape.ts +16 -4
- package/src/ChartInternal/shape/treemap.ts +10 -0
- package/src/Plugin/stanford/index.ts +1 -28
- package/src/canvas/CanvasAxisRenderer.ts +54 -596
- 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/interaction/subchart.ts +4 -0
- 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 +2 -1
- package/src/config/classes.ts +0 -1
- package/src/config/const.ts +30 -21
- package/src/config/resolver/canvas.ts +147 -1293
- 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 +13 -1
- package/types/options.shape.d.ts +431 -0
- package/types/types.d.ts +4 -0
package/dist/theme/modern.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
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
|
@charset "UTF-8";
|
|
11
11
|
/*-- Insight Theme --*/
|
|
@@ -52,6 +52,64 @@
|
|
|
52
52
|
fill: #fff;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/*-- Bullet --*/
|
|
56
|
+
.bb-chart-bullets {
|
|
57
|
+
--bb-bullet-range-min: 55%;
|
|
58
|
+
--bb-bullet-range-max: 90%;
|
|
59
|
+
}
|
|
60
|
+
.bb-chart-bullets .bb-bullet-range {
|
|
61
|
+
stroke: none;
|
|
62
|
+
fill: hsl(0, 0%, calc(var(--bb-bullet-range-min) + var(--bb-t, 0) * (var(--bb-bullet-range-max) - var(--bb-bullet-range-min))));
|
|
63
|
+
}
|
|
64
|
+
.bb-chart-bullets .bb-bullet-target {
|
|
65
|
+
stroke: #000;
|
|
66
|
+
stroke-width: 2px;
|
|
67
|
+
}
|
|
68
|
+
.bb-chart-bullets .bb-bullet-title {
|
|
69
|
+
font-size: 11px;
|
|
70
|
+
fill: #000;
|
|
71
|
+
}
|
|
72
|
+
.bb-chart-bullets .bb-bullet-axis {
|
|
73
|
+
shape-rendering: crispEdges;
|
|
74
|
+
font-size: 10px;
|
|
75
|
+
}
|
|
76
|
+
.bb-chart-bullets .bb-bullet-axis text {
|
|
77
|
+
fill: #000;
|
|
78
|
+
}
|
|
79
|
+
.bb-chart-bullets .bb-bullet-axis path, .bb-chart-bullets .bb-bullet-axis line {
|
|
80
|
+
stroke: #000;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/*-- Heatmap --*/
|
|
84
|
+
.bb-chart-heatmap .bb-heatmap-axis {
|
|
85
|
+
font-size: 10px;
|
|
86
|
+
fill: #000;
|
|
87
|
+
}
|
|
88
|
+
.bb-chart-heatmap .bb-heatmap-label {
|
|
89
|
+
font-size: 10px;
|
|
90
|
+
pointer-events: none;
|
|
91
|
+
}
|
|
92
|
+
.bb-chart-heatmap .bb-heatmap-row.bb-defocused {
|
|
93
|
+
opacity: 0.3;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/*-- Sankey --*/
|
|
97
|
+
.bb-chart-sankey .bb-sankey-link {
|
|
98
|
+
fill: none;
|
|
99
|
+
stroke-opacity: var(--bb-sankey-link-opacity, 0.4);
|
|
100
|
+
}
|
|
101
|
+
.bb-chart-sankey .bb-sankey-link:hover {
|
|
102
|
+
stroke-opacity: calc(var(--bb-sankey-link-opacity, 0.4) + 0.3);
|
|
103
|
+
}
|
|
104
|
+
.bb-chart-sankey .bb-sankey-link.bb-defocused {
|
|
105
|
+
opacity: 0.3 !important;
|
|
106
|
+
}
|
|
107
|
+
.bb-chart-sankey .bb-sankey-label {
|
|
108
|
+
font-size: 11px;
|
|
109
|
+
fill: #000;
|
|
110
|
+
pointer-events: none;
|
|
111
|
+
}
|
|
112
|
+
|
|
55
113
|
/*-- Axis --*/
|
|
56
114
|
.bb-axis {
|
|
57
115
|
shape-rendering: crispEdges;
|
|
@@ -133,6 +191,34 @@ rect.bb-circle._expanded_, use.bb-circle._expanded_ {
|
|
|
133
191
|
fill-opacity: 0.75;
|
|
134
192
|
}
|
|
135
193
|
|
|
194
|
+
/*-- Boxplot --*/
|
|
195
|
+
.bb-boxplot-box {
|
|
196
|
+
stroke-width: 1px;
|
|
197
|
+
fill-opacity: 0.7;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.bb-boxplot-whisker {
|
|
201
|
+
stroke-width: 1px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.bb-boxplot-median {
|
|
205
|
+
stroke-width: 2px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.bb-boxplot-outlier {
|
|
209
|
+
fill: none;
|
|
210
|
+
stroke-width: 1px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.bb-chart-boxplot .bb-boxplot-mean {
|
|
214
|
+
fill: #fff;
|
|
215
|
+
stroke-width: 1px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.bb-boxplot._expanded_ .bb-boxplot-box {
|
|
219
|
+
fill-opacity: 0.9;
|
|
220
|
+
}
|
|
221
|
+
|
|
136
222
|
/*-- Focus --*/
|
|
137
223
|
.bb-target.bb-focused, .bb-circles.bb-focused {
|
|
138
224
|
opacity: 1;
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1
|
|
9
|
-
*/.bb-color-pattern{background-image:url(#7ea9fa;#ffcd1e;#d33043;#41c464;#c86b74;#006bc2;#2a7e41;#f27c00;#c159ff;#bed017;)}.bb svg{font-size:12px;font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,\b9d1\c740 \ace0\b515,helvetica,Apple SD Gothic Neo,sans-serif;line-height:1}.bb path,.bb line{fill:none;stroke:#cecece}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:10.5px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:#27c9030d}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#d2bad8}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:2px;stroke:red}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#71808d}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush{fill-opacity:.1;fill:#838181}.bb-brush .extent{fill-opacity:.1}.bb-brush .selection{fill:#838181;fill-opacity:.2}.bb-brush path{stroke:#838181}div.bb-canvas-legend{position:absolute;z-index:1;box-sizing:border-box;display:block;overflow:visible;pointer-events:auto;font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,\b9d1\c740 \ace0\b515,helvetica,Apple SD Gothic Neo,sans-serif;font-size:10.5px;color:#555}div.bb-canvas-legend.bb-canvas-legend-bottom{right:0;bottom:6px;left:0}div.bb-canvas-legend.bb-canvas-legend-right{overflow:visible}button.bb-legend-item{position:absolute;display:block;box-sizing:border-box;margin:0;padding:0;border:0;background:transparent;color:inherit;font-family:inherit;font-size:inherit;line-height:normal;text-align:left}button.bb-legend-item.bb-legend-item-interactive{cursor:pointer}.bb-canvas-legend .bb-legend-item-title{position:absolute;white-space:nowrap;pointer-events:none}.bb-canvas-legend .bb-legend-item-tile{position:absolute;display:block;box-sizing:border-box;width:10px;height:10px}.bb-canvas-legend .bb-legend-item-tile.bb-legend-item-tile-circle{border-radius:50%}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;transform:translate(7px,1px);stroke-dasharray:1 20}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#000;stroke-width:.5px}.bb-tooltip-container{z-index:10;font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,\b9d1\c740 \ace0\b515,helvetica,Apple SD Gothic Neo,sans-serif;user-select:none;transform:translateZ(0)}.bb-tooltip{border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #999;color:#fff;border-radius:5px;background-color:#404244;text-align:left;font-size:11px;white-space:nowrap;opacity:.9}.bb-tooltip th{font-size:11px;padding:3px 6px 0;text-align:left}.bb-tooltip td{padding:3px}.bb-tooltip td:first-child{padding-left:7px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:5px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:12px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:#ccc}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:1.8em;fill:#000;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#cecece;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#000}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:11px}.bb-chart-arc .bb-arc-label-line{fill:none;stroke-width:1px;pointer-events:none}.bb-chart-arc .bb-arc-label-line{stroke:#7f7f7f}.bb-chart-arc>text.bb-arc-label-line-text{fill:#000}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#cecece;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#cecece;stroke-width:.5px}.bb-chart-radars .bb-axis text{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:1px solid #999;background-color:#404244;color:#fff;opacity:.9;padding:5px;border-radius:5px;cursor:pointer}
|
|
8
|
+
* @version 4.2.0-next.1
|
|
9
|
+
*/.bb-color-pattern{background-image:url(#7ea9fa;#ffcd1e;#d33043;#41c464;#c86b74;#006bc2;#2a7e41;#f27c00;#c159ff;#bed017;)}.bb svg{font-size:12px;font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,\b9d1\c740 \ace0\b515,helvetica,Apple SD Gothic Neo,sans-serif;line-height:1}.bb path,.bb line{fill:none;stroke:#cecece}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:10.5px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-chart-bullets{--bb-bullet-range-min: 55%;--bb-bullet-range-max: 90%}.bb-chart-bullets .bb-bullet-range{stroke:none;fill:hsl(0,0%,calc(var(--bb-bullet-range-min) + var(--bb-t, 0) * (var(--bb-bullet-range-max) - var(--bb-bullet-range-min))))}.bb-chart-bullets .bb-bullet-target{stroke:#000;stroke-width:2px}.bb-chart-bullets .bb-bullet-title{font-size:11px;fill:#000}.bb-chart-bullets .bb-bullet-axis{shape-rendering:crispEdges;font-size:10px}.bb-chart-bullets .bb-bullet-axis text{fill:#000}.bb-chart-bullets .bb-bullet-axis path,.bb-chart-bullets .bb-bullet-axis line{stroke:#000}.bb-chart-heatmap .bb-heatmap-axis{font-size:10px;fill:#000}.bb-chart-heatmap .bb-heatmap-label{font-size:10px;pointer-events:none}.bb-chart-heatmap .bb-heatmap-row.bb-defocused{opacity:.3}.bb-chart-sankey .bb-sankey-link{fill:none;stroke-opacity:var(--bb-sankey-link-opacity, .4)}.bb-chart-sankey .bb-sankey-link:hover{stroke-opacity:calc(var(--bb-sankey-link-opacity, .4) + .3)}.bb-chart-sankey .bb-sankey-link.bb-defocused{opacity:.3!important}.bb-chart-sankey .bb-sankey-label{font-size:11px;fill:#000;pointer-events:none}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:#27c9030d}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#d2bad8}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:2px;stroke:red}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-boxplot-box{stroke-width:1px;fill-opacity:.7}.bb-boxplot-whisker{stroke-width:1px}.bb-boxplot-median{stroke-width:2px}.bb-boxplot-outlier{fill:none;stroke-width:1px}.bb-chart-boxplot .bb-boxplot-mean{fill:#fff;stroke-width:1px}.bb-boxplot._expanded_ .bb-boxplot-box{fill-opacity:.9}.bb-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#71808d}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush{fill-opacity:.1;fill:#838181}.bb-brush .extent{fill-opacity:.1}.bb-brush .selection{fill:#838181;fill-opacity:.2}.bb-brush path{stroke:#838181}div.bb-canvas-legend{position:absolute;z-index:1;box-sizing:border-box;display:block;overflow:visible;pointer-events:auto;font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,\b9d1\c740 \ace0\b515,helvetica,Apple SD Gothic Neo,sans-serif;font-size:10.5px;color:#555}div.bb-canvas-legend.bb-canvas-legend-bottom{right:0;bottom:6px;left:0}div.bb-canvas-legend.bb-canvas-legend-right{overflow:visible}button.bb-legend-item{position:absolute;display:block;box-sizing:border-box;margin:0;padding:0;border:0;background:transparent;color:inherit;font-family:inherit;font-size:inherit;line-height:normal;text-align:left}button.bb-legend-item.bb-legend-item-interactive{cursor:pointer}.bb-canvas-legend .bb-legend-item-title{position:absolute;white-space:nowrap;pointer-events:none}.bb-canvas-legend .bb-legend-item-tile{position:absolute;display:block;box-sizing:border-box;width:10px;height:10px}.bb-canvas-legend .bb-legend-item-tile.bb-legend-item-tile-circle{border-radius:50%}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;transform:translate(7px,1px);stroke-dasharray:1 20}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#000;stroke-width:.5px}.bb-tooltip-container{z-index:10;font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,\b9d1\c740 \ace0\b515,helvetica,Apple SD Gothic Neo,sans-serif;user-select:none;transform:translateZ(0)}.bb-tooltip{border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #999;color:#fff;border-radius:5px;background-color:#404244;text-align:left;font-size:11px;white-space:nowrap;opacity:.9}.bb-tooltip th{font-size:11px;padding:3px 6px 0;text-align:left}.bb-tooltip td{padding:3px}.bb-tooltip td:first-child{padding-left:7px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:5px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:12px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:#ccc}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:1.8em;fill:#000;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#cecece;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#000}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:11px}.bb-chart-arc .bb-arc-label-line{fill:none;stroke-width:1px;pointer-events:none}.bb-chart-arc .bb-arc-label-line{stroke:#7f7f7f}.bb-chart-arc>text.bb-arc-label-line-text{fill:#000}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#cecece;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#cecece;stroke-width:.5px}.bb-chart-radars .bb-axis text{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:1px solid #999;background-color:#404244;color:#fff;opacity:.9;padding:5px;border-radius:5px;cursor:pointer}
|
package/dist-esm/Chart/Chart.js
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
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
|
-
import { isFunction, notEmpty } from "../module/util/type-checks.js";
|
|
11
|
-
import { extend } from "../module/util/object.js";
|
|
12
10
|
import ChartInternal from "../ChartInternal/ChartInternal.js";
|
|
13
11
|
import { loadConfig } from "../config/config.js";
|
|
12
|
+
import { extend } from "../module/util/object.js";
|
|
13
|
+
import { isFunction, notEmpty } from "../module/util/type-checks.js";
|
|
14
14
|
import chart_default from "./api/chart.js";
|
|
15
15
|
import color_default from "./api/color.js";
|
|
16
16
|
import data_default from "./api/data.js";
|
|
@@ -19,7 +19,7 @@ import legend_default from "./api/legend.js";
|
|
|
19
19
|
import load_default from "./api/load.js";
|
|
20
20
|
import show_default from "./api/show.js";
|
|
21
21
|
import tooltip_default from "./api/tooltip.js";
|
|
22
|
-
|
|
22
|
+
// src/Chart/Chart.ts
|
|
23
23
|
/**
|
|
24
24
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
25
25
|
* billboard.js project is licensed under the MIT license
|
|
@@ -60,6 +60,7 @@ import tooltip_default from "./api/tooltip.js";
|
|
|
60
60
|
* @property {object} $.bar Bar element object
|
|
61
61
|
* @property {d3.selection} $.bar.bars Bar elements
|
|
62
62
|
* @property {d3.selection} $.candlestick Candlestick elements
|
|
63
|
+
* @property {d3.selection} $.boxplot Boxplot elements
|
|
63
64
|
* @property {object} $.line Line element object
|
|
64
65
|
* @property {d3.selection} $.line.lines Line elements
|
|
65
66
|
* @property {d3.selection} $.line.areas Areas elements
|
|
@@ -145,5 +146,4 @@ extend(Chart.prototype, [
|
|
|
145
146
|
show_default,
|
|
146
147
|
tooltip_default
|
|
147
148
|
]);
|
|
148
|
-
//#endregion
|
|
149
149
|
export { Chart as default };
|
|
@@ -5,10 +5,10 @@
|
|
|
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
|
import { isDefined, isNumber, isObjectType, isValue } from "../../module/util/type-checks.js";
|
|
11
|
-
|
|
11
|
+
// src/Chart/api/axis.ts
|
|
12
12
|
/**
|
|
13
13
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
14
14
|
* billboard.js project is licensed under the MIT license
|
|
@@ -228,5 +228,4 @@ var axis_default = { axis: {
|
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
} };
|
|
231
|
-
//#endregion
|
|
232
231
|
export { axis_default as default };
|
|
@@ -5,10 +5,10 @@
|
|
|
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
|
import { isEmpty } from "../../module/util/type-checks.js";
|
|
11
|
-
|
|
11
|
+
// src/Chart/api/category.ts
|
|
12
12
|
/**
|
|
13
13
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
14
14
|
* billboard.js project is licensed under the MIT license
|
|
@@ -60,5 +60,4 @@ var category_default = {
|
|
|
60
60
|
return config.axis_x_categories;
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
-
//#endregion
|
|
64
63
|
export { category_default as default };
|
|
@@ -5,12 +5,12 @@
|
|
|
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
|
import { window as win } from "../../module/browser.js";
|
|
11
11
|
import { isDefined, isEmpty, notEmpty } from "../../module/util/type-checks.js";
|
|
12
12
|
import { cleanupWorkers } from "../../module/worker.js";
|
|
13
|
-
|
|
13
|
+
// src/Chart/api/chart.ts
|
|
14
14
|
/**
|
|
15
15
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
16
16
|
* billboard.js project is licensed under the MIT license
|
|
@@ -63,7 +63,7 @@ var chart_default = {
|
|
|
63
63
|
if (state.resizing) $$.brush?.updateResize();
|
|
64
64
|
else $$.axis?.setOrient();
|
|
65
65
|
zoomResetBtn?.style("display", "none");
|
|
66
|
-
if ($$.scale.zoom) state.current.zoomDomain = $$.scale.zoom.domain();
|
|
66
|
+
if ($$.scale.zoom) state.current.zoomDomain = $$.zoom?.getDomain() ?? $$.scale.zoom.domain();
|
|
67
67
|
$$.scale.zoom = null;
|
|
68
68
|
if (!state.resizing) state.dirty.data = true;
|
|
69
69
|
soft ? $$.redraw({
|
|
@@ -180,5 +180,4 @@ var chart_default = {
|
|
|
180
180
|
return res;
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
-
//#endregion
|
|
184
183
|
export { chart_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/Chart/api/color.ts
|
|
11
11
|
/**
|
|
12
12
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
13
13
|
* billboard.js project is licensed under the MIT license
|
|
@@ -26,5 +26,4 @@ var color_default = {
|
|
|
26
26
|
color(id) {
|
|
27
27
|
return this.internal.color(id);
|
|
28
28
|
} };
|
|
29
|
-
//#endregion
|
|
30
29
|
export { color_default as default };
|
|
@@ -5,11 +5,11 @@
|
|
|
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
|
-
import { isArray, isUndefined } from "../../module/util/type-checks.js";
|
|
11
10
|
import { extend } from "../../module/util/object.js";
|
|
12
|
-
|
|
11
|
+
import { isArray, isUndefined } from "../../module/util/type-checks.js";
|
|
12
|
+
// src/Chart/api/data.ts
|
|
13
13
|
/**
|
|
14
14
|
* Get data loaded in the chart.
|
|
15
15
|
* @function data
|
|
@@ -180,5 +180,4 @@ extend(data, {
|
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
var data_default = { data };
|
|
183
|
-
//#endregion
|
|
184
183
|
export { data_default 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 4.1
|
|
8
|
+
* @version 4.2.0-next.1
|
|
9
9
|
*/
|
|
10
10
|
import { document as doc, window as win } from "../../module/browser.js";
|
|
11
|
+
import { getBBox, getBoundingRect, getCssRules } from "../../module/util/dom.js";
|
|
11
12
|
import { isFunction } from "../../module/util/type-checks.js";
|
|
12
13
|
import { mergeObj, toArray } from "../../module/util/object.js";
|
|
13
|
-
import { getBBox, getBoundingRect, getCssRules } from "../../module/util/dom.js";
|
|
14
14
|
import { namespaces } from "d3-selection";
|
|
15
|
-
|
|
15
|
+
// src/Chart/api/export.ts
|
|
16
16
|
/**
|
|
17
17
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
18
18
|
* billboard.js project is licensed under the MIT license
|
|
@@ -269,5 +269,4 @@ export(option, callback) {
|
|
|
269
269
|
}
|
|
270
270
|
return svgDataUrl;
|
|
271
271
|
} };
|
|
272
|
-
//#endregion
|
|
273
272
|
export { export_default as default };
|
|
@@ -5,12 +5,12 @@
|
|
|
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
|
import { isDefined, isValue } from "../../module/util/type-checks.js";
|
|
11
|
-
import { parseDate } from "../../module/util/object.js";
|
|
12
11
|
import { isTabVisible } from "../../module/util/dom.js";
|
|
13
|
-
|
|
12
|
+
import { parseDate } from "../../module/util/object.js";
|
|
13
|
+
// src/Chart/api/flow.ts
|
|
14
14
|
/**
|
|
15
15
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
16
16
|
* billboard.js project is licensed under the MIT license
|
|
@@ -88,6 +88,12 @@ flow(args) {
|
|
|
88
88
|
const orgDataCount = $$.getMaxDataCount();
|
|
89
89
|
const targets = $$.convertDataToTargets(data, true);
|
|
90
90
|
const isTimeSeries = $$.axis.isTimeSeries();
|
|
91
|
+
const isCustomX = !isTimeSeries && $$.axis.isCustomX() && !$$.axis.isCategorized();
|
|
92
|
+
const hasDataX = isTimeSeries || isCustomX;
|
|
93
|
+
const firstValue = $$.data.targets.find((t) => t.values.length)?.values[0];
|
|
94
|
+
const xOffset = firstValue ? firstValue.x - firstValue.index : 0;
|
|
95
|
+
const getX = (index) => isTimeSeries ? $$.getOtherTargetX(index) : index + xOffset;
|
|
96
|
+
const flowedXs = [];
|
|
91
97
|
$$.data.targets.forEach((t) => {
|
|
92
98
|
let found = false;
|
|
93
99
|
for (let i = 0; i < targets.length; i++) if (t.id === targets[i].id) {
|
|
@@ -97,7 +103,8 @@ flow(args) {
|
|
|
97
103
|
length = values.length;
|
|
98
104
|
for (let j = 0; j < length; j++) {
|
|
99
105
|
values[j].index = tail + j;
|
|
100
|
-
if (!
|
|
106
|
+
if (!hasDataX) values[j].x = getX(tail + j);
|
|
107
|
+
flowedXs[j] = values[j].x;
|
|
101
108
|
t.values.push(values[j]);
|
|
102
109
|
}
|
|
103
110
|
targets.splice(i, 1);
|
|
@@ -112,7 +119,7 @@ flow(args) {
|
|
|
112
119
|
for (let j = 0; j < length; j++) t.values.push({
|
|
113
120
|
id: t.id,
|
|
114
121
|
index: tail + j,
|
|
115
|
-
x:
|
|
122
|
+
x: isCustomX ? flowedXs[j] : getX(tail + j),
|
|
116
123
|
value: null
|
|
117
124
|
});
|
|
118
125
|
}
|
|
@@ -130,7 +137,7 @@ flow(args) {
|
|
|
130
137
|
values[i] = {
|
|
131
138
|
id: t.id,
|
|
132
139
|
index,
|
|
133
|
-
x:
|
|
140
|
+
x: isCustomX ? $$.data.targets[0].values[i]?.x : getX(index),
|
|
134
141
|
value: null
|
|
135
142
|
};
|
|
136
143
|
}
|
|
@@ -138,7 +145,7 @@ flow(args) {
|
|
|
138
145
|
for (let i = missingLength; i < values.length; i++) {
|
|
139
146
|
const v = values[i];
|
|
140
147
|
v.index += tail;
|
|
141
|
-
if (!
|
|
148
|
+
if (!hasDataX) v.x = getX(v.index);
|
|
142
149
|
}
|
|
143
150
|
});
|
|
144
151
|
for (let i = 0; i < targets.length; i++) $$.data.targets.push(targets[i]);
|
|
@@ -182,6 +189,7 @@ flow(args) {
|
|
|
182
189
|
withUpdateXDomain: true
|
|
183
190
|
});
|
|
184
191
|
$$.updateTypesElements();
|
|
192
|
+
$$.updateCanvasFlowFocus?.();
|
|
185
193
|
args.done?.call($$.api);
|
|
186
194
|
return;
|
|
187
195
|
}
|
|
@@ -190,7 +198,6 @@ flow(args) {
|
|
|
190
198
|
$$.state._eventRectFingerprint = null;
|
|
191
199
|
$$.redraw({
|
|
192
200
|
flow: {
|
|
193
|
-
index: baseValue.index,
|
|
194
201
|
length,
|
|
195
202
|
duration: isValue(args.duration) ? args.duration : $$.config.transition_duration,
|
|
196
203
|
done: args.done,
|
|
@@ -203,5 +210,4 @@ flow(args) {
|
|
|
203
210
|
});
|
|
204
211
|
}
|
|
205
212
|
} };
|
|
206
|
-
//#endregion
|
|
207
213
|
export { flow_default as default };
|
|
@@ -5,11 +5,11 @@
|
|
|
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
|
import { $FOCUS, $GAUGE } from "../../config/classes.js";
|
|
11
11
|
import { select } from "d3-selection";
|
|
12
|
-
|
|
12
|
+
// src/Chart/api/focus.ts
|
|
13
13
|
/**
|
|
14
14
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
15
15
|
* billboard.js project is licensed under the MIT license
|
|
@@ -59,6 +59,7 @@ var focus_default = {
|
|
|
59
59
|
$$.toggleFocusLegend(targetIds, true);
|
|
60
60
|
state.focusedTargetIds = new Set(targetIds);
|
|
61
61
|
targetIds.forEach((id) => state.defocusedTargetIds.delete(id));
|
|
62
|
+
$$.customTypeHooks?.afterFocus?.($$);
|
|
62
63
|
},
|
|
63
64
|
/**
|
|
64
65
|
* This API fades out specified targets and reverts the others.<br><br>
|
|
@@ -97,6 +98,7 @@ var focus_default = {
|
|
|
97
98
|
$$.toggleFocusLegend(targetIds, false);
|
|
98
99
|
targetIds.forEach((id) => state.focusedTargetIds.delete(id));
|
|
99
100
|
state.defocusedTargetIds = new Set(targetIds);
|
|
101
|
+
$$.customTypeHooks?.afterFocus?.($$);
|
|
100
102
|
},
|
|
101
103
|
/**
|
|
102
104
|
* Revert focused or defocused state to initial state.<br><br>
|
|
@@ -140,7 +142,7 @@ var focus_default = {
|
|
|
140
142
|
resetLegend();
|
|
141
143
|
state.focusedTargetIds = /* @__PURE__ */ new Set();
|
|
142
144
|
state.defocusedTargetIds = /* @__PURE__ */ new Set();
|
|
145
|
+
$$.customTypeHooks?.afterFocus?.($$);
|
|
143
146
|
}
|
|
144
147
|
};
|
|
145
|
-
//#endregion
|
|
146
148
|
export { focus_default as default };
|
|
@@ -5,11 +5,11 @@
|
|
|
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
|
import { extend } from "../../module/util/object.js";
|
|
11
11
|
import { isTabVisible } from "../../module/util/dom.js";
|
|
12
|
-
|
|
12
|
+
// src/Chart/api/grid.ts
|
|
13
13
|
/**
|
|
14
14
|
* Normalize grid argument to array.
|
|
15
15
|
* @param {Array|object} grids Grid lines
|
|
@@ -218,5 +218,4 @@ var grid_default = {
|
|
|
218
218
|
xgrids,
|
|
219
219
|
ygrids
|
|
220
220
|
};
|
|
221
|
-
//#endregion
|
|
222
221
|
export { grid_default as default };
|
|
@@ -5,10 +5,10 @@
|
|
|
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
|
import { isUndefined } from "../../module/util/type-checks.js";
|
|
11
|
-
|
|
11
|
+
// src/Chart/api/group.ts
|
|
12
12
|
/**
|
|
13
13
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
14
14
|
* billboard.js project is licensed under the MIT license
|
|
@@ -36,5 +36,4 @@ groups(groups) {
|
|
|
36
36
|
$$.redraw();
|
|
37
37
|
return config.data_groups;
|
|
38
38
|
} };
|
|
39
|
-
//#endregion
|
|
40
39
|
export { group_default as default };
|
|
@@ -5,7 +5,7 @@
|
|
|
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
|
var legend_default = { legend: {
|
|
11
11
|
/**
|
|
@@ -58,5 +58,4 @@ var legend_default = { legend: {
|
|
|
58
58
|
$$.updateAndRedraw({ withLegend: true });
|
|
59
59
|
}
|
|
60
60
|
} };
|
|
61
|
-
//#endregion
|
|
62
61
|
export { legend_default as default };
|
|
@@ -5,12 +5,12 @@
|
|
|
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
|
+
import { callDone } from "../../ChartInternal/data/load.js";
|
|
10
11
|
import { requestIdleCallback } from "../../module/browser.js";
|
|
11
12
|
import { isArray, isEmpty, isString } from "../../module/util/type-checks.js";
|
|
12
|
-
|
|
13
|
-
//#region src/Chart/api/load.ts
|
|
13
|
+
// src/Chart/api/load.ts
|
|
14
14
|
/**
|
|
15
15
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
16
16
|
* billboard.js project is licensed under the MIT license
|
|
@@ -243,5 +243,4 @@ var load_default = {
|
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
245
|
};
|
|
246
|
-
//#endregion
|
|
247
246
|
export { load_default as default };
|
|
@@ -5,12 +5,12 @@
|
|
|
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
|
+
import { $REGION } from "../../config/classes.js";
|
|
10
11
|
import { extend, getOption } from "../../module/util/object.js";
|
|
11
12
|
import { isTabVisible } from "../../module/util/dom.js";
|
|
12
|
-
|
|
13
|
-
//#region src/Chart/api/regions.ts
|
|
13
|
+
// src/Chart/api/regions.ts
|
|
14
14
|
/**
|
|
15
15
|
* Redraw canvas after region API mutation.
|
|
16
16
|
* @param {object} $$ ChartInternal instance
|
|
@@ -162,5 +162,4 @@ extend(regions, {
|
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
164
|
var regions_default = { regions };
|
|
165
|
-
//#endregion
|
|
166
165
|
export { regions_default as default };
|
|
@@ -5,12 +5,12 @@
|
|
|
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
|
-
import { isDefined } from "../../module/util/type-checks.js";
|
|
11
10
|
import { $AREA, $LINE, $SELECT, $SHAPE } from "../../config/classes.js";
|
|
11
|
+
import { isDefined } from "../../module/util/type-checks.js";
|
|
12
12
|
import { select } from "d3-selection";
|
|
13
|
-
|
|
13
|
+
// src/Chart/api/selection.ts
|
|
14
14
|
/**
|
|
15
15
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
16
16
|
* billboard.js project is licensed under the MIT license
|
|
@@ -190,5 +190,4 @@ var selection_default = {
|
|
|
190
190
|
setSelection.bind($$)(false, ids, indices);
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
|
-
//#endregion
|
|
194
193
|
export { selection_default as default };
|
|
@@ -5,10 +5,10 @@
|
|
|
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
|
import { callFn, endall } from "../../module/util/object.js";
|
|
11
|
-
|
|
11
|
+
// src/Chart/api/show.ts
|
|
12
12
|
/**
|
|
13
13
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
14
14
|
* billboard.js project is licensed under the MIT license
|
|
@@ -142,5 +142,4 @@ var show_default = {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
|
-
//#endregion
|
|
146
145
|
export { show_default as default };
|
|
@@ -5,12 +5,12 @@
|
|
|
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
|
-
import { extend } from "../../module/util/object.js";
|
|
11
10
|
import { checkApiModuleImport } from "../../module/error.js";
|
|
11
|
+
import { extend } from "../../module/util/object.js";
|
|
12
12
|
import Chart from "../Chart.js";
|
|
13
|
-
|
|
13
|
+
// src/Chart/api/stubs.ts
|
|
14
14
|
/**
|
|
15
15
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
16
16
|
* billboard.js project is licensed under the MIT license
|
|
@@ -51,4 +51,3 @@ extend(Chart.prototype, [{
|
|
|
51
51
|
checkApiModuleImport("categories");
|
|
52
52
|
}
|
|
53
53
|
}]);
|
|
54
|
-
//#endregion
|
|
@@ -5,11 +5,11 @@
|
|
|
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
|
-
import { extend, parseDate } from "../../module/util/object.js";
|
|
11
10
|
import { $COMMON } from "../../config/classes.js";
|
|
12
|
-
|
|
11
|
+
import { extend, parseDate } from "../../module/util/object.js";
|
|
12
|
+
// src/Chart/api/subchart.ts
|
|
13
13
|
/**
|
|
14
14
|
* Select subchart by giving x domain range.
|
|
15
15
|
* - **ℹ️ NOTE:**
|
|
@@ -36,7 +36,7 @@ const subchart = function(domainValue) {
|
|
|
36
36
|
domain = domainValue;
|
|
37
37
|
if (Array.isArray(domain)) {
|
|
38
38
|
domain = axis.isTimeSeries() ? domain.map((x) => parseDate.bind($$)(x)) : domain;
|
|
39
|
-
domain = $$.setCanvasSubchartDomain(domain) || state.domain;
|
|
39
|
+
domain = $$.setCanvasSubchartDomain?.(domain) || state.domain;
|
|
40
40
|
} else domain = state.domain ?? x.orgDomain();
|
|
41
41
|
}
|
|
42
42
|
return domain;
|
|
@@ -163,5 +163,4 @@ extend(subchart, {
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
var subchart_default = { subchart };
|
|
166
|
-
//#endregion
|
|
167
166
|
export { subchart_default as default };
|