@carbon/charts 1.7.6 → 1.9.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +97 -155
- package/README.md +18 -20
- package/dist/_baseEach-603421de.mjs +21 -0
- package/dist/_baseEach-603421de.mjs.map +1 -0
- package/dist/_baseEach-cdac417f.js +2 -0
- package/dist/_baseEach-cdac417f.js.map +1 -0
- package/dist/a11y-7bad4f48.mjs +5 -0
- package/dist/a11y-7bad4f48.mjs.map +1 -0
- package/dist/a11y-c7c9d087.js +2 -0
- package/dist/a11y-c7c9d087.js.map +1 -0
- package/dist/angle-utils-6f166b40.js +2 -0
- package/dist/angle-utils-6f166b40.js.map +1 -0
- package/dist/angle-utils-8b6ce998.mjs +387 -0
- package/dist/angle-utils-8b6ce998.mjs.map +1 -0
- package/dist/axis-chart.d.ts +13 -0
- package/dist/chart.d.ts +18 -0
- package/dist/charts/alluvial.d.ts +10 -0
- package/dist/charts/area-stacked.d.ts +8 -0
- package/dist/charts/area.d.ts +8 -0
- package/dist/charts/bar-grouped.d.ts +8 -0
- package/dist/charts/bar-simple.d.ts +8 -0
- package/dist/charts/bar-stacked.d.ts +8 -0
- package/dist/charts/boxplot.d.ts +10 -0
- package/dist/charts/bubble.d.ts +8 -0
- package/dist/charts/bullet.d.ts +10 -0
- package/dist/charts/choropleth.d.ts +14 -0
- package/dist/charts/circle-pack.d.ts +10 -0
- package/dist/charts/combo.d.ts +9 -0
- package/dist/charts/donut.d.ts +8 -0
- package/dist/charts/gauge.d.ts +10 -0
- package/dist/charts/heatmap.d.ts +14 -0
- package/dist/charts/histogram.d.ts +10 -0
- package/dist/charts/index.d.ts +27 -0
- package/dist/charts/line.d.ts +8 -0
- package/dist/charts/lollipop.d.ts +8 -0
- package/dist/charts/meter.d.ts +10 -0
- package/dist/charts/pie.d.ts +10 -0
- package/dist/charts/radar.d.ts +10 -0
- package/dist/charts/scatter.d.ts +8 -0
- package/dist/charts/tree.d.ts +10 -0
- package/dist/charts/treemap.d.ts +10 -0
- package/dist/charts/wordcloud.d.ts +10 -0
- package/dist/choropleth-4ac6ac20.js +82 -0
- package/dist/choropleth-4ac6ac20.js.map +1 -0
- package/dist/choropleth-f473ea0d.mjs +7997 -0
- package/dist/choropleth-f473ea0d.mjs.map +1 -0
- package/dist/color-scale-utils-5eb3eeaa.mjs +3809 -0
- package/dist/color-scale-utils-5eb3eeaa.mjs.map +1 -0
- package/dist/color-scale-utils-7d463811.js +3 -0
- package/dist/color-scale-utils-7d463811.js.map +1 -0
- package/dist/components/axes/axis.d.ts +24 -0
- package/dist/components/axes/chart-clip.d.ts +13 -0
- package/dist/components/axes/grid-brush.d.ts +10 -0
- package/dist/components/axes/grid.d.ts +22 -0
- package/dist/components/axes/index.d.ts +12 -0
- package/dist/components/axes/ruler-binned.d.ts +10 -0
- package/dist/components/axes/ruler.d.ts +30 -0
- package/dist/components/axes/toolbar.d.ts +40 -0
- package/dist/components/axes/two-dimensional-axes.d.ts +16 -0
- package/dist/components/axes/zero-line.d.ts +7 -0
- package/dist/components/axes/zoom-bar.d.ts +31 -0
- package/dist/components/component.d.ts +30 -0
- package/dist/components/diagrams/buildPaths.d.ts +40 -0
- package/dist/components/diagrams/index.d.ts +2 -0
- package/dist/components/essentials/canvas-chart-clip.d.ts +6 -0
- package/dist/components/essentials/color-scale-legend.d.ts +20 -0
- package/dist/components/essentials/geo-projection.d.ts +16 -0
- package/dist/components/essentials/highlights.d.ts +13 -0
- package/dist/components/essentials/index.d.ts +11 -0
- package/dist/components/essentials/legend.d.ts +11 -0
- package/dist/components/essentials/modal.d.ts +14 -0
- package/dist/components/essentials/threshold.d.ts +20 -0
- package/dist/components/essentials/title-meter.d.ts +30 -0
- package/dist/components/essentials/title.d.ts +20 -0
- package/dist/components/essentials/tooltip.d.ts +22 -0
- package/dist/components/graphs/alluvial.d.ts +14 -0
- package/dist/components/graphs/area-stacked.d.ts +11 -0
- package/dist/components/graphs/area.d.ts +12 -0
- package/dist/components/graphs/bar-grouped.d.ts +22 -0
- package/dist/components/graphs/bar-simple.d.ts +12 -0
- package/dist/components/graphs/bar-stacked.d.ts +13 -0
- package/dist/components/graphs/bar.d.ts +5 -0
- package/dist/components/graphs/boxplot.d.ts +9 -0
- package/dist/components/graphs/bubble.d.ts +13 -0
- package/dist/components/graphs/bullet.d.ts +12 -0
- package/dist/components/graphs/choropleth.d.ts +6 -0
- package/dist/components/graphs/circle-pack.d.ts +19 -0
- package/dist/components/graphs/donut.d.ts +9 -0
- package/dist/components/graphs/gauge.d.ts +27 -0
- package/dist/components/graphs/heatmap.d.ts +25 -0
- package/dist/components/graphs/histogram.d.ts +12 -0
- package/dist/components/graphs/index.d.ts +28 -0
- package/dist/components/graphs/line.d.ts +11 -0
- package/dist/components/graphs/lollipop.d.ts +14 -0
- package/dist/components/graphs/meter.d.ts +10 -0
- package/dist/components/graphs/pie.d.ts +16 -0
- package/dist/components/graphs/radar.d.ts +25 -0
- package/dist/components/graphs/scatter-stacked.d.ts +8 -0
- package/dist/components/graphs/scatter.d.ts +21 -0
- package/dist/components/graphs/skeleton-lines.d.ts +12 -0
- package/dist/components/graphs/skeleton.d.ts +23 -0
- package/dist/components/graphs/tree.d.ts +9 -0
- package/dist/components/graphs/treemap.d.ts +11 -0
- package/dist/components/graphs/wordcloud.d.ts +12 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index.mjs +76 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout/layout.d.ts +18 -0
- package/dist/components/layout/spacer.d.ts +5 -0
- package/dist/configuration-non-customizable.d.ts +263 -0
- package/dist/configuration.d.ts +48 -0
- package/dist/demo/charts/alluvial.d.ts +109 -0
- package/dist/demo/charts/area.d.ts +224 -0
- package/dist/demo/charts/bar.d.ts +681 -0
- package/dist/demo/charts/boxplot.d.ts +34 -0
- package/dist/demo/charts/bubble.d.ts +141 -0
- package/dist/demo/charts/bullet.d.ts +24 -0
- package/dist/demo/charts/chart-types.d.ts +128 -0
- package/dist/demo/charts/choropleth.d.ts +738 -0
- package/dist/demo/charts/circle-pack.d.ts +91 -0
- package/dist/demo/charts/combo.d.ts +482 -0
- package/dist/demo/charts/donut.d.ts +64 -0
- package/dist/demo/charts/gauge.d.ts +40 -0
- package/dist/demo/charts/heatmap.d.ts +125 -0
- package/dist/demo/charts/hightlight.d.ts +40 -0
- package/dist/demo/charts/histogram.d.ts +63 -0
- package/dist/demo/charts/index.d.ts +62 -0
- package/dist/demo/charts/line.d.ts +361 -0
- package/dist/demo/charts/lollipop.d.ts +39 -0
- package/dist/demo/charts/meter.d.ts +95 -0
- package/dist/demo/charts/pie.d.ts +46 -0
- package/dist/demo/charts/radar.d.ts +63 -0
- package/dist/demo/charts/scatter.d.ts +118 -0
- package/dist/demo/charts/step.d.ts +96 -0
- package/dist/demo/charts/time-series-axis.d.ts +293 -0
- package/dist/demo/charts/toolbar.d.ts +12 -0
- package/dist/demo/charts/topojson-110.d.ts +360 -0
- package/dist/demo/charts/tree.d.ts +30 -0
- package/dist/demo/charts/treemap.d.ts +15 -0
- package/dist/demo/charts/wordcloud.d.ts +14 -0
- package/dist/demo/charts/zoom-bar.d.ts +79 -0
- package/dist/demo/index.d.ts +4 -0
- package/dist/demo/index.js +470 -0
- package/dist/demo/index.js.map +1 -0
- package/dist/demo/index.mjs +51789 -0
- package/dist/demo/index.mjs.map +1 -0
- package/dist/demo/styles.css +30574 -0
- package/dist/demo/styles.css.map +1 -0
- package/dist/demo/utils/index.d.ts +2 -0
- package/dist/demo/utils/sandbox.d.ts +39 -0
- package/dist/demo/utils/story-widgets.d.ts +7 -0
- package/dist/enums-a96ef472.mjs +89 -0
- package/dist/enums-a96ef472.mjs.map +1 -0
- package/dist/enums-aa2efd99.js +2 -0
- package/dist/enums-aa2efd99.js.map +1 -0
- package/dist/index-822564ed.js +2 -0
- package/dist/index-822564ed.js.map +1 -0
- package/dist/index-a266373c.mjs +749 -0
- package/dist/index-a266373c.mjs.map +1 -0
- package/dist/index-becfb567.mjs +72 -0
- package/dist/index-becfb567.mjs.map +1 -0
- package/dist/index-d865d500.js +2 -0
- package/dist/index-d865d500.js.map +1 -0
- package/dist/index-ec554115.mjs +62 -0
- package/dist/index-ec554115.mjs.map +1 -0
- package/dist/index-f23685eb.js +2 -0
- package/dist/index-f23685eb.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1121 -0
- package/dist/index.mjs.map +1 -0
- package/dist/interfaces/axis-scales.d.ts +201 -0
- package/dist/interfaces/charts.d.ts +520 -0
- package/dist/interfaces/components.d.ts +231 -0
- package/dist/interfaces/enums.d.ts +261 -0
- package/dist/interfaces/events.d.ts +239 -0
- package/dist/interfaces/index.d.ts +12 -0
- package/dist/interfaces/index.js +2 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/interfaces/index.mjs +58 -0
- package/dist/interfaces/index.mjs.map +1 -0
- package/dist/interfaces/layout.d.ts +21 -0
- package/dist/interfaces/model.d.ts +35 -0
- package/dist/interfaces/services.d.ts +20 -0
- package/dist/interfaces/truncation.d.ts +17 -0
- package/dist/model/binned-charts.d.ts +7 -0
- package/dist/model/cartesian-charts.d.ts +24 -0
- package/dist/model/choropleth.d.ts +29 -0
- package/dist/model/heatmap.d.ts +57 -0
- package/dist/model/index.d.ts +16 -0
- package/dist/model/index.js +3 -0
- package/dist/model/index.js.map +1 -0
- package/dist/model/index.mjs +1107 -0
- package/dist/model/index.mjs.map +1 -0
- package/dist/model/meter.d.ts +20 -0
- package/dist/model/model.d.ts +110 -0
- package/dist/services/angle-utils.d.ts +15 -0
- package/dist/services/color-scale-utils.d.ts +2 -0
- package/dist/services/curves.d.ts +24 -0
- package/dist/services/essentials/dom-utils.d.ts +45 -0
- package/dist/services/essentials/events.d.ts +8 -0
- package/dist/services/essentials/files.d.ts +7 -0
- package/dist/services/essentials/gradient-utils.d.ts +6 -0
- package/dist/services/essentials/index.d.ts +5 -0
- package/dist/services/essentials/transitions.d.ts +13 -0
- package/dist/services/index.d.ts +9 -0
- package/dist/services/index.js +2 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/index.mjs +32 -0
- package/dist/services/index.mjs.map +1 -0
- package/dist/services/scales-cartesian.d.ts +89 -0
- package/dist/services/service.d.ts +11 -0
- package/dist/services/zoom.d.ts +21 -0
- package/dist/styles/_chart-holder.scss +50 -0
- package/dist/styles/color-palatte.scss +458 -0
- package/dist/styles/colors.scss +131 -0
- package/dist/styles/components/_color-legend.scss +11 -0
- package/dist/styles/components/_edge.scss +65 -0
- package/dist/styles/components/_grid.scss +30 -0
- package/dist/styles/components/_marker.scss +7 -0
- package/dist/styles/components/_meter-title.scss +37 -0
- package/dist/styles/components/_tooltip.scss +132 -0
- package/dist/styles/components/diagrams/_card-node.scss +97 -0
- package/dist/styles/components/diagrams/_edge.scss +66 -0
- package/dist/styles/components/diagrams/_shape-node.scss +89 -0
- package/dist/styles/components/diagrams/index.scss +4 -0
- package/dist/styles/graphs/_alluvial.scss +17 -0
- package/dist/styles/graphs/_bullet.scss +36 -0
- package/dist/styles/graphs/_choropleth.scss +18 -0
- package/dist/styles/graphs/_circle-pack.scss +36 -0
- package/dist/styles/graphs/_gauge.scss +23 -0
- package/dist/styles/graphs/_heatmap.scss +60 -0
- package/dist/styles/graphs/_meter.scss +34 -0
- package/dist/styles/graphs/_radar.scss +18 -0
- package/dist/styles/graphs/_scatter-stacked.scss +12 -0
- package/dist/styles/graphs/_tree.scss +46 -0
- package/dist/styles/graphs/index.scss +19 -0
- package/dist/styles/styles.scss +40 -0
- package/dist/styles/tokens.scss +407 -0
- package/dist/styles.css +28463 -0
- package/dist/styles.css.map +1 -0
- package/dist/styles.min.css +1 -0
- package/dist/styles.min.css.map +1 -0
- package/dist/tools.d.ts +150 -0
- package/package.json +140 -101
- package/axis-chart.d.ts +0 -10
- package/axis-chart.js +0 -169
- package/axis-chart.js.map +0 -1
- package/build/demo/create-codesandbox.d.ts +0 -113
- package/build/demo/data/CHART_TYPES.d.ts +0 -123
- package/build/demo/data/alluvial.d.ts +0 -109
- package/build/demo/data/area.d.ts +0 -224
- package/build/demo/data/bar.d.ts +0 -681
- package/build/demo/data/boxplot.d.ts +0 -34
- package/build/demo/data/bubble.d.ts +0 -141
- package/build/demo/data/bullet.d.ts +0 -24
- package/build/demo/data/circle-pack.d.ts +0 -91
- package/build/demo/data/combo.d.ts +0 -482
- package/build/demo/data/donut.d.ts +0 -64
- package/build/demo/data/gauge.d.ts +0 -40
- package/build/demo/data/heatmap.d.ts +0 -125
- package/build/demo/data/high-scale.d.ts +0 -1
- package/build/demo/data/hightlight.d.ts +0 -40
- package/build/demo/data/histogram.d.ts +0 -63
- package/build/demo/data/index.d.ts +0 -32
- package/build/demo/data/line.d.ts +0 -361
- package/build/demo/data/lollipop.d.ts +0 -39
- package/build/demo/data/meter.d.ts +0 -95
- package/build/demo/data/pie.d.ts +0 -46
- package/build/demo/data/radar.d.ts +0 -63
- package/build/demo/data/scatter.d.ts +0 -118
- package/build/demo/data/step.d.ts +0 -96
- package/build/demo/data/time-series-axis.d.ts +0 -368
- package/build/demo/data/toolbar.d.ts +0 -12
- package/build/demo/data/tree.d.ts +0 -30
- package/build/demo/data/treemap.d.ts +0 -15
- package/build/demo/data/wordcloud.d.ts +0 -14
- package/build/demo/data/zoom-bar.d.ts +0 -94
- package/build/demo/utils.d.ts +0 -40
- package/build/src/axis-chart.d.ts +0 -10
- package/build/src/chart.d.ts +0 -14
- package/build/src/charts/alluvial.d.ts +0 -8
- package/build/src/charts/area-stacked.d.ts +0 -6
- package/build/src/charts/area.d.ts +0 -6
- package/build/src/charts/bar-grouped.d.ts +0 -6
- package/build/src/charts/bar-simple.d.ts +0 -6
- package/build/src/charts/bar-stacked.d.ts +0 -6
- package/build/src/charts/boxplot.d.ts +0 -8
- package/build/src/charts/bubble.d.ts +0 -6
- package/build/src/charts/bullet.d.ts +0 -8
- package/build/src/charts/circle-pack.d.ts +0 -8
- package/build/src/charts/combo.d.ts +0 -7
- package/build/src/charts/donut.d.ts +0 -6
- package/build/src/charts/gauge.d.ts +0 -8
- package/build/src/charts/heatmap.d.ts +0 -10
- package/build/src/charts/histogram.d.ts +0 -8
- package/build/src/charts/index.d.ts +0 -24
- package/build/src/charts/line.d.ts +0 -6
- package/build/src/charts/lollipop.d.ts +0 -6
- package/build/src/charts/meter.d.ts +0 -8
- package/build/src/charts/pie.d.ts +0 -8
- package/build/src/charts/radar.d.ts +0 -8
- package/build/src/charts/scatter.d.ts +0 -6
- package/build/src/charts/tree.d.ts +0 -8
- package/build/src/charts/treemap.d.ts +0 -8
- package/build/src/charts/wordcloud.d.ts +0 -8
- package/build/src/components/axes/axis.d.ts +0 -24
- package/build/src/components/axes/chart-clip.d.ts +0 -13
- package/build/src/components/axes/grid-brush.d.ts +0 -10
- package/build/src/components/axes/grid.d.ts +0 -22
- package/build/src/components/axes/hover-axis.d.ts +0 -10
- package/build/src/components/axes/ruler-binned.d.ts +0 -7
- package/build/src/components/axes/ruler-stacked.d.ts +0 -4
- package/build/src/components/axes/ruler.d.ts +0 -27
- package/build/src/components/axes/toolbar.d.ts +0 -40
- package/build/src/components/axes/two-dimensional-axes.d.ts +0 -16
- package/build/src/components/axes/zero-line.d.ts +0 -7
- package/build/src/components/axes/zoom-bar.d.ts +0 -28
- package/build/src/components/component.d.ts +0 -28
- package/build/src/components/diagrams/buildPaths.d.ts +0 -63
- package/build/src/components/diagrams/markerDefinitions.d.ts +0 -37
- package/build/src/components/essentials/canvas-chart-clip.d.ts +0 -6
- package/build/src/components/essentials/color-scale-legend.d.ts +0 -17
- package/build/src/components/essentials/highlights.d.ts +0 -13
- package/build/src/components/essentials/legend.d.ts +0 -11
- package/build/src/components/essentials/modal.d.ts +0 -14
- package/build/src/components/essentials/threshold.d.ts +0 -20
- package/build/src/components/essentials/title-meter.d.ts +0 -30
- package/build/src/components/essentials/title.d.ts +0 -20
- package/build/src/components/essentials/tooltip-axis.d.ts +0 -4
- package/build/src/components/essentials/tooltip.d.ts +0 -22
- package/build/src/components/graphs/alluvial.d.ts +0 -14
- package/build/src/components/graphs/area-stacked.d.ts +0 -11
- package/build/src/components/graphs/area.d.ts +0 -12
- package/build/src/components/graphs/bar-grouped.d.ts +0 -22
- package/build/src/components/graphs/bar-simple.d.ts +0 -12
- package/build/src/components/graphs/bar-stacked.d.ts +0 -13
- package/build/src/components/graphs/bar.d.ts +0 -5
- package/build/src/components/graphs/boxplot.d.ts +0 -9
- package/build/src/components/graphs/bubble.d.ts +0 -13
- package/build/src/components/graphs/bullet.d.ts +0 -12
- package/build/src/components/graphs/circle-pack.d.ts +0 -19
- package/build/src/components/graphs/donut.d.ts +0 -9
- package/build/src/components/graphs/gauge.d.ts +0 -27
- package/build/src/components/graphs/heatmap.d.ts +0 -25
- package/build/src/components/graphs/histogram.d.ts +0 -12
- package/build/src/components/graphs/line.d.ts +0 -11
- package/build/src/components/graphs/lollipop.d.ts +0 -14
- package/build/src/components/graphs/meter.d.ts +0 -10
- package/build/src/components/graphs/pie.d.ts +0 -16
- package/build/src/components/graphs/radar.d.ts +0 -25
- package/build/src/components/graphs/scatter-stacked.d.ts +0 -8
- package/build/src/components/graphs/scatter.d.ts +0 -21
- package/build/src/components/graphs/skeleton-lines.d.ts +0 -11
- package/build/src/components/graphs/skeleton.d.ts +0 -22
- package/build/src/components/graphs/tree.d.ts +0 -9
- package/build/src/components/graphs/treemap.d.ts +0 -11
- package/build/src/components/graphs/wordcloud.d.ts +0 -12
- package/build/src/components/index.d.ts +0 -51
- package/build/src/components/layout/layout.d.ts +0 -17
- package/build/src/components/layout/spacer.d.ts +0 -5
- package/build/src/configuration-non-customizable.d.ts +0 -263
- package/build/src/configuration.d.ts +0 -44
- package/build/src/interfaces/a11y.d.ts +0 -12
- package/build/src/interfaces/axis-scales.d.ts +0 -201
- package/build/src/interfaces/charts.d.ts +0 -485
- package/build/src/interfaces/components.d.ts +0 -231
- package/build/src/interfaces/enums.d.ts +0 -249
- package/build/src/interfaces/events.d.ts +0 -230
- package/build/src/interfaces/index.d.ts +0 -7
- package/build/src/interfaces/layout.d.ts +0 -15
- package/build/src/interfaces/model.d.ts +0 -35
- package/build/src/interfaces/truncation.d.ts +0 -17
- package/build/src/model/alluvial.d.ts +0 -8
- package/build/src/model/binned-charts.d.ts +0 -7
- package/build/src/model/boxplot.d.ts +0 -14
- package/build/src/model/bullet.d.ts +0 -14
- package/build/src/model/cartesian-charts.d.ts +0 -24
- package/build/src/model/circle-pack.d.ts +0 -36
- package/build/src/model/gauge.d.ts +0 -9
- package/build/src/model/heatmap.d.ts +0 -57
- package/build/src/model/meter.d.ts +0 -19
- package/build/src/model/model.d.ts +0 -107
- package/build/src/model/pie.d.ts +0 -9
- package/build/src/model/radar.d.ts +0 -7
- package/build/src/model/tree.d.ts +0 -14
- package/build/src/model/treemap.d.ts +0 -8
- package/build/src/model/wordcloud.d.ts +0 -7
- package/build/src/services/angle-utils.d.ts +0 -205
- package/build/src/services/canvas-zoom.d.ts +0 -11
- package/build/src/services/curves.d.ts +0 -25
- package/build/src/services/essentials/dom-utils.d.ts +0 -39
- package/build/src/services/essentials/events.d.ts +0 -8
- package/build/src/services/essentials/files.d.ts +0 -6
- package/build/src/services/essentials/gradient-utils.d.ts +0 -6
- package/build/src/services/essentials/transitions.d.ts +0 -13
- package/build/src/services/index.d.ts +0 -9
- package/build/src/services/scales-cartesian.d.ts +0 -86
- package/build/src/services/service.d.ts +0 -10
- package/build/src/services/time-series.d.ts +0 -787
- package/build/src/services/zoom.d.ts +0 -21
- package/build/src/tools.d.ts +0 -2427
- package/build/stories/all.stories.d.ts +0 -1
- package/build/stories/tutorials/api.d.ts +0 -4
- package/build/stories/tutorials/color-palette.d.ts +0 -4
- package/build/stories/tutorials/combo-charts.d.ts +0 -4
- package/build/stories/tutorials/dual-axes.d.ts +0 -4
- package/build/stories/tutorials/event-listeners.d.ts +0 -4
- package/build/stories/tutorials/getting-started/angular.d.ts +0 -5
- package/build/stories/tutorials/getting-started/react.d.ts +0 -5
- package/build/stories/tutorials/getting-started/vanilla.d.ts +0 -5
- package/build/stories/tutorials/getting-started/vue.d.ts +0 -5
- package/build/stories/tutorials/index.d.ts +0 -11
- package/build/stories/tutorials/tabular-data-format.d.ts +0 -4
- package/build/stories/tutorials/themes.d.ts +0 -4
- package/build/stories/tutorials.stories.d.ts +0 -1
- package/bundle.js +0 -17
- package/chart.d.ts +0 -14
- package/chart.js +0 -198
- package/chart.js.map +0 -1
- package/charts/alluvial.d.ts +0 -8
- package/charts/alluvial.js +0 -46
- package/charts/alluvial.js.map +0 -1
- package/charts/area-stacked.d.ts +0 -6
- package/charts/area-stacked.js +0 -55
- package/charts/area-stacked.js.map +0 -1
- package/charts/area.d.ts +0 -6
- package/charts/area.js +0 -54
- package/charts/area.js.map +0 -1
- package/charts/bar-grouped.d.ts +0 -6
- package/charts/bar-grouped.js +0 -49
- package/charts/bar-grouped.js.map +0 -1
- package/charts/bar-simple.d.ts +0 -6
- package/charts/bar-simple.js +0 -49
- package/charts/bar-simple.js.map +0 -1
- package/charts/bar-stacked.d.ts +0 -6
- package/charts/bar-stacked.js +0 -50
- package/charts/bar-stacked.js.map +0 -1
- package/charts/boxplot.d.ts +0 -8
- package/charts/boxplot.js +0 -55
- package/charts/boxplot.js.map +0 -1
- package/charts/bubble.d.ts +0 -6
- package/charts/bubble.js +0 -49
- package/charts/bubble.js.map +0 -1
- package/charts/bullet.d.ts +0 -8
- package/charts/bullet.js +0 -50
- package/charts/bullet.js.map +0 -1
- package/charts/circle-pack.d.ts +0 -8
- package/charts/circle-pack.js +0 -45
- package/charts/circle-pack.js.map +0 -1
- package/charts/combo.d.ts +0 -7
- package/charts/combo.js +0 -132
- package/charts/combo.js.map +0 -1
- package/charts/donut.d.ts +0 -6
- package/charts/donut.js +0 -46
- package/charts/donut.js.map +0 -1
- package/charts/gauge.d.ts +0 -8
- package/charts/gauge.js +0 -42
- package/charts/gauge.js.map +0 -1
- package/charts/heatmap.d.ts +0 -10
- package/charts/heatmap.js +0 -138
- package/charts/heatmap.js.map +0 -1
- package/charts/histogram.d.ts +0 -8
- package/charts/histogram.js +0 -48
- package/charts/histogram.js.map +0 -1
- package/charts/index.d.ts +0 -24
- package/charts/index.js +0 -25
- package/charts/index.js.map +0 -1
- package/charts/line.d.ts +0 -6
- package/charts/line.js +0 -48
- package/charts/line.js.map +0 -1
- package/charts/lollipop.d.ts +0 -6
- package/charts/lollipop.js +0 -50
- package/charts/lollipop.js.map +0 -1
- package/charts/meter.d.ts +0 -8
- package/charts/meter.js +0 -94
- package/charts/meter.js.map +0 -1
- package/charts/pie.d.ts +0 -8
- package/charts/pie.js +0 -55
- package/charts/pie.js.map +0 -1
- package/charts/radar.d.ts +0 -8
- package/charts/radar.js +0 -44
- package/charts/radar.js.map +0 -1
- package/charts/scatter.d.ts +0 -6
- package/charts/scatter.js +0 -49
- package/charts/scatter.js.map +0 -1
- package/charts/tree.d.ts +0 -8
- package/charts/tree.js +0 -47
- package/charts/tree.js.map +0 -1
- package/charts/treemap.d.ts +0 -8
- package/charts/treemap.js +0 -43
- package/charts/treemap.js.map +0 -1
- package/charts/wordcloud.d.ts +0 -8
- package/charts/wordcloud.js +0 -49
- package/charts/wordcloud.js.map +0 -1
- package/components/axes/axis.d.ts +0 -24
- package/components/axes/axis.js +0 -587
- package/components/axes/axis.js.map +0 -1
- package/components/axes/chart-clip.d.ts +0 -13
- package/components/axes/chart-clip.js +0 -63
- package/components/axes/chart-clip.js.map +0 -1
- package/components/axes/grid-brush.d.ts +0 -10
- package/components/axes/grid-brush.js +0 -170
- package/components/axes/grid-brush.js.map +0 -1
- package/components/axes/grid.d.ts +0 -22
- package/components/axes/grid.js +0 -235
- package/components/axes/grid.js.map +0 -1
- package/components/axes/hover-axis.js +0 -243
- package/components/axes/hover-axis.js.map +0 -1
- package/components/axes/ruler-binned.d.ts +0 -7
- package/components/axes/ruler-binned.js +0 -136
- package/components/axes/ruler-binned.js.map +0 -1
- package/components/axes/ruler-stacked.js +0 -26
- package/components/axes/ruler-stacked.js.map +0 -1
- package/components/axes/ruler.d.ts +0 -27
- package/components/axes/ruler.js +0 -209
- package/components/axes/ruler.js.map +0 -1
- package/components/axes/toolbar.d.ts +0 -40
- package/components/axes/toolbar.js +0 -558
- package/components/axes/toolbar.js.map +0 -1
- package/components/axes/two-dimensional-axes.d.ts +0 -16
- package/components/axes/two-dimensional-axes.js +0 -134
- package/components/axes/two-dimensional-axes.js.map +0 -1
- package/components/axes/zero-line.d.ts +0 -7
- package/components/axes/zero-line.js +0 -76
- package/components/axes/zero-line.js.map +0 -1
- package/components/axes/zoom-bar.d.ts +0 -28
- package/components/axes/zoom-bar.js +0 -490
- package/components/axes/zoom-bar.js.map +0 -1
- package/components/component.d.ts +0 -28
- package/components/component.js +0 -102
- package/components/component.js.map +0 -1
- package/components/diagrams/buildPaths.d.ts +0 -39
- package/components/diagrams/buildPaths.js +0 -71
- package/components/diagrams/buildPaths.js.map +0 -1
- package/components/diagrams/markerDefinitions.js +0 -38
- package/components/diagrams/markerDefinitions.js.map +0 -1
- package/components/essentials/canvas-chart-clip.d.ts +0 -6
- package/components/essentials/canvas-chart-clip.js +0 -46
- package/components/essentials/canvas-chart-clip.js.map +0 -1
- package/components/essentials/color-scale-legend.d.ts +0 -17
- package/components/essentials/color-scale-legend.js +0 -230
- package/components/essentials/color-scale-legend.js.map +0 -1
- package/components/essentials/highlights.d.ts +0 -13
- package/components/essentials/highlights.js +0 -196
- package/components/essentials/highlights.js.map +0 -1
- package/components/essentials/legend.d.ts +0 -11
- package/components/essentials/legend.js +0 -428
- package/components/essentials/legend.js.map +0 -1
- package/components/essentials/modal.d.ts +0 -14
- package/components/essentials/modal.js +0 -89
- package/components/essentials/modal.js.map +0 -1
- package/components/essentials/threshold.d.ts +0 -20
- package/components/essentials/threshold.js +0 -306
- package/components/essentials/threshold.js.map +0 -1
- package/components/essentials/title-meter.d.ts +0 -30
- package/components/essentials/title-meter.js +0 -279
- package/components/essentials/title-meter.js.map +0 -1
- package/components/essentials/title.d.ts +0 -20
- package/components/essentials/title.js +0 -138
- package/components/essentials/title.js.map +0 -1
- package/components/essentials/tooltip-axis.js +0 -142
- package/components/essentials/tooltip-axis.js.map +0 -1
- package/components/essentials/tooltip.d.ts +0 -22
- package/components/essentials/tooltip.js +0 -263
- package/components/essentials/tooltip.js.map +0 -1
- package/components/graphs/alluvial.d.ts +0 -14
- package/components/graphs/alluvial.js +0 -535
- package/components/graphs/alluvial.js.map +0 -1
- package/components/graphs/area-stacked.d.ts +0 -11
- package/components/graphs/area-stacked.js +0 -131
- package/components/graphs/area-stacked.js.map +0 -1
- package/components/graphs/area.d.ts +0 -12
- package/components/graphs/area.js +0 -260
- package/components/graphs/area.js.map +0 -1
- package/components/graphs/bar-grouped.d.ts +0 -22
- package/components/graphs/bar-grouped.js +0 -312
- package/components/graphs/bar-grouped.js.map +0 -1
- package/components/graphs/bar-simple.d.ts +0 -12
- package/components/graphs/bar-simple.js +0 -218
- package/components/graphs/bar-simple.js.map +0 -1
- package/components/graphs/bar-stacked.d.ts +0 -13
- package/components/graphs/bar-stacked.js +0 -281
- package/components/graphs/bar-stacked.js.map +0 -1
- package/components/graphs/bar.d.ts +0 -5
- package/components/graphs/bar.js +0 -58
- package/components/graphs/bar.js.map +0 -1
- package/components/graphs/boxplot.d.ts +0 -9
- package/components/graphs/boxplot.js +0 -485
- package/components/graphs/boxplot.js.map +0 -1
- package/components/graphs/bubble.d.ts +0 -13
- package/components/graphs/bubble.js +0 -113
- package/components/graphs/bubble.js.map +0 -1
- package/components/graphs/bullet.d.ts +0 -12
- package/components/graphs/bullet.js +0 -395
- package/components/graphs/bullet.js.map +0 -1
- package/components/graphs/circle-pack.d.ts +0 -19
- package/components/graphs/circle-pack.js +0 -388
- package/components/graphs/circle-pack.js.map +0 -1
- package/components/graphs/donut.d.ts +0 -9
- package/components/graphs/donut.js +0 -116
- package/components/graphs/donut.js.map +0 -1
- package/components/graphs/gauge.d.ts +0 -27
- package/components/graphs/gauge.js +0 -347
- package/components/graphs/gauge.js.map +0 -1
- package/components/graphs/heatmap.d.ts +0 -25
- package/components/graphs/heatmap.js +0 -388
- package/components/graphs/heatmap.js.map +0 -1
- package/components/graphs/histogram.d.ts +0 -12
- package/components/graphs/histogram.js +0 -220
- package/components/graphs/histogram.js.map +0 -1
- package/components/graphs/line.d.ts +0 -11
- package/components/graphs/line.js +0 -179
- package/components/graphs/line.js.map +0 -1
- package/components/graphs/lollipop.d.ts +0 -14
- package/components/graphs/lollipop.js +0 -164
- package/components/graphs/lollipop.js.map +0 -1
- package/components/graphs/meter.d.ts +0 -10
- package/components/graphs/meter.js +0 -284
- package/components/graphs/meter.js.map +0 -1
- package/components/graphs/pie.d.ts +0 -16
- package/components/graphs/pie.js +0 -438
- package/components/graphs/pie.js.map +0 -1
- package/components/graphs/radar.d.ts +0 -25
- package/components/graphs/radar.js +0 -737
- package/components/graphs/radar.js.map +0 -1
- package/components/graphs/scatter-stacked.d.ts +0 -8
- package/components/graphs/scatter-stacked.js +0 -140
- package/components/graphs/scatter-stacked.js.map +0 -1
- package/components/graphs/scatter.d.ts +0 -21
- package/components/graphs/scatter.js +0 -360
- package/components/graphs/scatter.js.map +0 -1
- package/components/graphs/skeleton-lines.d.ts +0 -11
- package/components/graphs/skeleton-lines.js +0 -84
- package/components/graphs/skeleton-lines.js.map +0 -1
- package/components/graphs/skeleton.d.ts +0 -22
- package/components/graphs/skeleton.js +0 -272
- package/components/graphs/skeleton.js.map +0 -1
- package/components/graphs/tree.d.ts +0 -9
- package/components/graphs/tree.js +0 -262
- package/components/graphs/tree.js.map +0 -1
- package/components/graphs/treemap.d.ts +0 -11
- package/components/graphs/treemap.js +0 -344
- package/components/graphs/treemap.js.map +0 -1
- package/components/graphs/wordcloud.d.ts +0 -12
- package/components/graphs/wordcloud.js +0 -268
- package/components/graphs/wordcloud.js.map +0 -1
- package/components/index.d.ts +0 -51
- package/components/index.js +0 -57
- package/components/index.js.map +0 -1
- package/components/layout/layout.d.ts +0 -17
- package/components/layout/layout.js +0 -191
- package/components/layout/layout.js.map +0 -1
- package/components/layout/spacer.d.ts +0 -5
- package/components/layout/spacer.js +0 -33
- package/components/layout/spacer.js.map +0 -1
- package/configuration-non-customizable.d.ts +0 -263
- package/configuration-non-customizable.js +0 -276
- package/configuration-non-customizable.js.map +0 -1
- package/configuration.d.ts +0 -44
- package/configuration.js +0 -535
- package/configuration.js.map +0 -1
- package/demo/create-codesandbox.d.ts +0 -65
- package/demo/create-codesandbox.js +0 -155
- package/demo/create-codesandbox.js.map +0 -1
- package/demo/data/CHART_TYPES.d.ts +0 -123
- package/demo/data/CHART_TYPES.js +0 -123
- package/demo/data/CHART_TYPES.js.map +0 -1
- package/demo/data/alluvial.d.ts +0 -109
- package/demo/data/alluvial.js +0 -328
- package/demo/data/alluvial.js.map +0 -1
- package/demo/data/area.d.ts +0 -224
- package/demo/data/area.js +0 -330
- package/demo/data/area.js.map +0 -1
- package/demo/data/bar.d.ts +0 -681
- package/demo/data/bar.js +0 -915
- package/demo/data/bar.js.map +0 -1
- package/demo/data/boxplot.d.ts +0 -34
- package/demo/data/boxplot.js +0 -48
- package/demo/data/boxplot.js.map +0 -1
- package/demo/data/bubble.d.ts +0 -141
- package/demo/data/bubble.js +0 -182
- package/demo/data/bubble.js.map +0 -1
- package/demo/data/bullet.d.ts +0 -24
- package/demo/data/bullet.js +0 -55
- package/demo/data/bullet.js.map +0 -1
- package/demo/data/bundle.js +0 -1
- package/demo/data/circle-pack.d.ts +0 -91
- package/demo/data/circle-pack.js +0 -224
- package/demo/data/circle-pack.js.map +0 -1
- package/demo/data/combo.d.ts +0 -482
- package/demo/data/combo.js +0 -571
- package/demo/data/combo.js.map +0 -1
- package/demo/data/donut.d.ts +0 -64
- package/demo/data/donut.js +0 -60
- package/demo/data/donut.js.map +0 -1
- package/demo/data/gauge.d.ts +0 -40
- package/demo/data/gauge.js +0 -41
- package/demo/data/gauge.js.map +0 -1
- package/demo/data/heatmap.d.ts +0 -125
- package/demo/data/heatmap.js +0 -1149
- package/demo/data/heatmap.js.map +0 -1
- package/demo/data/high-scale.d.ts +0 -1
- package/demo/data/high-scale.js +0 -5
- package/demo/data/high-scale.js.map +0 -1
- package/demo/data/hightlight.d.ts +0 -40
- package/demo/data/hightlight.js +0 -44
- package/demo/data/hightlight.js.map +0 -1
- package/demo/data/histogram.d.ts +0 -63
- package/demo/data/histogram.js +0 -312
- package/demo/data/histogram.js.map +0 -1
- package/demo/data/index.d.ts +0 -32
- package/demo/data/index.js +0 -1265
- package/demo/data/index.js.map +0 -1
- package/demo/data/line.d.ts +0 -361
- package/demo/data/line.js +0 -480
- package/demo/data/line.js.map +0 -1
- package/demo/data/lollipop.d.ts +0 -39
- package/demo/data/lollipop.js +0 -37
- package/demo/data/lollipop.js.map +0 -1
- package/demo/data/meter.d.ts +0 -95
- package/demo/data/meter.js +0 -114
- package/demo/data/meter.js.map +0 -1
- package/demo/data/pie.d.ts +0 -46
- package/demo/data/pie.js +0 -55
- package/demo/data/pie.js.map +0 -1
- package/demo/data/radar.d.ts +0 -63
- package/demo/data/radar.js +0 -118
- package/demo/data/radar.js.map +0 -1
- package/demo/data/scatter.d.ts +0 -118
- package/demo/data/scatter.js +0 -143
- package/demo/data/scatter.js.map +0 -1
- package/demo/data/step.d.ts +0 -96
- package/demo/data/step.js +0 -27
- package/demo/data/step.js.map +0 -1
- package/demo/data/time-series-axis.d.ts +0 -368
- package/demo/data/time-series-axis.js +0 -436
- package/demo/data/time-series-axis.js.map +0 -1
- package/demo/data/toolbar.d.ts +0 -12
- package/demo/data/toolbar.js +0 -67
- package/demo/data/toolbar.js.map +0 -1
- package/demo/data/tree.d.ts +0 -30
- package/demo/data/tree.js +0 -209
- package/demo/data/tree.js.map +0 -1
- package/demo/data/treemap.d.ts +0 -15
- package/demo/data/treemap.js +0 -93
- package/demo/data/treemap.js.map +0 -1
- package/demo/data/wordcloud.d.ts +0 -14
- package/demo/data/wordcloud.js +0 -105
- package/demo/data/wordcloud.js.map +0 -1
- package/demo/data/zoom-bar.d.ts +0 -94
- package/demo/data/zoom-bar.js +0 -187
- package/demo/data/zoom-bar.js.map +0 -1
- package/demo/styles.css +0 -31006
- package/demo/styles.css.map +0 -1
- package/demo/styles.min.css +0 -1
- package/demo/styles.min.css.map +0 -1
- package/demo/tsconfig.tsbuildinfo +0 -1432
- package/demo/utils.d.ts +0 -24
- package/demo/utils.js +0 -194
- package/demo/utils.js.map +0 -1
- package/index.d.ts +0 -4
- package/index.js +0 -6
- package/index.js.map +0 -1
- package/interfaces/a11y.js +0 -14
- package/interfaces/a11y.js.map +0 -1
- package/interfaces/axis-scales.d.ts +0 -201
- package/interfaces/axis-scales.js +0 -1
- package/interfaces/axis-scales.js.map +0 -1
- package/interfaces/charts.d.ts +0 -485
- package/interfaces/charts.js +0 -1
- package/interfaces/charts.js.map +0 -1
- package/interfaces/components.d.ts +0 -231
- package/interfaces/components.js +0 -1
- package/interfaces/components.js.map +0 -1
- package/interfaces/enums.d.ts +0 -249
- package/interfaces/enums.js +0 -280
- package/interfaces/enums.js.map +0 -1
- package/interfaces/events.d.ts +0 -230
- package/interfaces/events.js +0 -259
- package/interfaces/events.js.map +0 -1
- package/interfaces/index.d.ts +0 -7
- package/interfaces/index.js +0 -3
- package/interfaces/index.js.map +0 -1
- package/interfaces/layout.d.ts +0 -15
- package/interfaces/layout.js +0 -1
- package/interfaces/layout.js.map +0 -1
- package/interfaces/model.d.ts +0 -35
- package/interfaces/model.js +0 -1
- package/interfaces/model.js.map +0 -1
- package/interfaces/truncation.d.ts +0 -17
- package/interfaces/truncation.js +0 -1
- package/interfaces/truncation.js.map +0 -1
- package/model/alluvial.js +0 -47
- package/model/alluvial.js.map +0 -1
- package/model/binned-charts.d.ts +0 -7
- package/model/binned-charts.js +0 -52
- package/model/binned-charts.js.map +0 -1
- package/model/boxplot.js +0 -174
- package/model/boxplot.js.map +0 -1
- package/model/bullet.js +0 -74
- package/model/bullet.js.map +0 -1
- package/model/cartesian-charts.d.ts +0 -24
- package/model/cartesian-charts.js +0 -202
- package/model/cartesian-charts.js.map +0 -1
- package/model/circle-pack.js +0 -189
- package/model/circle-pack.js.map +0 -1
- package/model/gauge.js +0 -51
- package/model/gauge.js.map +0 -1
- package/model/heatmap.d.ts +0 -57
- package/model/heatmap.js +0 -281
- package/model/heatmap.js.map +0 -1
- package/model/meter.d.ts +0 -19
- package/model/meter.js +0 -118
- package/model/meter.js.map +0 -1
- package/model/model.d.ts +0 -107
- package/model/model.js +0 -712
- package/model/model.js.map +0 -1
- package/model/pie.js +0 -66
- package/model/pie.js.map +0 -1
- package/model/radar.js +0 -52
- package/model/radar.js.map +0 -1
- package/model/tree.js +0 -56
- package/model/tree.js.map +0 -1
- package/model/treemap.js +0 -44
- package/model/treemap.js.map +0 -1
- package/model/wordcloud.js +0 -47
- package/model/wordcloud.js.map +0 -1
- package/polyfills.d.ts +0 -0
- package/polyfills.js +0 -29
- package/polyfills.js.map +0 -1
- package/services/angle-utils.d.ts +0 -16
- package/services/angle-utils.js +0 -82
- package/services/angle-utils.js.map +0 -1
- package/services/canvas-zoom.js +0 -72
- package/services/canvas-zoom.js.map +0 -1
- package/services/curves.d.ts +0 -25
- package/services/curves.js +0 -77
- package/services/curves.js.map +0 -1
- package/services/essentials/dom-utils.d.ts +0 -39
- package/services/essentials/dom-utils.js +0 -423
- package/services/essentials/dom-utils.js.map +0 -1
- package/services/essentials/events.d.ts +0 -8
- package/services/essentials/events.js +0 -53
- package/services/essentials/events.js.map +0 -1
- package/services/essentials/files.d.ts +0 -6
- package/services/essentials/files.js +0 -60
- package/services/essentials/files.js.map +0 -1
- package/services/essentials/gradient-utils.d.ts +0 -6
- package/services/essentials/gradient-utils.js +0 -85
- package/services/essentials/gradient-utils.js.map +0 -1
- package/services/essentials/transitions.d.ts +0 -13
- package/services/essentials/transitions.js +0 -51
- package/services/essentials/transitions.js.map +0 -1
- package/services/index.d.ts +0 -9
- package/services/index.js +0 -12
- package/services/index.js.map +0 -1
- package/services/scales-cartesian.d.ts +0 -86
- package/services/scales-cartesian.js +0 -656
- package/services/scales-cartesian.js.map +0 -1
- package/services/service.d.ts +0 -10
- package/services/service.js +0 -24
- package/services/service.js.map +0 -1
- package/services/time-series.js +0 -147
- package/services/time-series.js.map +0 -1
- package/services/zoom.d.ts +0 -21
- package/services/zoom.js +0 -217
- package/services/zoom.js.map +0 -1
- package/styles/_chart-holder.scss +0 -50
- package/styles/color-palatte.scss +0 -362
- package/styles/colors.scss +0 -140
- package/styles/components/_color-legend.scss +0 -11
- package/styles/components/_edge.scss +0 -65
- package/styles/components/_grid.scss +0 -30
- package/styles/components/_marker.scss +0 -7
- package/styles/components/_meter-title.scss +0 -37
- package/styles/components/_tooltip.scss +0 -132
- package/styles/components/diagrams/_card-node.scss +0 -97
- package/styles/components/diagrams/_edge.scss +0 -66
- package/styles/components/diagrams/_shape-node.scss +0 -89
- package/styles/components/diagrams/index.scss +0 -4
- package/styles/graphs/_alluvial.scss +0 -17
- package/styles/graphs/_bullet.scss +0 -36
- package/styles/graphs/_circle-pack.scss +0 -36
- package/styles/graphs/_gauge.scss +0 -23
- package/styles/graphs/_heatmap.scss +0 -60
- package/styles/graphs/_meter.scss +0 -34
- package/styles/graphs/_radar.scss +0 -18
- package/styles/graphs/_scatter-stacked.scss +0 -12
- package/styles/graphs/_tree.scss +0 -47
- package/styles/graphs/index.scss +0 -18
- package/styles/styles.scss +0 -35
- package/styles/tokens.scss +0 -416
- package/styles.css +0 -6313
- package/styles.css.map +0 -1
- package/styles.min.css +0 -1
- package/styles.min.css.map +0 -1
- package/tools.d.ts +0 -144
- package/tools.js +0 -348
- package/tools.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -3444
- /package/{components → dist/components}/axes/hover-axis.d.ts +0 -0
- /package/{components → dist/components}/axes/ruler-stacked.d.ts +0 -0
- /package/{components → dist/components}/diagrams/markerDefinitions.d.ts +0 -0
- /package/{components → dist/components}/essentials/tooltip-axis.d.ts +0 -0
- /package/{interfaces → dist/interfaces}/a11y.d.ts +0 -0
- /package/{model → dist/model}/alluvial.d.ts +0 -0
- /package/{model → dist/model}/boxplot.d.ts +0 -0
- /package/{model → dist/model}/bullet.d.ts +0 -0
- /package/{model → dist/model}/circle-pack.d.ts +0 -0
- /package/{model → dist/model}/gauge.d.ts +0 -0
- /package/{model → dist/model}/pie.d.ts +0 -0
- /package/{model → dist/model}/radar.d.ts +0 -0
- /package/{model → dist/model}/tree.d.ts +0 -0
- /package/{model → dist/model}/treemap.d.ts +0 -0
- /package/{model → dist/model}/wordcloud.d.ts +0 -0
- /package/{services → dist/services}/canvas-zoom.d.ts +0 -0
- /package/{services → dist/services}/time-series.d.ts +0 -0
- /package/{styles → dist/styles}/_type.scss +0 -0
- /package/{styles → dist/styles}/components/_axis.scss +0 -0
- /package/{styles → dist/styles}/components/_callouts.scss +0 -0
- /package/{styles → dist/styles}/components/_grid-brush.scss +0 -0
- /package/{styles → dist/styles}/components/_highlights.scss +0 -0
- /package/{styles → dist/styles}/components/_layout.scss +0 -0
- /package/{styles → dist/styles}/components/_legend.scss +0 -0
- /package/{styles → dist/styles}/components/_modal.scss +0 -0
- /package/{styles → dist/styles}/components/_ruler.scss +0 -0
- /package/{styles → dist/styles}/components/_skeleton-lines.scss +0 -0
- /package/{styles → dist/styles}/components/_skeleton.scss +0 -0
- /package/{styles → dist/styles}/components/_threshold.scss +0 -0
- /package/{styles → dist/styles}/components/_title.scss +0 -0
- /package/{styles → dist/styles}/components/_toolbar.scss +0 -0
- /package/{styles → dist/styles}/components/_zero-line.scss +0 -0
- /package/{styles → dist/styles}/components/_zoom-bar.scss +0 -0
- /package/{styles → dist/styles}/components/diagrams/_marker.scss +0 -0
- /package/{styles → dist/styles}/components/index.scss +0 -0
- /package/{styles → dist/styles}/graphs/_area.scss +0 -0
- /package/{styles → dist/styles}/graphs/_bubble.scss +0 -0
- /package/{styles → dist/styles}/graphs/_donut.scss +0 -0
- /package/{styles → dist/styles}/graphs/_line.scss +0 -0
- /package/{styles → dist/styles}/graphs/_lollipop.scss +0 -0
- /package/{styles → dist/styles}/graphs/_pie.scss +0 -0
- /package/{styles → dist/styles}/graphs/_scatter.scss +0 -0
- /package/{styles → dist/styles}/graphs/_treemap.scss +0 -0
- /package/{styles → dist/styles}/graphs/_wordcloud.scss +0 -0
package/charts/heatmap.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
15
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
16
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
17
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
18
|
-
r[k] = a[j];
|
|
19
|
-
return r;
|
|
20
|
-
};
|
|
21
|
-
// Internal Imports
|
|
22
|
-
import { HeatmapModel } from '../model/heatmap';
|
|
23
|
-
import { AxisChart } from '../axis-chart';
|
|
24
|
-
import * as Configuration from '../configuration';
|
|
25
|
-
import * as Tools from '../tools';
|
|
26
|
-
import { LayoutDirection, LayoutGrowth, RenderTypes, LayoutAlignItems, } from '../interfaces/index';
|
|
27
|
-
import { Heatmap, TwoDimensionalAxes, Modal, LayoutComponent, ColorScaleLegend, Title, AxisChartsTooltip, Spacer, Toolbar, } from '../components';
|
|
28
|
-
var HeatmapChart = /** @class */ (function (_super) {
|
|
29
|
-
__extends(HeatmapChart, _super);
|
|
30
|
-
function HeatmapChart(holder, chartConfigs) {
|
|
31
|
-
var _this = _super.call(this, holder, chartConfigs) || this;
|
|
32
|
-
_this.model = new HeatmapModel(_this.services);
|
|
33
|
-
// Merge the default options for this chart
|
|
34
|
-
// With the user provided options
|
|
35
|
-
_this.model.setOptions(Tools.mergeDefaultChartOptions(Configuration.options.heatmapChart, chartConfigs.options));
|
|
36
|
-
// Initialize data, services, components etc.
|
|
37
|
-
_this.init(holder, chartConfigs);
|
|
38
|
-
return _this;
|
|
39
|
-
}
|
|
40
|
-
// Custom getChartComponents - Implements getChartComponents
|
|
41
|
-
// Removes zoombar support and additional `features` that are not supported in heatmap
|
|
42
|
-
HeatmapChart.prototype.getAxisChartComponents = function (graphFrameComponents, configs) {
|
|
43
|
-
var options = this.model.getOptions();
|
|
44
|
-
var toolbarEnabled = Tools.getProperty(options, 'toolbar', 'enabled');
|
|
45
|
-
this.services.cartesianScales.determineAxisDuality();
|
|
46
|
-
this.services.cartesianScales.findDomainAndRangeAxes(); // need to do this before getMainXAxisPosition()
|
|
47
|
-
this.services.cartesianScales.determineOrientation();
|
|
48
|
-
var titleAvailable = !!this.model.getOptions().title;
|
|
49
|
-
var titleComponent = {
|
|
50
|
-
id: 'title',
|
|
51
|
-
components: [new Title(this.model, this.services)],
|
|
52
|
-
growth: LayoutGrowth.STRETCH,
|
|
53
|
-
};
|
|
54
|
-
var toolbarComponent = {
|
|
55
|
-
id: 'toolbar',
|
|
56
|
-
components: [new Toolbar(this.model, this.services)],
|
|
57
|
-
growth: LayoutGrowth.PREFERRED,
|
|
58
|
-
};
|
|
59
|
-
var headerComponent = {
|
|
60
|
-
id: 'header',
|
|
61
|
-
components: [
|
|
62
|
-
new LayoutComponent(this.model, this.services, __spreadArrays([
|
|
63
|
-
// always add title to keep layout correct
|
|
64
|
-
titleComponent
|
|
65
|
-
], (toolbarEnabled ? [toolbarComponent] : [])), {
|
|
66
|
-
direction: LayoutDirection.ROW,
|
|
67
|
-
alignItems: LayoutAlignItems.CENTER,
|
|
68
|
-
}),
|
|
69
|
-
],
|
|
70
|
-
growth: LayoutGrowth.PREFERRED,
|
|
71
|
-
};
|
|
72
|
-
var legendComponent = {
|
|
73
|
-
id: 'legend',
|
|
74
|
-
components: [new ColorScaleLegend(this.model, this.services)],
|
|
75
|
-
growth: LayoutGrowth.PREFERRED,
|
|
76
|
-
renderType: RenderTypes.SVG,
|
|
77
|
-
};
|
|
78
|
-
var graphFrameComponent = {
|
|
79
|
-
id: 'graph-frame',
|
|
80
|
-
components: graphFrameComponents,
|
|
81
|
-
growth: LayoutGrowth.STRETCH,
|
|
82
|
-
renderType: RenderTypes.SVG,
|
|
83
|
-
};
|
|
84
|
-
var isLegendEnabled = Tools.getProperty(configs, 'legend', 'enabled') !== false &&
|
|
85
|
-
this.model.getOptions().legend.enabled !== false;
|
|
86
|
-
// Decide the position of the legend in reference to the chart
|
|
87
|
-
var fullFrameComponentDirection = LayoutDirection.COLUMN_REVERSE;
|
|
88
|
-
var legendSpacerComponent = {
|
|
89
|
-
id: 'spacer',
|
|
90
|
-
components: [new Spacer(this.model, this.services, { size: 15 })],
|
|
91
|
-
growth: LayoutGrowth.PREFERRED,
|
|
92
|
-
};
|
|
93
|
-
var fullFrameComponent = {
|
|
94
|
-
id: 'full-frame',
|
|
95
|
-
components: [
|
|
96
|
-
new LayoutComponent(this.model, this.services, __spreadArrays((isLegendEnabled ? [legendComponent] : []), (isLegendEnabled ? [legendSpacerComponent] : []), [
|
|
97
|
-
graphFrameComponent,
|
|
98
|
-
]), {
|
|
99
|
-
direction: fullFrameComponentDirection,
|
|
100
|
-
}),
|
|
101
|
-
],
|
|
102
|
-
growth: LayoutGrowth.STRETCH,
|
|
103
|
-
};
|
|
104
|
-
var topLevelLayoutComponents = [];
|
|
105
|
-
// header component is required for either title or toolbar
|
|
106
|
-
if (titleAvailable || toolbarEnabled) {
|
|
107
|
-
topLevelLayoutComponents.push(headerComponent);
|
|
108
|
-
var titleSpacerComponent = {
|
|
109
|
-
id: 'spacer',
|
|
110
|
-
components: [
|
|
111
|
-
new Spacer(this.model, this.services, toolbarEnabled ? { size: 15 } : undefined),
|
|
112
|
-
],
|
|
113
|
-
growth: LayoutGrowth.PREFERRED,
|
|
114
|
-
};
|
|
115
|
-
topLevelLayoutComponents.push(titleSpacerComponent);
|
|
116
|
-
}
|
|
117
|
-
topLevelLayoutComponents.push(fullFrameComponent);
|
|
118
|
-
return [
|
|
119
|
-
new AxisChartsTooltip(this.model, this.services),
|
|
120
|
-
new Modal(this.model, this.services),
|
|
121
|
-
new LayoutComponent(this.model, this.services, topLevelLayoutComponents, {
|
|
122
|
-
direction: LayoutDirection.COLUMN,
|
|
123
|
-
}),
|
|
124
|
-
];
|
|
125
|
-
};
|
|
126
|
-
HeatmapChart.prototype.getComponents = function () {
|
|
127
|
-
// Specify what to render inside the graph-frame
|
|
128
|
-
var graphFrameComponents = [
|
|
129
|
-
new TwoDimensionalAxes(this.model, this.services),
|
|
130
|
-
new Heatmap(this.model, this.services),
|
|
131
|
-
];
|
|
132
|
-
var components = this.getAxisChartComponents(graphFrameComponents);
|
|
133
|
-
return components;
|
|
134
|
-
};
|
|
135
|
-
return HeatmapChart;
|
|
136
|
-
}(AxisChart));
|
|
137
|
-
export { HeatmapChart };
|
|
138
|
-
//# sourceMappingURL=../../src/charts/heatmap.js.map
|
package/charts/heatmap.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heatmap.js","sourceRoot":"","sources":["heatmap.ts"],"names":[],"mappings":"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","sourcesContent":["// Internal Imports\nimport { HeatmapModel } from '../model/heatmap';\nimport { AxisChart } from '../axis-chart';\nimport * as Configuration from '../configuration';\nimport * as Tools from '../tools';\n\nimport {\n\tHeatmapChartOptions,\n\tLayoutDirection,\n\tLayoutGrowth,\n\tChartConfig,\n\tRenderTypes,\n\tLayoutAlignItems,\n} from '../interfaces/index';\n\nimport {\n\tHeatmap,\n\tTwoDimensionalAxes,\n\tModal,\n\tLayoutComponent,\n\tColorScaleLegend,\n\tTitle,\n\tAxisChartsTooltip,\n\tSpacer,\n\tToolbar,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tTooltip,\n} from '../components';\n\nexport class HeatmapChart extends AxisChart {\n\tmodel = new HeatmapModel(this.services);\n\n\tconstructor(\n\t\tholder: Element,\n\t\tchartConfigs: ChartConfig<HeatmapChartOptions>\n\t) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.heatmapChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\t// Custom getChartComponents - Implements getChartComponents\n\t// Removes zoombar support and additional `features` that are not supported in heatmap\n\tprotected getAxisChartComponents(\n\t\tgraphFrameComponents: any[],\n\t\tconfigs?: any\n\t) {\n\t\tconst options = this.model.getOptions();\n\t\tconst toolbarEnabled = Tools.getProperty(options, 'toolbar', 'enabled');\n\n\t\tthis.services.cartesianScales.determineAxisDuality();\n\t\tthis.services.cartesianScales.findDomainAndRangeAxes(); // need to do this before getMainXAxisPosition()\n\t\tthis.services.cartesianScales.determineOrientation();\n\n\t\tconst titleAvailable = !!this.model.getOptions().title;\n\t\tconst titleComponent = {\n\t\t\tid: 'title',\n\t\t\tcomponents: [new Title(this.model, this.services)],\n\t\t\tgrowth: LayoutGrowth.STRETCH,\n\t\t};\n\n\t\tconst toolbarComponent = {\n\t\t\tid: 'toolbar',\n\t\t\tcomponents: [new Toolbar(this.model, this.services)],\n\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t};\n\n\t\tconst headerComponent = {\n\t\t\tid: 'header',\n\t\t\tcomponents: [\n\t\t\t\tnew LayoutComponent(\n\t\t\t\t\tthis.model,\n\t\t\t\t\tthis.services,\n\t\t\t\t\t[\n\t\t\t\t\t\t// always add title to keep layout correct\n\t\t\t\t\t\ttitleComponent,\n\t\t\t\t\t\t...(toolbarEnabled ? [toolbarComponent] : []),\n\t\t\t\t\t],\n\t\t\t\t\t{\n\t\t\t\t\t\tdirection: LayoutDirection.ROW,\n\t\t\t\t\t\talignItems: LayoutAlignItems.CENTER,\n\t\t\t\t\t}\n\t\t\t\t),\n\t\t\t],\n\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t};\n\n\t\tconst legendComponent = {\n\t\t\tid: 'legend',\n\t\t\tcomponents: [new ColorScaleLegend(this.model, this.services)],\n\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t\trenderType: RenderTypes.SVG,\n\t\t};\n\n\t\tconst graphFrameComponent = {\n\t\t\tid: 'graph-frame',\n\t\t\tcomponents: graphFrameComponents,\n\t\t\tgrowth: LayoutGrowth.STRETCH,\n\t\t\trenderType: RenderTypes.SVG,\n\t\t};\n\n\t\tconst isLegendEnabled =\n\t\t\tTools.getProperty(configs, 'legend', 'enabled') !== false &&\n\t\t\tthis.model.getOptions().legend.enabled !== false;\n\n\t\t// Decide the position of the legend in reference to the chart\n\t\tconst fullFrameComponentDirection = LayoutDirection.COLUMN_REVERSE;\n\n\t\tconst legendSpacerComponent = {\n\t\t\tid: 'spacer',\n\t\t\tcomponents: [new Spacer(this.model, this.services, { size: 15 })],\n\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t};\n\n\t\tconst fullFrameComponent = {\n\t\t\tid: 'full-frame',\n\t\t\tcomponents: [\n\t\t\t\tnew LayoutComponent(\n\t\t\t\t\tthis.model,\n\t\t\t\t\tthis.services,\n\t\t\t\t\t[\n\t\t\t\t\t\t...(isLegendEnabled ? [legendComponent] : []),\n\t\t\t\t\t\t...(isLegendEnabled ? [legendSpacerComponent] : []),\n\t\t\t\t\t\tgraphFrameComponent,\n\t\t\t\t\t],\n\t\t\t\t\t{\n\t\t\t\t\t\tdirection: fullFrameComponentDirection,\n\t\t\t\t\t}\n\t\t\t\t),\n\t\t\t],\n\t\t\tgrowth: LayoutGrowth.STRETCH,\n\t\t};\n\n\t\tconst topLevelLayoutComponents = [];\n\t\t// header component is required for either title or toolbar\n\t\tif (titleAvailable || toolbarEnabled) {\n\t\t\ttopLevelLayoutComponents.push(headerComponent);\n\n\t\t\tconst titleSpacerComponent = {\n\t\t\t\tid: 'spacer',\n\t\t\t\tcomponents: [\n\t\t\t\t\tnew Spacer(\n\t\t\t\t\t\tthis.model,\n\t\t\t\t\t\tthis.services,\n\t\t\t\t\t\ttoolbarEnabled ? { size: 15 } : undefined\n\t\t\t\t\t),\n\t\t\t\t],\n\t\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t\t};\n\n\t\t\ttopLevelLayoutComponents.push(titleSpacerComponent);\n\t\t}\n\t\ttopLevelLayoutComponents.push(fullFrameComponent);\n\n\t\treturn [\n\t\t\tnew AxisChartsTooltip(this.model, this.services),\n\t\t\tnew Modal(this.model, this.services),\n\t\t\tnew LayoutComponent(\n\t\t\t\tthis.model,\n\t\t\t\tthis.services,\n\t\t\t\ttopLevelLayoutComponents,\n\t\t\t\t{\n\t\t\t\t\tdirection: LayoutDirection.COLUMN,\n\t\t\t\t}\n\t\t\t),\n\t\t];\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents = [\n\t\t\tnew TwoDimensionalAxes(this.model, this.services),\n\t\t\tnew Heatmap(this.model, this.services),\n\t\t];\n\n\t\tconst components: any[] = this.getAxisChartComponents(\n\t\t\tgraphFrameComponents\n\t\t);\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/histogram.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ChartModelBinned } from '../model/binned-charts';
|
|
2
|
-
import { AxisChart } from '../axis-chart';
|
|
3
|
-
import { ChartConfig, HistogramChartOptions } from '../interfaces/index';
|
|
4
|
-
export declare class HistogramChart extends AxisChart {
|
|
5
|
-
model: ChartModelBinned;
|
|
6
|
-
constructor(holder: Element, chartConfigs: ChartConfig<HistogramChartOptions>);
|
|
7
|
-
getComponents(): any[];
|
|
8
|
-
}
|
package/charts/histogram.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
// Internal Imports
|
|
15
|
-
import { ChartModelBinned } from '../model/binned-charts';
|
|
16
|
-
import { AxisChart } from '../axis-chart';
|
|
17
|
-
import * as Configuration from '../configuration';
|
|
18
|
-
import * as Tools from '../tools';
|
|
19
|
-
// Components
|
|
20
|
-
import { Grid, Histogram, BinnedRuler, TwoDimensionalAxes, } from '../components/index';
|
|
21
|
-
var HistogramChart = /** @class */ (function (_super) {
|
|
22
|
-
__extends(HistogramChart, _super);
|
|
23
|
-
function HistogramChart(holder, chartConfigs) {
|
|
24
|
-
var _this = _super.call(this, holder, chartConfigs) || this;
|
|
25
|
-
_this.model = new ChartModelBinned(_this.services);
|
|
26
|
-
// Merge the default options for this chart
|
|
27
|
-
// With the user provided options
|
|
28
|
-
_this.model.setOptions(Tools.mergeDefaultChartOptions(Configuration.options.histogramChart, chartConfigs.options));
|
|
29
|
-
// Initialize data, services, components etc.
|
|
30
|
-
_this.init(holder, chartConfigs);
|
|
31
|
-
_this.update();
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
HistogramChart.prototype.getComponents = function () {
|
|
35
|
-
// Specify what to render inside the graph-frame
|
|
36
|
-
var graphFrameComponents = [
|
|
37
|
-
new TwoDimensionalAxes(this.model, this.services),
|
|
38
|
-
new Grid(this.model, this.services),
|
|
39
|
-
new BinnedRuler(this.model, this.services),
|
|
40
|
-
new Histogram(this.model, this.services),
|
|
41
|
-
];
|
|
42
|
-
var components = this.getAxisChartComponents(graphFrameComponents);
|
|
43
|
-
return components;
|
|
44
|
-
};
|
|
45
|
-
return HistogramChart;
|
|
46
|
-
}(AxisChart));
|
|
47
|
-
export { HistogramChart };
|
|
48
|
-
//# sourceMappingURL=../../src/charts/histogram.js.map
|
package/charts/histogram.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"histogram.js","sourceRoot":"","sources":["histogram.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAElC,aAAa;AACb,OAAO,EACN,IAAI,EACJ,SAAS,EACT,WAAW,EACX,kBAAkB,GAKlB,MAAM,qBAAqB,CAAC;AAE7B;IAAoC,kCAAS;IAG5C,wBACC,MAAe,EACf,YAAgD;QAFjD,YAIC,kBAAM,MAAM,EAAE,YAAY,CAAC,SAe3B;QArBD,WAAK,GAAG,IAAI,gBAAgB,CAAC,KAAI,CAAC,QAAQ,CAAC,CAAC;QAQ3C,2CAA2C;QAC3C,iCAAiC;QACjC,KAAI,CAAC,KAAK,CAAC,UAAU,CACpB,KAAK,CAAC,wBAAwB,CAC7B,aAAa,CAAC,OAAO,CAAC,cAAc,EACpC,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QAEF,6CAA6C;QAC7C,KAAI,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;QAEhC,KAAI,CAAC,MAAM,EAAE,CAAC;;IACf,CAAC;IAED,sCAAa,GAAb;QACC,gDAAgD;QAChD,IAAM,oBAAoB,GAAG;YAC5B,IAAI,kBAAkB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YACjD,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YACnC,IAAI,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YAC1C,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;SACxC,CAAC;QAEF,IAAM,UAAU,GAAU,IAAI,CAAC,sBAAsB,CACpD,oBAAoB,CACpB,CAAC;QAEF,OAAO,UAAU,CAAC;IACnB,CAAC;IACF,qBAAC;AAAD,CAAC,AAvCD,CAAoC,SAAS,GAuC5C","sourcesContent":["// Internal Imports\nimport { ChartModelBinned } from '../model/binned-charts';\nimport { AxisChart } from '../axis-chart';\nimport * as Configuration from '../configuration';\nimport { ChartConfig, HistogramChartOptions } from '../interfaces/index';\nimport * as Tools from '../tools';\n\n// Components\nimport {\n\tGrid,\n\tHistogram,\n\tBinnedRuler,\n\tTwoDimensionalAxes,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tTooltip,\n\tLegend,\n\tLayoutComponent,\n} from '../components/index';\n\nexport class HistogramChart extends AxisChart {\n\tmodel = new ChartModelBinned(this.services);\n\n\tconstructor(\n\t\tholder: Element,\n\t\tchartConfigs: ChartConfig<HistogramChartOptions>\n\t) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.histogramChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\n\t\tthis.update();\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents = [\n\t\t\tnew TwoDimensionalAxes(this.model, this.services),\n\t\t\tnew Grid(this.model, this.services),\n\t\t\tnew BinnedRuler(this.model, this.services),\n\t\t\tnew Histogram(this.model, this.services),\n\t\t];\n\n\t\tconst components: any[] = this.getAxisChartComponents(\n\t\t\tgraphFrameComponents\n\t\t);\n\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export * from './area';
|
|
2
|
-
export * from './area-stacked';
|
|
3
|
-
export * from './bar-simple';
|
|
4
|
-
export * from './bar-grouped';
|
|
5
|
-
export * from './bar-stacked';
|
|
6
|
-
export * from './boxplot';
|
|
7
|
-
export * from './bubble';
|
|
8
|
-
export * from './bullet';
|
|
9
|
-
export * from './histogram';
|
|
10
|
-
export * from './line';
|
|
11
|
-
export * from './lollipop';
|
|
12
|
-
export * from './scatter';
|
|
13
|
-
export * from './pie';
|
|
14
|
-
export * from './donut';
|
|
15
|
-
export * from './meter';
|
|
16
|
-
export * from './radar';
|
|
17
|
-
export * from './gauge';
|
|
18
|
-
export * from './combo';
|
|
19
|
-
export * from './tree';
|
|
20
|
-
export * from './treemap';
|
|
21
|
-
export * from './circle-pack';
|
|
22
|
-
export * from './wordcloud';
|
|
23
|
-
export * from './alluvial';
|
|
24
|
-
export * from './heatmap';
|
package/charts/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export * from './area';
|
|
2
|
-
export * from './area-stacked';
|
|
3
|
-
export * from './bar-simple';
|
|
4
|
-
export * from './bar-grouped';
|
|
5
|
-
export * from './bar-stacked';
|
|
6
|
-
export * from './boxplot';
|
|
7
|
-
export * from './bubble';
|
|
8
|
-
export * from './bullet';
|
|
9
|
-
export * from './histogram';
|
|
10
|
-
export * from './line';
|
|
11
|
-
export * from './lollipop';
|
|
12
|
-
export * from './scatter';
|
|
13
|
-
export * from './pie';
|
|
14
|
-
export * from './donut';
|
|
15
|
-
export * from './meter';
|
|
16
|
-
export * from './radar';
|
|
17
|
-
export * from './gauge';
|
|
18
|
-
export * from './combo';
|
|
19
|
-
export * from './tree';
|
|
20
|
-
export * from './treemap';
|
|
21
|
-
export * from './circle-pack';
|
|
22
|
-
export * from './wordcloud';
|
|
23
|
-
export * from './alluvial';
|
|
24
|
-
export * from './heatmap';
|
|
25
|
-
//# sourceMappingURL=../../src/charts/index.js.map
|
package/charts/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC","sourcesContent":["export * from './area';\nexport * from './area-stacked';\nexport * from './bar-simple';\nexport * from './bar-grouped';\nexport * from './bar-stacked';\nexport * from './boxplot';\nexport * from './bubble';\nexport * from './bullet';\nexport * from './histogram';\nexport * from './line';\nexport * from './lollipop';\nexport * from './scatter';\nexport * from './pie';\nexport * from './donut';\nexport * from './meter';\nexport * from './radar';\nexport * from './gauge';\nexport * from './combo';\nexport * from './tree';\nexport * from './treemap';\nexport * from './circle-pack';\nexport * from './wordcloud';\nexport * from './alluvial';\nexport * from './heatmap';\n"]}
|
package/charts/line.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AxisChart } from '../axis-chart';
|
|
2
|
-
import { ChartConfig, LineChartOptions } from '../interfaces/index';
|
|
3
|
-
export declare class LineChart extends AxisChart {
|
|
4
|
-
constructor(holder: Element, chartConfigs: ChartConfig<LineChartOptions>);
|
|
5
|
-
getComponents(): any[];
|
|
6
|
-
}
|
package/charts/line.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
// Internal Imports
|
|
15
|
-
import { AxisChart } from '../axis-chart';
|
|
16
|
-
import * as Configuration from '../configuration';
|
|
17
|
-
import * as Tools from '../tools';
|
|
18
|
-
// Components
|
|
19
|
-
import { Grid, Line, Ruler, Scatter, TwoDimensionalAxes, ZeroLine, SkeletonLines, } from '../components/index';
|
|
20
|
-
var LineChart = /** @class */ (function (_super) {
|
|
21
|
-
__extends(LineChart, _super);
|
|
22
|
-
function LineChart(holder, chartConfigs) {
|
|
23
|
-
var _this = _super.call(this, holder, chartConfigs) || this;
|
|
24
|
-
// Merge the default options for this chart
|
|
25
|
-
// With the user provided options
|
|
26
|
-
_this.model.setOptions(Tools.mergeDefaultChartOptions(Configuration.options.lineChart, chartConfigs.options));
|
|
27
|
-
// Initialize data, services, components etc.
|
|
28
|
-
_this.init(holder, chartConfigs);
|
|
29
|
-
return _this;
|
|
30
|
-
}
|
|
31
|
-
LineChart.prototype.getComponents = function () {
|
|
32
|
-
// Specify what to render inside the graph-frame
|
|
33
|
-
var graphFrameComponents = [
|
|
34
|
-
new TwoDimensionalAxes(this.model, this.services),
|
|
35
|
-
new Grid(this.model, this.services),
|
|
36
|
-
new Ruler(this.model, this.services),
|
|
37
|
-
new Line(this.model, this.services),
|
|
38
|
-
new Scatter(this.model, this.services, { handleThresholds: true }),
|
|
39
|
-
new SkeletonLines(this.model, this.services),
|
|
40
|
-
new ZeroLine(this.model, this.services),
|
|
41
|
-
];
|
|
42
|
-
var components = this.getAxisChartComponents(graphFrameComponents);
|
|
43
|
-
return components;
|
|
44
|
-
};
|
|
45
|
-
return LineChart;
|
|
46
|
-
}(AxisChart));
|
|
47
|
-
export { LineChart };
|
|
48
|
-
//# sourceMappingURL=../../src/charts/line.js.map
|
package/charts/line.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"line.js","sourceRoot":"","sources":["line.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAGlC,aAAa;AACb,OAAO,EACN,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,OAAO,EACP,kBAAkB,EAClB,QAAQ,EAKR,aAAa,GACb,MAAM,qBAAqB,CAAC;AAE7B;IAA+B,6BAAS;IACvC,mBAAY,MAAe,EAAE,YAA2C;QAAxE,YACC,kBAAM,MAAM,EAAE,YAAY,CAAC,SAa3B;QAXA,2CAA2C;QAC3C,iCAAiC;QACjC,KAAI,CAAC,KAAK,CAAC,UAAU,CACpB,KAAK,CAAC,wBAAwB,CAC7B,aAAa,CAAC,OAAO,CAAC,SAAS,EAC/B,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QAEF,6CAA6C;QAC7C,KAAI,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;;IACjC,CAAC;IAED,iCAAa,GAAb;QACC,gDAAgD;QAChD,IAAM,oBAAoB,GAAU;YACnC,IAAI,kBAAkB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YACjD,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YACnC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YACpC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YACnC,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC;YAClE,IAAI,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YAC5C,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;SACvC,CAAC;QAEF,IAAM,UAAU,GAAU,IAAI,CAAC,sBAAsB,CACpD,oBAAoB,CACpB,CAAC;QACF,OAAO,UAAU,CAAC;IACnB,CAAC;IACF,gBAAC;AAAD,CAAC,AAlCD,CAA+B,SAAS,GAkCvC","sourcesContent":["// Internal Imports\nimport { AxisChart } from '../axis-chart';\nimport * as Configuration from '../configuration';\nimport { ChartConfig, LineChartOptions } from '../interfaces/index';\nimport * as Tools from '../tools';\nimport { Skeletons } from '../interfaces/enums';\n\n// Components\nimport {\n\tGrid,\n\tLine,\n\tRuler,\n\tScatter,\n\tTwoDimensionalAxes,\n\tZeroLine,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tTooltip,\n\tLegend,\n\tLayoutComponent,\n\tSkeletonLines,\n} from '../components/index';\n\nexport class LineChart extends AxisChart {\n\tconstructor(holder: Element, chartConfigs: ChartConfig<LineChartOptions>) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.lineChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents: any[] = [\n\t\t\tnew TwoDimensionalAxes(this.model, this.services),\n\t\t\tnew Grid(this.model, this.services),\n\t\t\tnew Ruler(this.model, this.services),\n\t\t\tnew Line(this.model, this.services),\n\t\t\tnew Scatter(this.model, this.services, { handleThresholds: true }),\n\t\t\tnew SkeletonLines(this.model, this.services),\n\t\t\tnew ZeroLine(this.model, this.services),\n\t\t];\n\n\t\tconst components: any[] = this.getAxisChartComponents(\n\t\t\tgraphFrameComponents\n\t\t);\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/lollipop.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AxisChart } from '../axis-chart';
|
|
2
|
-
import { ChartConfig, LollipopChartOptions } from '../interfaces/index';
|
|
3
|
-
export declare class LollipopChart extends AxisChart {
|
|
4
|
-
constructor(holder: Element, chartConfigs: ChartConfig<LollipopChartOptions>);
|
|
5
|
-
getComponents(): any[];
|
|
6
|
-
}
|
package/charts/lollipop.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
// Internal Imports
|
|
15
|
-
import { AxisChart } from '../axis-chart';
|
|
16
|
-
import * as Configuration from '../configuration';
|
|
17
|
-
import * as Tools from '../tools';
|
|
18
|
-
import { Skeletons } from '../interfaces/enums';
|
|
19
|
-
// Components
|
|
20
|
-
import { Grid, Ruler, Scatter, Lollipop, TwoDimensionalAxes, Skeleton, } from '../components/index';
|
|
21
|
-
var LollipopChart = /** @class */ (function (_super) {
|
|
22
|
-
__extends(LollipopChart, _super);
|
|
23
|
-
function LollipopChart(holder, chartConfigs) {
|
|
24
|
-
var _this = _super.call(this, holder, chartConfigs) || this;
|
|
25
|
-
// Merge the default options for this chart
|
|
26
|
-
// With the user provided options
|
|
27
|
-
_this.model.setOptions(Tools.mergeDefaultChartOptions(Configuration.options.lollipopChart, chartConfigs.options));
|
|
28
|
-
// Initialize data, services, components etc.
|
|
29
|
-
_this.init(holder, chartConfigs);
|
|
30
|
-
return _this;
|
|
31
|
-
}
|
|
32
|
-
LollipopChart.prototype.getComponents = function () {
|
|
33
|
-
// Specify what to render inside the graph-frame
|
|
34
|
-
var graphFrameComponents = [
|
|
35
|
-
new TwoDimensionalAxes(this.model, this.services),
|
|
36
|
-
new Grid(this.model, this.services),
|
|
37
|
-
new Ruler(this.model, this.services),
|
|
38
|
-
new Lollipop(this.model, this.services),
|
|
39
|
-
new Scatter(this.model, this.services),
|
|
40
|
-
new Skeleton(this.model, this.services, {
|
|
41
|
-
skeleton: Skeletons.GRID,
|
|
42
|
-
}),
|
|
43
|
-
];
|
|
44
|
-
var components = this.getAxisChartComponents(graphFrameComponents);
|
|
45
|
-
return components;
|
|
46
|
-
};
|
|
47
|
-
return LollipopChart;
|
|
48
|
-
}(AxisChart));
|
|
49
|
-
export { LollipopChart };
|
|
50
|
-
//# sourceMappingURL=../../src/charts/lollipop.js.map
|
package/charts/lollipop.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lollipop.js","sourceRoot":"","sources":["lollipop.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,aAAa;AACb,OAAO,EACN,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,kBAAkB,EAKlB,QAAQ,GACR,MAAM,qBAAqB,CAAC;AAE7B;IAAmC,iCAAS;IAC3C,uBACC,MAAe,EACf,YAA+C;QAFhD,YAIC,kBAAM,MAAM,EAAE,YAAY,CAAC,SAa3B;QAXA,2CAA2C;QAC3C,iCAAiC;QACjC,KAAI,CAAC,KAAK,CAAC,UAAU,CACpB,KAAK,CAAC,wBAAwB,CAC7B,aAAa,CAAC,OAAO,CAAC,aAAa,EACnC,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QAEF,6CAA6C;QAC7C,KAAI,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;;IACjC,CAAC;IAED,qCAAa,GAAb;QACC,gDAAgD;QAChD,IAAM,oBAAoB,GAAU;YACnC,IAAI,kBAAkB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YACjD,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YACnC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YACpC,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YACvC,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YACtC,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE;gBACvC,QAAQ,EAAE,SAAS,CAAC,IAAI;aACxB,CAAC;SACF,CAAC;QAEF,IAAM,UAAU,GAAU,IAAI,CAAC,sBAAsB,CACpD,oBAAoB,CACpB,CAAC;QACF,OAAO,UAAU,CAAC;IACnB,CAAC;IACF,oBAAC;AAAD,CAAC,AAtCD,CAAmC,SAAS,GAsC3C","sourcesContent":["// Internal Imports\nimport { AxisChart } from '../axis-chart';\nimport * as Configuration from '../configuration';\nimport { ChartConfig, LollipopChartOptions } from '../interfaces/index';\nimport * as Tools from '../tools';\nimport { Skeletons } from '../interfaces/enums';\n\n// Components\nimport {\n\tGrid,\n\tRuler,\n\tScatter,\n\tLollipop,\n\tTwoDimensionalAxes,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tTooltip,\n\tLegend,\n\tLayoutComponent,\n\tSkeleton,\n} from '../components/index';\n\nexport class LollipopChart extends AxisChart {\n\tconstructor(\n\t\tholder: Element,\n\t\tchartConfigs: ChartConfig<LollipopChartOptions>\n\t) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.lollipopChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents: any[] = [\n\t\t\tnew TwoDimensionalAxes(this.model, this.services),\n\t\t\tnew Grid(this.model, this.services),\n\t\t\tnew Ruler(this.model, this.services),\n\t\t\tnew Lollipop(this.model, this.services),\n\t\t\tnew Scatter(this.model, this.services),\n\t\t\tnew Skeleton(this.model, this.services, {\n\t\t\t\tskeleton: Skeletons.GRID,\n\t\t\t}),\n\t\t];\n\n\t\tconst components: any[] = this.getAxisChartComponents(\n\t\t\tgraphFrameComponents\n\t\t);\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/meter.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MeterChartModel } from '../model/meter';
|
|
2
|
-
import { Chart } from '../chart';
|
|
3
|
-
import { ChartConfig, MeterChartOptions } from '../interfaces/index';
|
|
4
|
-
export declare class MeterChart extends Chart {
|
|
5
|
-
model: MeterChartModel;
|
|
6
|
-
constructor(holder: Element, chartConfigs: ChartConfig<MeterChartOptions>);
|
|
7
|
-
getComponents(): any[];
|
|
8
|
-
}
|
package/charts/meter.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
15
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
16
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
17
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
18
|
-
r[k] = a[j];
|
|
19
|
-
return r;
|
|
20
|
-
};
|
|
21
|
-
// Internal Imports
|
|
22
|
-
import { MeterChartModel } from '../model/meter';
|
|
23
|
-
import { Chart } from '../chart';
|
|
24
|
-
import * as Configuration from '../configuration';
|
|
25
|
-
import { LayoutGrowth, LayoutDirection, RenderTypes, } from '../interfaces/index';
|
|
26
|
-
import * as Tools from '../tools';
|
|
27
|
-
import { Meter } from './../components/graphs/meter';
|
|
28
|
-
// Components
|
|
29
|
-
import { LayoutComponent, MeterTitle, Spacer, } from '../components/index';
|
|
30
|
-
var MeterChart = /** @class */ (function (_super) {
|
|
31
|
-
__extends(MeterChart, _super);
|
|
32
|
-
function MeterChart(holder, chartConfigs) {
|
|
33
|
-
var _this = _super.call(this, holder, chartConfigs) || this;
|
|
34
|
-
_this.model = new MeterChartModel(_this.services);
|
|
35
|
-
// use prop meter options or regular meter options
|
|
36
|
-
var options = chartConfigs.options.meter.proportional
|
|
37
|
-
? Tools.merge(Tools.clone(Configuration.options.proportionalMeterChart), chartConfigs.options)
|
|
38
|
-
: Tools.merge(Tools.clone(Configuration.options.meterChart), chartConfigs.options);
|
|
39
|
-
// Merge the default options for this chart
|
|
40
|
-
// With the user provided options
|
|
41
|
-
_this.model.setOptions(options);
|
|
42
|
-
// Initialize data, services, components etc.
|
|
43
|
-
_this.init(holder, chartConfigs);
|
|
44
|
-
return _this;
|
|
45
|
-
}
|
|
46
|
-
MeterChart.prototype.getComponents = function () {
|
|
47
|
-
var showLabels = Tools.getProperty(this.model.getOptions(), 'meter', 'showLabels');
|
|
48
|
-
var meterComponents = __spreadArrays((showLabels
|
|
49
|
-
? [
|
|
50
|
-
// Meter has a unique dataset title within the graph
|
|
51
|
-
{
|
|
52
|
-
id: 'meter-title',
|
|
53
|
-
components: [
|
|
54
|
-
new MeterTitle(this.model, this.services),
|
|
55
|
-
],
|
|
56
|
-
growth: LayoutGrowth.STRETCH,
|
|
57
|
-
renderType: RenderTypes.SVG,
|
|
58
|
-
},
|
|
59
|
-
// Create the title spacer
|
|
60
|
-
{
|
|
61
|
-
id: 'spacer',
|
|
62
|
-
components: [
|
|
63
|
-
new Spacer(this.model, this.services, {
|
|
64
|
-
size: 8,
|
|
65
|
-
}),
|
|
66
|
-
],
|
|
67
|
-
growth: LayoutGrowth.STRETCH,
|
|
68
|
-
},
|
|
69
|
-
]
|
|
70
|
-
: []), [
|
|
71
|
-
// Specify what to render inside the graph only
|
|
72
|
-
{
|
|
73
|
-
id: 'meter-graph',
|
|
74
|
-
components: [new Meter(this.model, this.services)],
|
|
75
|
-
growth: LayoutGrowth.STRETCH,
|
|
76
|
-
renderType: RenderTypes.SVG,
|
|
77
|
-
},
|
|
78
|
-
]);
|
|
79
|
-
// the graph frame for meter includes the custom title (and spacer)
|
|
80
|
-
var graphFrame = [
|
|
81
|
-
new LayoutComponent(this.model, this.services, meterComponents, {
|
|
82
|
-
direction: LayoutDirection.COLUMN,
|
|
83
|
-
}),
|
|
84
|
-
];
|
|
85
|
-
// add the meter title as a top level component
|
|
86
|
-
var components = this.getChartComponents(graphFrame, {
|
|
87
|
-
graphFrameRenderType: RenderTypes.HTML,
|
|
88
|
-
});
|
|
89
|
-
return components;
|
|
90
|
-
};
|
|
91
|
-
return MeterChart;
|
|
92
|
-
}(Chart));
|
|
93
|
-
export { MeterChart };
|
|
94
|
-
//# sourceMappingURL=../../src/charts/meter.js.map
|
package/charts/meter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meter.js","sourceRoot":"","sources":["meter.ts"],"names":[],"mappings":"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","sourcesContent":["// Internal Imports\nimport { MeterChartModel } from '../model/meter';\nimport { Chart } from '../chart';\nimport * as Configuration from '../configuration';\nimport {\n\tChartConfig,\n\tMeterChartOptions,\n\tLayoutGrowth,\n\tLayoutDirection,\n\tRenderTypes,\n} from '../interfaces/index';\nimport * as Tools from '../tools';\nimport { Meter } from './../components/graphs/meter';\n\n// Components\nimport {\n\tPie,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tTooltip,\n\tLegend,\n\tLayoutComponent,\n\tMeterTitle,\n\tSpacer,\n} from '../components/index';\n\nexport class MeterChart extends Chart {\n\tmodel = new MeterChartModel(this.services);\n\n\tconstructor(holder: Element, chartConfigs: ChartConfig<MeterChartOptions>) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// use prop meter options or regular meter options\n\t\tlet options = chartConfigs.options.meter.proportional\n\t\t\t? Tools.merge(\n\t\t\t\t\tTools.clone(Configuration.options.proportionalMeterChart),\n\t\t\t\t\tchartConfigs.options\n\t\t\t )\n\t\t\t: Tools.merge(\n\t\t\t\t\tTools.clone(Configuration.options.meterChart),\n\t\t\t\t\tchartConfigs.options\n\t\t\t );\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(options);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\tconst showLabels = Tools.getProperty(\n\t\t\tthis.model.getOptions(),\n\t\t\t'meter',\n\t\t\t'showLabels'\n\t\t);\n\t\tconst meterComponents = [\n\t\t\t...(showLabels\n\t\t\t\t? [\n\t\t\t\t\t\t// Meter has a unique dataset title within the graph\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tid: 'meter-title',\n\t\t\t\t\t\t\tcomponents: [\n\t\t\t\t\t\t\t\tnew MeterTitle(this.model, this.services),\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tgrowth: LayoutGrowth.STRETCH,\n\t\t\t\t\t\t\trenderType: RenderTypes.SVG,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t// Create the title spacer\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tid: 'spacer',\n\t\t\t\t\t\t\tcomponents: [\n\t\t\t\t\t\t\t\tnew Spacer(this.model, this.services, {\n\t\t\t\t\t\t\t\t\tsize: 8,\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tgrowth: LayoutGrowth.STRETCH,\n\t\t\t\t\t\t},\n\t\t\t\t ]\n\t\t\t\t: []),\n\t\t\t// Specify what to render inside the graph only\n\t\t\t{\n\t\t\t\tid: 'meter-graph',\n\t\t\t\tcomponents: [new Meter(this.model, this.services)],\n\t\t\t\tgrowth: LayoutGrowth.STRETCH,\n\t\t\t\trenderType: RenderTypes.SVG,\n\t\t\t},\n\t\t];\n\n\t\t// the graph frame for meter includes the custom title (and spacer)\n\t\tconst graphFrame = [\n\t\t\tnew LayoutComponent(this.model, this.services, meterComponents, {\n\t\t\t\tdirection: LayoutDirection.COLUMN,\n\t\t\t}),\n\t\t];\n\n\t\t// add the meter title as a top level component\n\t\tconst components: any[] = this.getChartComponents(graphFrame, {\n\t\t\tgraphFrameRenderType: RenderTypes.HTML,\n\t\t});\n\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/pie.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PieChartModel } from '../model/pie';
|
|
2
|
-
import { Chart } from '../chart';
|
|
3
|
-
import { ChartConfig, PieChartOptions } from '../interfaces/index';
|
|
4
|
-
export declare class PieChart extends Chart {
|
|
5
|
-
model: PieChartModel;
|
|
6
|
-
constructor(holder: Element, chartConfigs: ChartConfig<PieChartOptions>, extending?: boolean);
|
|
7
|
-
getComponents(): any[];
|
|
8
|
-
}
|
package/charts/pie.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
// Internal Imports
|
|
15
|
-
import { PieChartModel } from '../model/pie';
|
|
16
|
-
import { Chart } from '../chart';
|
|
17
|
-
import * as Configuration from '../configuration';
|
|
18
|
-
import * as Tools from '../tools';
|
|
19
|
-
import { Skeletons } from '../interfaces/enums';
|
|
20
|
-
// Components
|
|
21
|
-
import { Pie, Skeleton, } from '../components/index';
|
|
22
|
-
var PieChart = /** @class */ (function (_super) {
|
|
23
|
-
__extends(PieChart, _super);
|
|
24
|
-
// TODO - Optimize the use of "extending"
|
|
25
|
-
function PieChart(holder, chartConfigs, extending) {
|
|
26
|
-
if (extending === void 0) { extending = false; }
|
|
27
|
-
var _this = _super.call(this, holder, chartConfigs) || this;
|
|
28
|
-
_this.model = new PieChartModel(_this.services);
|
|
29
|
-
// TODO - Optimize the use of "extending"
|
|
30
|
-
if (extending) {
|
|
31
|
-
return _this;
|
|
32
|
-
}
|
|
33
|
-
// Merge the default options for this chart
|
|
34
|
-
// With the user provided options
|
|
35
|
-
_this.model.setOptions(Tools.mergeDefaultChartOptions(Configuration.options.pieChart, chartConfigs.options));
|
|
36
|
-
// Initialize data, services, components etc.
|
|
37
|
-
_this.init(holder, chartConfigs);
|
|
38
|
-
return _this;
|
|
39
|
-
}
|
|
40
|
-
PieChart.prototype.getComponents = function () {
|
|
41
|
-
// Specify what to render inside the graph-frame
|
|
42
|
-
var graphFrameComponents = [
|
|
43
|
-
new Pie(this.model, this.services),
|
|
44
|
-
new Skeleton(this.model, this.services, {
|
|
45
|
-
skeleton: Skeletons.PIE,
|
|
46
|
-
}),
|
|
47
|
-
];
|
|
48
|
-
// get the base chart components and export with tooltip
|
|
49
|
-
var components = this.getChartComponents(graphFrameComponents);
|
|
50
|
-
return components;
|
|
51
|
-
};
|
|
52
|
-
return PieChart;
|
|
53
|
-
}(Chart));
|
|
54
|
-
export { PieChart };
|
|
55
|
-
//# sourceMappingURL=../../src/charts/pie.js.map
|
package/charts/pie.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pie.js","sourceRoot":"","sources":["pie.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,aAAa;AACb,OAAO,EACN,GAAG,EAIH,QAAQ,GACR,MAAM,qBAAqB,CAAC;AAE7B;IAA8B,4BAAK;IAGlC,yCAAyC;IACzC,kBACC,MAAe,EACf,YAA0C,EAC1C,SAAiB;QAAjB,0BAAA,EAAA,iBAAiB;QAHlB,YAKC,kBAAM,MAAM,EAAE,YAAY,CAAC,SAkB3B;QA1BD,WAAK,GAAG,IAAI,aAAa,CAAC,KAAI,CAAC,QAAQ,CAAC,CAAC;QAUxC,yCAAyC;QACzC,IAAI,SAAS,EAAE;;SAEd;QAED,2CAA2C;QAC3C,iCAAiC;QACjC,KAAI,CAAC,KAAK,CAAC,UAAU,CACpB,KAAK,CAAC,wBAAwB,CAC7B,aAAa,CAAC,OAAO,CAAC,QAAQ,EAC9B,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QAEF,6CAA6C;QAC7C,KAAI,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;;IACjC,CAAC;IAED,gCAAa,GAAb;QACC,gDAAgD;QAChD,IAAM,oBAAoB,GAAU;YACnC,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YAClC,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE;gBACvC,QAAQ,EAAE,SAAS,CAAC,GAAG;aACvB,CAAC;SACF,CAAC;QAEF,wDAAwD;QACxD,IAAM,UAAU,GAAU,IAAI,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;QACxE,OAAO,UAAU,CAAC;IACnB,CAAC;IACF,eAAC;AAAD,CAAC,AA1CD,CAA8B,KAAK,GA0ClC","sourcesContent":["// Internal Imports\nimport { PieChartModel } from '../model/pie';\nimport { Chart } from '../chart';\nimport * as Configuration from '../configuration';\nimport { ChartConfig, PieChartOptions } from '../interfaces/index';\nimport * as Tools from '../tools';\nimport { Skeletons } from '../interfaces/enums';\n\n// Components\nimport {\n\tPie,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tLegend,\n\tLayoutComponent,\n\tSkeleton,\n} from '../components/index';\n\nexport class PieChart extends Chart {\n\tmodel = new PieChartModel(this.services);\n\n\t// TODO - Optimize the use of \"extending\"\n\tconstructor(\n\t\tholder: Element,\n\t\tchartConfigs: ChartConfig<PieChartOptions>,\n\t\textending = false\n\t) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// TODO - Optimize the use of \"extending\"\n\t\tif (extending) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.pieChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents: any[] = [\n\t\t\tnew Pie(this.model, this.services),\n\t\t\tnew Skeleton(this.model, this.services, {\n\t\t\t\tskeleton: Skeletons.PIE,\n\t\t\t}),\n\t\t];\n\n\t\t// get the base chart components and export with tooltip\n\t\tconst components: any[] = this.getChartComponents(graphFrameComponents);\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/radar.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RadarChartModel } from '../model/radar';
|
|
2
|
-
import { Chart } from '../chart';
|
|
3
|
-
import { ChartConfig, RadarChartOptions } from '../interfaces/index';
|
|
4
|
-
export declare class RadarChart extends Chart {
|
|
5
|
-
model: RadarChartModel;
|
|
6
|
-
constructor(holder: Element, chartConfigs: ChartConfig<RadarChartOptions>);
|
|
7
|
-
getComponents(): any[];
|
|
8
|
-
}
|