@semcore/d3-chart 3.61.0-prerelease.1 → 3.61.0-prerelease.5
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/lib/cjs/AnimatedClipPath.js +11 -15
- package/lib/cjs/AnimatedClipPath.js.map +1 -1
- package/lib/cjs/Area.js +71 -48
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +170 -108
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +29 -34
- package/lib/cjs/Bar.js.map +1 -1
- package/lib/cjs/Bubble.js +211 -137
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/CompactHorizontalBar.js +92 -82
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +154 -139
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +55 -38
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +15 -18
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +29 -34
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +52 -45
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +63 -41
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Pattern.js +16 -12
- package/lib/cjs/Pattern.js.map +1 -1
- package/lib/cjs/Plot.js +29 -36
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +281 -261
- package/lib/cjs/Radar.js.map +1 -1
- package/lib/cjs/RadialTree.js +169 -154
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +45 -51
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ResponsiveContainer.js +20 -25
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +71 -61
- package/lib/cjs/ScatterPlot.js.map +1 -1
- package/lib/cjs/StackBar.js +20 -31
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/StackedArea.js +12 -16
- package/lib/cjs/StackedArea.js.map +1 -1
- package/lib/cjs/Tooltip.js +73 -73
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +77 -52
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/DataAccessibilityTable.js +2 -3
- package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +43 -86
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +44 -19
- package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/lib/cjs/a11y/bezier.js +1 -2
- package/lib/cjs/a11y/bezier.js.map +1 -1
- package/lib/cjs/a11y/focus.js +5 -6
- package/lib/cjs/a11y/focus.js.map +1 -1
- package/lib/cjs/a11y/hints.js +6 -9
- package/lib/cjs/a11y/hints.js.map +1 -1
- package/lib/cjs/a11y/insights.js +63 -64
- package/lib/cjs/a11y/insights.js.map +1 -1
- package/lib/cjs/a11y/intl.js +1 -2
- package/lib/cjs/a11y/intl.js.map +1 -1
- package/lib/cjs/a11y/locale.js +5 -5
- package/lib/cjs/a11y/locale.js.map +1 -1
- package/lib/cjs/a11y/serialize.js +15 -17
- package/lib/cjs/a11y/serialize.js.map +1 -1
- package/lib/cjs/a11y/summarize.js +1 -2
- package/lib/cjs/a11y/summarize.js.map +1 -1
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/a11y/translations/module/de.json +2 -2
- package/lib/cjs/a11y/translations/module/en.json +2 -2
- package/lib/cjs/a11y/translations/module/es.json +2 -2
- package/lib/cjs/a11y/translations/module/fr.json +2 -2
- package/lib/cjs/a11y/translations/module/it.json +2 -2
- package/lib/cjs/a11y/translations/module/ja.json +2 -2
- package/lib/cjs/a11y/translations/module/ko.json +2 -2
- package/lib/cjs/a11y/translations/module/nl.json +2 -2
- package/lib/cjs/a11y/translations/module/pl.json +2 -2
- package/lib/cjs/a11y/translations/module/pt.json +2 -2
- package/lib/cjs/a11y/translations/module/sv.json +2 -2
- package/lib/cjs/a11y/translations/module/tr.json +2 -2
- package/lib/cjs/a11y/translations/module/vi.json +2 -2
- package/lib/cjs/a11y/translations/module/zh.json +2 -2
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/color.js +2 -3
- package/lib/cjs/color.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.js +157 -83
- package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.js +24 -51
- package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.js +85 -69
- package/lib/cjs/component/Chart/BarChart.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.js +31 -27
- package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js +340 -147
- package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +11 -15
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.js +16 -22
- package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.js +16 -44
- package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.js +22 -48
- package/lib/cjs/component/Chart/LineChart.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.js +15 -19
- package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.js +16 -21
- package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.js +16 -19
- package/lib/cjs/component/Chart/VennChart.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/index.js +7 -8
- package/lib/cjs/component/Chart/index.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +45 -23
- package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +19 -24
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +108 -83
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -2
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +18 -23
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/index.js +1 -2
- package/lib/cjs/component/ChartLegend/index.js.map +1 -1
- package/lib/cjs/component/Cigarette/Cigarette.js +16 -20
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js +19 -24
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/cjs/component/SvgElement.js +21 -0
- package/lib/cjs/component/SvgElement.js.map +1 -0
- package/lib/cjs/createElement.d.js.map +1 -1
- package/lib/cjs/createElement.js +10 -12
- package/lib/cjs/createElement.js.map +1 -1
- package/lib/cjs/index.js +9 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/abstract-chart.shadow.css +12 -0
- package/lib/cjs/style/area.shadow.css +2 -2
- package/lib/cjs/style/axis.shadow.css +39 -1
- package/lib/cjs/style/bar.shadow.css +1 -1
- package/lib/cjs/style/bubble.shadow.css +11 -3
- package/lib/cjs/style/donut.shadow.css +1 -1
- package/lib/cjs/style/dot.shadow.css +1 -1
- package/lib/cjs/style/hover.shadow.css +2 -2
- package/lib/cjs/style/line.shadow.css +2 -2
- package/lib/cjs/style/plot.shadow.css +8 -6
- package/lib/cjs/style/plotA11yModule.shadow.css +10 -11
- package/lib/cjs/style/plotA11yView.shadow.css +13 -26
- package/lib/cjs/style/radar.shadow.css +3 -3
- package/lib/cjs/style/radial-tree.shadow.css +2 -2
- package/lib/cjs/style/scatterplot.shadow.css +2 -2
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/translations/de.json +1 -0
- package/lib/cjs/translations/es.json +1 -0
- package/lib/cjs/translations/fr.json +1 -0
- package/lib/cjs/translations/it.json +1 -0
- package/lib/cjs/translations/ja.json +1 -0
- package/lib/cjs/translations/ko.json +1 -0
- package/lib/cjs/translations/nl.json +1 -0
- package/lib/cjs/translations/pl.json +1 -0
- package/lib/cjs/translations/pt.json +1 -0
- package/lib/cjs/translations/sv.json +1 -0
- package/lib/cjs/translations/tr.json +2 -1
- package/lib/cjs/translations/vi.json +1 -0
- package/lib/cjs/translations/zh.json +1 -0
- package/lib/cjs/types/Area.d.js.map +1 -1
- package/lib/cjs/types/Axis.d.js.map +1 -1
- package/lib/cjs/types/Bar.d.js.map +1 -1
- package/lib/cjs/types/Bubble.d.js.map +1 -1
- package/lib/cjs/types/ClipPath.d.js.map +1 -1
- package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Donut.d.js.map +1 -1
- package/lib/cjs/types/GroupBar.d.js.map +1 -1
- package/lib/cjs/types/HorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Hover.d.js.map +1 -1
- package/lib/cjs/types/Line.d.js.map +1 -1
- package/lib/cjs/types/Plot.d.js.map +1 -1
- package/lib/cjs/types/Radar.d.js.map +1 -1
- package/lib/cjs/types/Reference.d.js.map +1 -1
- package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/cjs/types/ScatterPlot.d.js.map +1 -1
- package/lib/cjs/types/StackBar.d.js.map +1 -1
- package/lib/cjs/types/StackedArea.d.js.map +1 -1
- package/lib/cjs/types/Tooltip.d.js.map +1 -1
- package/lib/cjs/types/Venn.d.js.map +1 -1
- package/lib/cjs/types/context.d.js.map +1 -1
- package/lib/cjs/types/index.d.js +14 -2
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/cjs/utils.js +36 -55
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/AnimatedClipPath.js +9 -11
- package/lib/es6/AnimatedClipPath.js.map +1 -1
- package/lib/es6/Area.js +70 -45
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +168 -104
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +27 -29
- package/lib/es6/Bar.js.map +1 -1
- package/lib/es6/Bubble.js +211 -135
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/CompactHorizontalBar.js +89 -77
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +154 -137
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +55 -36
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +13 -15
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +27 -29
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +51 -41
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +61 -37
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Pattern.js +7 -3
- package/lib/es6/Pattern.js.map +1 -1
- package/lib/es6/Plot.js +28 -32
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +279 -257
- package/lib/es6/Radar.js.map +1 -1
- package/lib/es6/RadialTree.js +168 -151
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +43 -45
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ResponsiveContainer.js +16 -19
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +71 -59
- package/lib/es6/ScatterPlot.js.map +1 -1
- package/lib/es6/StackBar.js +17 -27
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/StackedArea.js +10 -13
- package/lib/es6/StackedArea.js.map +1 -1
- package/lib/es6/Tooltip.js +68 -65
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +75 -48
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +43 -86
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +43 -16
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/a11y/bezier.js.map +1 -1
- package/lib/es6/a11y/focus.js +4 -4
- package/lib/es6/a11y/focus.js.map +1 -1
- package/lib/es6/a11y/hints.js +2 -2
- package/lib/es6/a11y/hints.js.map +1 -1
- package/lib/es6/a11y/insights.js +61 -61
- package/lib/es6/a11y/insights.js.map +1 -1
- package/lib/es6/a11y/intl.js.map +1 -1
- package/lib/es6/a11y/locale.js +3 -2
- package/lib/es6/a11y/locale.js.map +1 -1
- package/lib/es6/a11y/serialize.js +14 -13
- package/lib/es6/a11y/serialize.js.map +1 -1
- package/lib/es6/a11y/summarize.js.map +1 -1
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/a11y/translations/module/de.json +2 -2
- package/lib/es6/a11y/translations/module/en.json +2 -2
- package/lib/es6/a11y/translations/module/es.json +2 -2
- package/lib/es6/a11y/translations/module/fr.json +2 -2
- package/lib/es6/a11y/translations/module/it.json +2 -2
- package/lib/es6/a11y/translations/module/ja.json +2 -2
- package/lib/es6/a11y/translations/module/ko.json +2 -2
- package/lib/es6/a11y/translations/module/nl.json +2 -2
- package/lib/es6/a11y/translations/module/pl.json +2 -2
- package/lib/es6/a11y/translations/module/pt.json +2 -2
- package/lib/es6/a11y/translations/module/sv.json +2 -2
- package/lib/es6/a11y/translations/module/tr.json +2 -2
- package/lib/es6/a11y/translations/module/vi.json +2 -2
- package/lib/es6/a11y/translations/module/zh.json +2 -2
- package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/color.js +1 -1
- package/lib/es6/color.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.js +159 -80
- package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.js +23 -48
- package/lib/es6/component/Chart/AreaChart.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.js +84 -67
- package/lib/es6/component/Chart/BarChart.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.js +30 -24
- package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js +341 -144
- package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js +9 -12
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.js +14 -18
- package/lib/es6/component/Chart/DonutChart.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.js +15 -41
- package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.js +20 -45
- package/lib/es6/component/Chart/LineChart.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.js +13 -16
- package/lib/es6/component/Chart/RadarChart.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.js +15 -18
- package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.js +14 -16
- package/lib/es6/component/Chart/VennChart.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
- package/lib/es6/component/Chart/index.js +6 -6
- package/lib/es6/component/Chart/index.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js +43 -20
- package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +17 -19
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +102 -74
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +15 -17
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/index.js.map +1 -1
- package/lib/es6/component/Cigarette/Cigarette.js +14 -17
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.js +17 -21
- package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/es6/component/SvgElement.js +14 -0
- package/lib/es6/component/SvgElement.js.map +1 -0
- package/lib/es6/createElement.d.js.map +1 -1
- package/lib/es6/createElement.js +7 -7
- package/lib/es6/createElement.js.map +1 -1
- package/lib/es6/index.js +1 -0
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/abstract-chart.shadow.css +12 -0
- package/lib/es6/style/area.shadow.css +2 -2
- package/lib/es6/style/axis.shadow.css +39 -1
- package/lib/es6/style/bar.shadow.css +1 -1
- package/lib/es6/style/bubble.shadow.css +11 -3
- package/lib/es6/style/donut.shadow.css +1 -1
- package/lib/es6/style/dot.shadow.css +1 -1
- package/lib/es6/style/hover.shadow.css +2 -2
- package/lib/es6/style/line.shadow.css +2 -2
- package/lib/es6/style/plot.shadow.css +8 -6
- package/lib/es6/style/plotA11yModule.shadow.css +10 -11
- package/lib/es6/style/plotA11yView.shadow.css +13 -26
- package/lib/es6/style/radar.shadow.css +3 -3
- package/lib/es6/style/radial-tree.shadow.css +2 -2
- package/lib/es6/style/scatterplot.shadow.css +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/translations/de.json +1 -0
- package/lib/es6/translations/es.json +1 -0
- package/lib/es6/translations/fr.json +1 -0
- package/lib/es6/translations/it.json +1 -0
- package/lib/es6/translations/ja.json +1 -0
- package/lib/es6/translations/ko.json +1 -0
- package/lib/es6/translations/nl.json +1 -0
- package/lib/es6/translations/pl.json +1 -0
- package/lib/es6/translations/pt.json +1 -0
- package/lib/es6/translations/sv.json +1 -0
- package/lib/es6/translations/tr.json +2 -1
- package/lib/es6/translations/vi.json +1 -0
- package/lib/es6/translations/zh.json +1 -0
- package/lib/es6/types/Area.d.js.map +1 -1
- package/lib/es6/types/Axis.d.js.map +1 -1
- package/lib/es6/types/Bar.d.js.map +1 -1
- package/lib/es6/types/Bubble.d.js.map +1 -1
- package/lib/es6/types/ClipPath.d.js.map +1 -1
- package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Donut.d.js.map +1 -1
- package/lib/es6/types/GroupBar.d.js.map +1 -1
- package/lib/es6/types/HorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Hover.d.js.map +1 -1
- package/lib/es6/types/Line.d.js.map +1 -1
- package/lib/es6/types/Plot.d.js.map +1 -1
- package/lib/es6/types/Radar.d.js.map +1 -1
- package/lib/es6/types/Reference.d.js.map +1 -1
- package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/es6/types/ScatterPlot.d.js.map +1 -1
- package/lib/es6/types/StackBar.d.js.map +1 -1
- package/lib/es6/types/StackedArea.d.js.map +1 -1
- package/lib/es6/types/Tooltip.d.js.map +1 -1
- package/lib/es6/types/Venn.d.js.map +1 -1
- package/lib/es6/types/context.d.js.map +1 -1
- package/lib/es6/types/index.d.js +2 -0
- package/lib/es6/types/index.d.js.map +1 -1
- package/lib/es6/utils.js +16 -16
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/AnimatedClipPath.mjs +9 -16
- package/lib/esm/Area.mjs +51 -36
- package/lib/esm/Axis.mjs +143 -86
- package/lib/esm/Bar.mjs +31 -34
- package/lib/esm/Bubble.mjs +154 -106
- package/lib/esm/CompactHorizontalBar.mjs +88 -80
- package/lib/esm/Donut.mjs +87 -75
- package/lib/esm/Dots.mjs +50 -34
- package/lib/esm/GroupBar.mjs +12 -14
- package/lib/esm/HorizontalBar.mjs +31 -34
- package/lib/esm/Hover.mjs +53 -50
- package/lib/esm/Line.mjs +45 -31
- package/lib/esm/Pattern.mjs +4 -2
- package/lib/esm/Plot.mjs +30 -35
- package/lib/esm/Radar.mjs +188 -175
- package/lib/esm/RadialTree.mjs +105 -111
- package/lib/esm/Reference.mjs +37 -40
- package/lib/esm/ResponsiveContainer.mjs +18 -21
- package/lib/esm/ScatterPlot.mjs +49 -40
- package/lib/esm/StackBar.mjs +18 -28
- package/lib/esm/StackedArea.mjs +13 -16
- package/lib/esm/Tooltip.mjs +56 -59
- package/lib/esm/Venn.mjs +67 -47
- package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
- package/lib/esm/a11y/PlotA11yModule.mjs +35 -74
- package/lib/esm/a11y/PlotA11yView.mjs +41 -17
- package/lib/esm/a11y/focus.mjs +4 -4
- package/lib/esm/a11y/hints.mjs +2 -2
- package/lib/esm/a11y/insights.mjs +76 -76
- package/lib/esm/a11y/locale.mjs +2 -2
- package/lib/esm/a11y/serialize.mjs +12 -12
- package/lib/esm/a11y/translations/module/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/a11y/translations/module/de.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/en.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/es.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/fr.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/it.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/ja.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/ko.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/nl.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/pl.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/pt.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/sv.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/tr.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/vi.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/zh.json.mjs +2 -4
- package/lib/esm/a11y/translations/view/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/component/Chart/AbstractChart.mjs +141 -65
- package/lib/esm/component/Chart/AreaChart.mjs +27 -51
- package/lib/esm/component/Chart/BarChart.mjs +64 -51
- package/lib/esm/component/Chart/BubbleChart.mjs +30 -25
- package/lib/esm/component/Chart/CigaretteChart.mjs +298 -119
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +13 -15
- package/lib/esm/component/Chart/DonutChart.mjs +16 -19
- package/lib/esm/component/Chart/HistogramChart.mjs +22 -46
- package/lib/esm/component/Chart/LineChart.mjs +23 -46
- package/lib/esm/component/Chart/RadarChart.mjs +16 -18
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +18 -21
- package/lib/esm/component/Chart/VennChart.mjs +16 -19
- package/lib/esm/component/Chart/index.mjs +6 -6
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +45 -22
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +19 -22
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +88 -75
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +22 -25
- package/lib/esm/component/ChartLegend/index.mjs +2 -0
- package/lib/esm/component/Cigarette/Cigarette.mjs +16 -19
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +18 -22
- package/lib/esm/component/SvgElement.mjs +14 -0
- package/lib/esm/createElement.mjs +8 -10
- package/lib/esm/index.mjs +3 -0
- package/lib/esm/style/abstract-chart.shadow.css +12 -0
- package/lib/esm/style/area.shadow.css +2 -2
- package/lib/esm/style/axis.shadow.css +39 -1
- package/lib/esm/style/bar.shadow.css +1 -1
- package/lib/esm/style/bubble.shadow.css +11 -3
- package/lib/esm/style/donut.shadow.css +1 -1
- package/lib/esm/style/dot.shadow.css +1 -1
- package/lib/esm/style/hover.shadow.css +2 -2
- package/lib/esm/style/line.shadow.css +2 -2
- package/lib/esm/style/plot.shadow.css +8 -6
- package/lib/esm/style/plotA11yModule.shadow.css +10 -11
- package/lib/esm/style/plotA11yView.shadow.css +13 -26
- package/lib/esm/style/radar.shadow.css +3 -3
- package/lib/esm/style/radial-tree.shadow.css +2 -2
- package/lib/esm/style/scatterplot.shadow.css +2 -2
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/translations/es.json.mjs +1 -0
- package/lib/esm/translations/fr.json.mjs +1 -0
- package/lib/esm/translations/it.json.mjs +1 -0
- package/lib/esm/translations/ja.json.mjs +1 -0
- package/lib/esm/translations/ko.json.mjs +1 -0
- package/lib/esm/translations/nl.json.mjs +1 -0
- package/lib/esm/translations/pl.json.mjs +1 -0
- package/lib/esm/translations/pt.json.mjs +1 -0
- package/lib/esm/translations/sv.json.mjs +1 -0
- package/lib/esm/translations/tr.json.mjs +2 -1
- package/lib/esm/translations/vi.json.mjs +1 -0
- package/lib/esm/translations/zh.json.mjs +1 -0
- package/lib/esm/utils.mjs +11 -11
- package/lib/types/Area.d.ts +9 -6
- package/lib/types/Axis.d.ts +10 -3
- package/lib/types/Bar.d.ts +7 -6
- package/lib/types/Bubble.d.ts +21 -5
- package/lib/types/ClipPath.d.ts +4 -3
- package/lib/types/CompactHorizontalBar.d.ts +7 -8
- package/lib/types/Donut.d.ts +8 -5
- package/lib/types/GroupBar.d.ts +6 -6
- package/lib/types/HorizontalBar.d.ts +7 -6
- package/lib/types/Hover.d.ts +8 -8
- package/lib/types/Line.d.ts +9 -6
- package/lib/types/Pattern.d.ts +51 -51
- package/lib/types/Plot.d.ts +11 -9
- package/lib/types/Radar.d.ts +10 -7
- package/lib/types/RadialTree.d.ts +10 -54
- package/lib/types/Reference.d.ts +6 -5
- package/lib/types/ResponsiveContainer.d.ts +5 -4
- package/lib/types/ScatterPlot.d.ts +8 -5
- package/lib/types/StackBar.d.ts +7 -6
- package/lib/types/StackedArea.d.ts +6 -5
- package/lib/types/Tooltip.d.ts +12 -12
- package/lib/types/Venn.d.ts +7 -6
- package/lib/types/a11y/DataAccessibilityTable.d.ts +2 -2
- package/lib/types/a11y/PlotA11yModule.d.ts +4 -11
- package/lib/types/a11y/PlotA11yView.d.ts +13 -2
- package/lib/types/a11y/hints.d.ts +5 -5
- package/lib/types/a11y/insights.d.ts +1 -1
- package/lib/types/a11y/intl.d.ts +1 -1
- package/lib/types/a11y/serialize.d.ts +7 -7
- package/lib/types/a11y/summarize.d.ts +2 -2
- package/lib/types/a11y/translations/module/__intergalactic-dynamic-locales.d.ts +14 -14
- package/lib/types/component/Chart/AbstractChart.d.ts +20 -13
- package/lib/types/component/Chart/AbstractChart.type.d.ts +39 -25
- package/lib/types/component/Chart/AreaChart.d.ts +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +17 -7
- package/lib/types/component/Chart/BarChart.d.ts +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +14 -9
- package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +10 -5
- package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +18 -8
- package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +10 -6
- package/lib/types/component/Chart/DonutChart.d.ts +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +16 -7
- package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +7 -4
- package/lib/types/component/Chart/LineChart.d.ts +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +16 -7
- package/lib/types/component/Chart/RadarChart.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +7 -5
- package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +12 -6
- package/lib/types/component/Chart/VennChart.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +12 -6
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +8 -6
- package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +4 -5
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +4 -5
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +17 -10
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -5
- package/lib/types/component/StackGroupBar/StackGroupBar.d.ts +1 -1
- package/lib/types/component/StackGroupBar/StackGroupBar.type.d.ts +3 -4
- package/lib/types/component/SvgElement.d.ts +10 -0
- package/lib/types/index.d.ts +3 -1
- package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +12 -0
- package/lib/types/utils.d.ts +17 -17
- package/package.json +13 -13
|
@@ -1,48 +1,93 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _createForOfIteratorHelper from "@babel/runtime/helpers/createForOfIteratorHelper";
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
4
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
5
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
6
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
|
+
import _callSuper from "@babel/runtime/helpers/callSuper";
|
|
8
|
+
import _superPropGet from "@babel/runtime/helpers/superPropGet";
|
|
8
9
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
9
|
-
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
10
10
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
11
|
+
import { assignProps as _assignProps4 } from "@semcore/core";
|
|
12
|
+
import { assignProps as _assignProps3 } from "@semcore/core";
|
|
11
13
|
import { assignProps as _assignProps2 } from "@semcore/core";
|
|
12
14
|
import { assignProps as _assignProps } from "@semcore/core";
|
|
13
|
-
import
|
|
14
|
-
import createComponent,
|
|
15
|
+
import { Box, Flex } from '@semcore/base-components';
|
|
16
|
+
import { createComponent, Root, sstyled } from '@semcore/core';
|
|
17
|
+
import i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
18
|
+
import resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';
|
|
19
|
+
import trottle from '@semcore/core/lib/utils/rafTrottle';
|
|
20
|
+
import uniqueIDEnhancement from '@semcore/core/lib/utils/uniqueID';
|
|
15
21
|
import Divider from '@semcore/divider';
|
|
16
|
-
import { Box, Flex } from '@semcore/flex-box';
|
|
17
22
|
import { Text } from '@semcore/typography';
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { scaleBand, scaleLinear } from 'd3-scale';
|
|
23
|
+
import { scaleThreshold, scaleLinear } from 'd3-scale';
|
|
24
|
+
import React from 'react';
|
|
21
25
|
// @ts-ignore
|
|
22
26
|
import { HoverRect, Plot } from '../..';
|
|
27
|
+
import { AbstractChart, NOT_A_VALUE } from './AbstractChart';
|
|
23
28
|
// @ts-ignore
|
|
24
29
|
import AnimatedClipPath from '../../AnimatedClipPath';
|
|
25
|
-
import { AbstractChart } from './AbstractChart';
|
|
26
|
-
import { interpolateValue, scaleToBand } from '../../utils';
|
|
27
|
-
import Cigarette from '../Cigarette/Cigarette';
|
|
28
30
|
import { localizedMessages } from '../../translations/__intergalactic-dynamic-locales';
|
|
29
|
-
import
|
|
30
|
-
|
|
31
|
+
import { eventToPoint, interpolateValue } from '../../utils';
|
|
32
|
+
import Cigarette from '../Cigarette/Cigarette';
|
|
33
|
+
var DEFAULT_MINIMAL_BAR_WIDTH = 2;
|
|
34
|
+
var DEFAULT_GAP = 2;
|
|
31
35
|
var CigaretteChartComponent = /*#__PURE__*/function (_AbstractChart) {
|
|
32
|
-
|
|
33
|
-
var _super = _createSuper(CigaretteChartComponent);
|
|
34
|
-
function CigaretteChartComponent() {
|
|
36
|
+
function CigaretteChartComponent(props) {
|
|
35
37
|
var _this;
|
|
36
38
|
_classCallCheck(this, CigaretteChartComponent);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
_this
|
|
41
|
-
_defineProperty(
|
|
42
|
-
|
|
39
|
+
_this = _callSuper(this, CigaretteChartComponent, [props]);
|
|
40
|
+
_defineProperty(_this, "plotRef", /*#__PURE__*/React.createRef());
|
|
41
|
+
_defineProperty(_this, "plotPadding", 0);
|
|
42
|
+
_defineProperty(_this, "offset", 0);
|
|
43
|
+
_defineProperty(_this, "onPlotMouseMove", trottle(function (event) {
|
|
44
|
+
if (!_this.plotRef.current) return;
|
|
45
|
+
var _eventToPoint = eventToPoint(event, _this.plotRef.current),
|
|
46
|
+
_eventToPoint2 = _slicedToArray(_eventToPoint, 2),
|
|
47
|
+
pX = _eventToPoint2[0],
|
|
48
|
+
pY = _eventToPoint2[1];
|
|
49
|
+
_this.setState(function (prevState) {
|
|
50
|
+
return {
|
|
51
|
+
pX: pX,
|
|
52
|
+
pY: pY
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
}));
|
|
56
|
+
_defineProperty(_this, "onPlotMouseLeave", trottle(function () {
|
|
57
|
+
_this.setState(function (prevState) {
|
|
58
|
+
return {
|
|
59
|
+
pX: null,
|
|
60
|
+
pY: null
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
}));
|
|
64
|
+
_this.state = _objectSpread(_objectSpread({}, _this.state), {}, {
|
|
65
|
+
pX: null,
|
|
66
|
+
pY: null
|
|
67
|
+
});
|
|
43
68
|
return _this;
|
|
44
69
|
}
|
|
45
|
-
|
|
70
|
+
_inherits(CigaretteChartComponent, _AbstractChart);
|
|
71
|
+
return _createClass(CigaretteChartComponent, [{
|
|
72
|
+
key: "activeDataDefinitions",
|
|
73
|
+
get: function get() {
|
|
74
|
+
var dataDefinitions = this.state.dataDefinitions;
|
|
75
|
+
return dataDefinitions.filter(function (_ref7) {
|
|
76
|
+
var checked = _ref7.checked;
|
|
77
|
+
return checked;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
key: "activePositiveDataDefinitions",
|
|
82
|
+
get: function get() {
|
|
83
|
+
var data = this.asProps.data;
|
|
84
|
+
return this.activeDataDefinitions.filter(function (_ref8) {
|
|
85
|
+
var id = _ref8.id;
|
|
86
|
+
var itemValue = data[id];
|
|
87
|
+
return typeof itemValue === 'number' && itemValue > 0;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
46
91
|
key: "resolveColor",
|
|
47
92
|
value: function resolveColor(id, index) {
|
|
48
93
|
var _this$props$colorMap$, _this$props$colorMap;
|
|
@@ -51,7 +96,7 @@ var CigaretteChartComponent = /*#__PURE__*/function (_AbstractChart) {
|
|
|
51
96
|
}, {
|
|
52
97
|
key: "getDefaultDataDefinitions",
|
|
53
98
|
value: function getDefaultDataDefinitions() {
|
|
54
|
-
var dataDefinitions =
|
|
99
|
+
var dataDefinitions = _superPropGet(CigaretteChartComponent, "getDefaultDataDefinitions", this, 3)([]);
|
|
55
100
|
return dataDefinitions.map(function (dataDef) {
|
|
56
101
|
dataDef.columns = dataDef.columns.slice(1);
|
|
57
102
|
return dataDef;
|
|
@@ -65,47 +110,141 @@ var CigaretteChartComponent = /*#__PURE__*/function (_AbstractChart) {
|
|
|
65
110
|
w: 'fit-content'
|
|
66
111
|
};
|
|
67
112
|
}
|
|
113
|
+
}, {
|
|
114
|
+
key: "totalValue",
|
|
115
|
+
value: function totalValue() {
|
|
116
|
+
var data = this.asProps.data;
|
|
117
|
+
return this.activeDataDefinitions.reduce(function (acc, _ref9) {
|
|
118
|
+
var id = _ref9.id;
|
|
119
|
+
var itemValue = data[id];
|
|
120
|
+
if (typeof itemValue === 'number') {
|
|
121
|
+
acc += itemValue;
|
|
122
|
+
}
|
|
123
|
+
return acc;
|
|
124
|
+
}, 0);
|
|
125
|
+
}
|
|
126
|
+
}, {
|
|
127
|
+
key: "computeCigaretteItems",
|
|
128
|
+
value: function computeCigaretteItems() {
|
|
129
|
+
var _this$asProps = this.asProps,
|
|
130
|
+
plotWidth = _this$asProps.plotWidth,
|
|
131
|
+
plotHeight = _this$asProps.plotHeight,
|
|
132
|
+
data = _this$asProps.data,
|
|
133
|
+
invertAxis = _this$asProps.invertAxis,
|
|
134
|
+
minimalBarWidth = _this$asProps.minimalBarWidth;
|
|
135
|
+
var dataDefinitions = invertAxis ? this.activeDataDefinitions : _toConsumableArray(this.activeDataDefinitions).reverse();
|
|
136
|
+
var count = this.activePositiveDataDefinitions.length;
|
|
137
|
+
var totalGapWidth = DEFAULT_GAP * Math.max(0, count - 1);
|
|
138
|
+
var availableSpace = Math.max(0, (invertAxis ? plotWidth : plotHeight) - totalGapWidth);
|
|
139
|
+
var totalValue = this.totalValue();
|
|
140
|
+
var dataDefinitionsItemSize = dataDefinitions.map(function (_ref0) {
|
|
141
|
+
var id = _ref0.id;
|
|
142
|
+
if (totalValue === 0) {
|
|
143
|
+
return 0;
|
|
144
|
+
}
|
|
145
|
+
var itemValue = data[id];
|
|
146
|
+
if (typeof itemValue !== 'number') return 0;
|
|
147
|
+
return itemValue / totalValue * availableSpace;
|
|
148
|
+
});
|
|
149
|
+
var result = dataDefinitions.map(function (dd, index) {
|
|
150
|
+
return _objectSpread(_objectSpread({}, dd), {}, {
|
|
151
|
+
value: data[dd.id],
|
|
152
|
+
dataWidth: dataDefinitionsItemSize[index],
|
|
153
|
+
visualWidth: dataDefinitionsItemSize[index],
|
|
154
|
+
isMinVisible: false
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
var smallItems = result.filter(function (r) {
|
|
158
|
+
var value = r.value,
|
|
159
|
+
dataWidth = r.dataWidth;
|
|
160
|
+
if (typeof value !== 'number') return false;
|
|
161
|
+
return value > 0 && dataWidth < minimalBarWidth;
|
|
162
|
+
});
|
|
163
|
+
if (smallItems.length === 0) return result;
|
|
164
|
+
var extraNeeded = 0;
|
|
165
|
+
var _iterator = _createForOfIteratorHelper(smallItems),
|
|
166
|
+
_step;
|
|
167
|
+
try {
|
|
168
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
169
|
+
var smallItem = _step.value;
|
|
170
|
+
extraNeeded += minimalBarWidth - smallItem.dataWidth;
|
|
171
|
+
smallItem.visualWidth = minimalBarWidth;
|
|
172
|
+
smallItem.isMinVisible = true;
|
|
173
|
+
}
|
|
174
|
+
} catch (err) {
|
|
175
|
+
_iterator.e(err);
|
|
176
|
+
} finally {
|
|
177
|
+
_iterator.f();
|
|
178
|
+
}
|
|
179
|
+
var donors = result.filter(function (r) {
|
|
180
|
+
return !r.isMinVisible && r.dataWidth > minimalBarWidth;
|
|
181
|
+
});
|
|
182
|
+
var donorCapacity = donors.reduce(function (s, d) {
|
|
183
|
+
return s + (d.dataWidth - minimalBarWidth);
|
|
184
|
+
}, 0);
|
|
185
|
+
var _iterator2 = _createForOfIteratorHelper(donors),
|
|
186
|
+
_step2;
|
|
187
|
+
try {
|
|
188
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
189
|
+
var donor = _step2.value;
|
|
190
|
+
var available = donor.dataWidth - minimalBarWidth;
|
|
191
|
+
var share = available / donorCapacity;
|
|
192
|
+
var taken = share * extraNeeded;
|
|
193
|
+
donor.visualWidth = donor.dataWidth - taken;
|
|
194
|
+
}
|
|
195
|
+
} catch (err) {
|
|
196
|
+
_iterator2.e(err);
|
|
197
|
+
} finally {
|
|
198
|
+
_iterator2.f();
|
|
199
|
+
}
|
|
200
|
+
return result;
|
|
201
|
+
}
|
|
68
202
|
}, {
|
|
69
203
|
key: "xScale",
|
|
70
204
|
get: function get() {
|
|
71
|
-
var
|
|
72
|
-
return
|
|
205
|
+
var plotWidth = this.asProps.plotWidth;
|
|
206
|
+
return scaleLinear([0, plotWidth]);
|
|
73
207
|
}
|
|
74
208
|
}, {
|
|
75
209
|
key: "yScale",
|
|
76
210
|
get: function get() {
|
|
77
|
-
var
|
|
78
|
-
return
|
|
211
|
+
var plotHeight = this.asProps.plotHeight;
|
|
212
|
+
return scaleLinear([plotHeight, 0]);
|
|
79
213
|
}
|
|
80
214
|
}, {
|
|
81
215
|
key: "renderChart",
|
|
82
216
|
value: function renderChart() {
|
|
83
217
|
var _this2 = this;
|
|
84
|
-
var _this$
|
|
85
|
-
invertAxis = _this$
|
|
86
|
-
data = _this$
|
|
87
|
-
uid = _this$
|
|
88
|
-
duration = _this$
|
|
89
|
-
patterns = _this$
|
|
90
|
-
plotHeight = _this$
|
|
91
|
-
plotWidth = _this$
|
|
92
|
-
onClick = _this$
|
|
218
|
+
var _this$asProps2 = this.asProps,
|
|
219
|
+
invertAxis = _this$asProps2.invertAxis,
|
|
220
|
+
data = _this$asProps2.data,
|
|
221
|
+
uid = _this$asProps2.uid,
|
|
222
|
+
duration = _this$asProps2.duration,
|
|
223
|
+
patterns = _this$asProps2.patterns,
|
|
224
|
+
plotHeight = _this$asProps2.plotHeight,
|
|
225
|
+
plotWidth = _this$asProps2.plotWidth,
|
|
226
|
+
onClick = _this$asProps2.onClick;
|
|
93
227
|
var _this$state = this.state,
|
|
94
228
|
dataDefinitions = _this$state.dataDefinitions,
|
|
95
229
|
highlightedLine = _this$state.highlightedLine;
|
|
96
230
|
this.offset = 0;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
231
|
+
var items = this.computeCigaretteItems();
|
|
232
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, items.map(function (item, index) {
|
|
233
|
+
var visualWidth = item.visualWidth,
|
|
234
|
+
id = item.id;
|
|
235
|
+
var value = data[id];
|
|
236
|
+
if (value === interpolateValue || value === null) {
|
|
100
237
|
return null;
|
|
101
238
|
}
|
|
102
|
-
var
|
|
103
|
-
var
|
|
104
|
-
var
|
|
105
|
-
var
|
|
106
|
-
var x = index === 0 ? 0 : _this2.offset;
|
|
239
|
+
var height = invertAxis ? plotHeight - DEFAULT_GAP * 2 : plotWidth - DEFAULT_GAP * 2;
|
|
240
|
+
var width = visualWidth;
|
|
241
|
+
var y = DEFAULT_GAP;
|
|
242
|
+
var x = _this2.offset;
|
|
107
243
|
var r = height < 28 ? 2 : 4;
|
|
108
|
-
_this2.offset
|
|
244
|
+
_this2.offset += visualWidth;
|
|
245
|
+
if (index < items.length - 1) {
|
|
246
|
+
_this2.offset += DEFAULT_GAP;
|
|
247
|
+
}
|
|
109
248
|
return /*#__PURE__*/React.createElement(Cigarette, {
|
|
110
249
|
key: item.id,
|
|
111
250
|
dataKey: item.id,
|
|
@@ -137,15 +276,21 @@ var CigaretteChartComponent = /*#__PURE__*/function (_AbstractChart) {
|
|
|
137
276
|
}, {
|
|
138
277
|
key: "renderTooltip",
|
|
139
278
|
value: function renderTooltip() {
|
|
140
|
-
var
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
279
|
+
var _ref = this.asProps,
|
|
280
|
+
_this3 = this;
|
|
281
|
+
var _this$asProps3 = this.asProps,
|
|
282
|
+
data = _this$asProps3.data,
|
|
283
|
+
invertAxis = _this$asProps3.invertAxis,
|
|
284
|
+
tooltipTitle = _this$asProps3.tooltipTitle,
|
|
285
|
+
tooltipViewType = _this$asProps3.tooltipViewType,
|
|
286
|
+
showPercentValueInTooltip = _this$asProps3.showPercentValueInTooltip,
|
|
287
|
+
styles = _this$asProps3.styles,
|
|
288
|
+
showTooltip = _this$asProps3.showTooltip;
|
|
289
|
+
var _this$state2 = this.state,
|
|
290
|
+
dataDefinitions = _this$state2.dataDefinitions,
|
|
291
|
+
pX = _this$state2.pX,
|
|
292
|
+
pY = _this$state2.pY;
|
|
293
|
+
var STooltipChildrenWrapper = Box;
|
|
149
294
|
if (!showTooltip) {
|
|
150
295
|
return null;
|
|
151
296
|
}
|
|
@@ -153,54 +298,107 @@ var CigaretteChartComponent = /*#__PURE__*/function (_AbstractChart) {
|
|
|
153
298
|
x: invertAxis ? '' : undefined,
|
|
154
299
|
y: invertAxis ? undefined : '',
|
|
155
300
|
wMin: 100,
|
|
156
|
-
hideHoverLine: true
|
|
301
|
+
hideHoverLine: true,
|
|
302
|
+
xIndex: pX !== null ? this.visualScale(pX) : undefined,
|
|
303
|
+
yIndex: pY !== null ? this.visualScale(pY) : undefined
|
|
157
304
|
}, function (tooltipProps) {
|
|
305
|
+
var _ref4;
|
|
158
306
|
var dataKey = invertAxis ? tooltipProps.xIndex : tooltipProps.yIndex;
|
|
159
|
-
var
|
|
307
|
+
var showPercentColumn = showPercentValueInTooltip && _this3.totalValue() !== 0;
|
|
160
308
|
if (tooltipViewType === 'single') {
|
|
309
|
+
var _ref3;
|
|
161
310
|
var item = dataDefinitions.find(function (dataDefItem) {
|
|
162
311
|
return dataDefItem.id === dataKey;
|
|
163
312
|
});
|
|
164
313
|
if (!item) {
|
|
165
|
-
return
|
|
314
|
+
return {
|
|
315
|
+
children: null
|
|
316
|
+
};
|
|
166
317
|
}
|
|
167
318
|
return {
|
|
168
|
-
children: /*#__PURE__*/React.createElement(
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}, /*#__PURE__*/React.createElement(HoverRect.Tooltip.Dot, {
|
|
172
|
-
mr:
|
|
319
|
+
children: (_ref3 = sstyled(styles), /*#__PURE__*/React.createElement(STooltipChildrenWrapper, _ref3.cn("STooltipChildrenWrapper", _objectSpread({}, _assignProps({
|
|
320
|
+
"columnsCount": showPercentColumn ? '3' : '2',
|
|
321
|
+
"__excludeProps": ['data']
|
|
322
|
+
}, _ref))), /*#__PURE__*/React.createElement(HoverRect.Tooltip.Dot, {
|
|
323
|
+
mr: 2,
|
|
173
324
|
color: item.color
|
|
174
|
-
}, item.label), /*#__PURE__*/React.createElement(Text, {
|
|
175
|
-
|
|
176
|
-
|
|
325
|
+
}, item.label), showPercentColumn && /*#__PURE__*/React.createElement(Text, _ref3.cn("Text", {
|
|
326
|
+
"textAlign": 'end',
|
|
327
|
+
"color": 'text-secondary'
|
|
328
|
+
}), _this3.percentValue(data, item.id)), /*#__PURE__*/React.createElement(Text, _ref3.cn("Text", {
|
|
329
|
+
"textAlign": 'end',
|
|
330
|
+
"bold": true
|
|
331
|
+
}), _this3.tooltipValueFormatter(data[item.id]))))
|
|
177
332
|
};
|
|
178
333
|
}
|
|
179
334
|
return {
|
|
180
|
-
children:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
335
|
+
children: (_ref4 = sstyled(styles), /*#__PURE__*/React.createElement(Flex, _ref4.cn("Flex", {
|
|
336
|
+
"direction": 'column'
|
|
337
|
+
}), tooltipTitle && /*#__PURE__*/React.createElement(HoverRect.Tooltip.Title, null, "Some tooltip title"), /*#__PURE__*/React.createElement(STooltipChildrenWrapper, _ref4.cn("STooltipChildrenWrapper", _objectSpread({}, _assignProps2({
|
|
338
|
+
"columnsCount": showPercentColumn ? '3' : '2',
|
|
339
|
+
"__excludeProps": ['data']
|
|
340
|
+
}, _ref))), dataDefinitions.map(function (item) {
|
|
341
|
+
var style = {
|
|
342
|
+
opacity: item.id === dataKey ? 1 : 0.3
|
|
343
|
+
};
|
|
344
|
+
return item.checked && /*#__PURE__*/React.createElement(React.Fragment, {
|
|
345
|
+
key: item.id
|
|
187
346
|
}, /*#__PURE__*/React.createElement(HoverRect.Tooltip.Dot, {
|
|
188
|
-
mr:
|
|
189
|
-
color: item.color
|
|
190
|
-
|
|
191
|
-
|
|
347
|
+
mr: 2,
|
|
348
|
+
color: item.color,
|
|
349
|
+
style: style
|
|
350
|
+
}, item.label), showPercentColumn && /*#__PURE__*/React.createElement(Text, {
|
|
351
|
+
textAlign: "end",
|
|
352
|
+
color: "text-secondary",
|
|
353
|
+
style: style
|
|
354
|
+
}, _this3.percentValue(data, item.id)), /*#__PURE__*/React.createElement(Text, {
|
|
355
|
+
textAlign: "end",
|
|
356
|
+
bold: true,
|
|
357
|
+
style: style
|
|
192
358
|
}, _this3.tooltipValueFormatter(data[item.id])));
|
|
193
|
-
}),
|
|
194
|
-
mt: 2,
|
|
195
|
-
justifyContent: "space-between"
|
|
196
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
197
|
-
mr: 4
|
|
198
|
-
}, "Total"), /*#__PURE__*/React.createElement(Text, {
|
|
199
|
-
bold: true
|
|
200
|
-
}, total)))
|
|
359
|
+
}), _this3.renderTooltipTotalLine(data))))
|
|
201
360
|
};
|
|
202
361
|
});
|
|
203
362
|
}
|
|
363
|
+
}, {
|
|
364
|
+
key: "percentValue",
|
|
365
|
+
value: function percentValue(data, key) {
|
|
366
|
+
var percentFormatter = this.asProps.percentFormatter;
|
|
367
|
+
var total = this.totalValue();
|
|
368
|
+
var value = data[key];
|
|
369
|
+
if (typeof value === 'number' && total !== 0) {
|
|
370
|
+
var rawPercent = 100 * value / total;
|
|
371
|
+
var formattedPercent = percentFormatter ? percentFormatter(rawPercent) : Math.round(rawPercent);
|
|
372
|
+
return "".concat(formattedPercent, "%");
|
|
373
|
+
}
|
|
374
|
+
if (value === null) {
|
|
375
|
+
return "0%";
|
|
376
|
+
}
|
|
377
|
+
return NOT_A_VALUE;
|
|
378
|
+
}
|
|
379
|
+
}, {
|
|
380
|
+
key: "renderTooltipTotalLine",
|
|
381
|
+
value: function renderTooltipTotalLine(dataItem) {
|
|
382
|
+
var _this$asProps4 = this.asProps,
|
|
383
|
+
showTotalInTooltip = _this$asProps4.showTotalInTooltip,
|
|
384
|
+
showPercentValueInTooltip = _this$asProps4.showPercentValueInTooltip;
|
|
385
|
+
if (!showTotalInTooltip) {
|
|
386
|
+
return null;
|
|
387
|
+
}
|
|
388
|
+
var total = this.totalValue();
|
|
389
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
390
|
+
mt: 2,
|
|
391
|
+
mr: 2
|
|
392
|
+
}, "Total"), showPercentValueInTooltip && total !== 0 && /*#__PURE__*/React.createElement(Text, {
|
|
393
|
+
mt: 2,
|
|
394
|
+
textAlign: "end",
|
|
395
|
+
color: "text-secondary"
|
|
396
|
+
}, Number.isNaN(total) ? NOT_A_VALUE : '100%'), /*#__PURE__*/React.createElement(Text, {
|
|
397
|
+
mt: 2,
|
|
398
|
+
textAlign: "end",
|
|
399
|
+
bold: true
|
|
400
|
+
}, Number.isNaN(total) ? NOT_A_VALUE : total));
|
|
401
|
+
}
|
|
204
402
|
}, {
|
|
205
403
|
key: "renderHeader",
|
|
206
404
|
value: function renderHeader() {
|
|
@@ -210,51 +408,57 @@ var CigaretteChartComponent = /*#__PURE__*/function (_AbstractChart) {
|
|
|
210
408
|
}, {
|
|
211
409
|
key: "render",
|
|
212
410
|
value: function render() {
|
|
213
|
-
var
|
|
214
|
-
|
|
411
|
+
var _ref2 = this.asProps,
|
|
412
|
+
_ref6;
|
|
215
413
|
var SChart = Flex;
|
|
216
|
-
var _this$
|
|
217
|
-
styles = _this$
|
|
218
|
-
plotWidth = _this$
|
|
219
|
-
plotHeight = _this$
|
|
220
|
-
data = _this$
|
|
221
|
-
patterns = _this$
|
|
222
|
-
invertAxis = _this$
|
|
223
|
-
a11yAltTextConfig = _this$
|
|
414
|
+
var _this$asProps5 = this.asProps,
|
|
415
|
+
styles = _this$asProps5.styles,
|
|
416
|
+
plotWidth = _this$asProps5.plotWidth,
|
|
417
|
+
plotHeight = _this$asProps5.plotHeight,
|
|
418
|
+
data = _this$asProps5.data,
|
|
419
|
+
patterns = _this$asProps5.patterns,
|
|
420
|
+
invertAxis = _this$asProps5.invertAxis,
|
|
421
|
+
a11yAltTextConfig = _this$asProps5.a11yAltTextConfig;
|
|
224
422
|
var header = this.renderHeader();
|
|
225
423
|
if (invertAxis) {
|
|
226
|
-
var
|
|
227
|
-
return
|
|
424
|
+
var _ref5;
|
|
425
|
+
return _ref5 = sstyled(styles), /*#__PURE__*/React.createElement(SChart, _ref5.cn("SChart", _objectSpread({}, _assignProps3({
|
|
228
426
|
"gap": 6,
|
|
229
427
|
"direction": 'column',
|
|
230
428
|
"__excludeProps": ['onClick', 'data']
|
|
231
|
-
},
|
|
429
|
+
}, _ref2))), /*#__PURE__*/React.createElement(Flex, _ref5.cn("Flex", {
|
|
232
430
|
"direction": 'column'
|
|
233
|
-
}), header, /*#__PURE__*/React.createElement(Plot,
|
|
431
|
+
}), header, /*#__PURE__*/React.createElement(Plot, _ref5.cn("Plot", {
|
|
432
|
+
"ref": this.plotRef,
|
|
234
433
|
"data": data,
|
|
235
434
|
"scale": [this.xScale, this.yScale],
|
|
236
435
|
"width": plotWidth,
|
|
237
436
|
"height": plotHeight,
|
|
238
437
|
"dataHints": this.dataHints,
|
|
239
438
|
"patterns": patterns,
|
|
240
|
-
"a11yAltTextConfig": a11yAltTextConfig
|
|
439
|
+
"a11yAltTextConfig": a11yAltTextConfig,
|
|
440
|
+
"onMouseMove": this.onPlotMouseMove,
|
|
441
|
+
"onMouseLeave": this.onPlotMouseLeave
|
|
241
442
|
}), this.renderTooltip(), this.renderChart())), this.renderLegend());
|
|
242
443
|
}
|
|
243
|
-
return
|
|
444
|
+
return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(SChart, _ref6.cn("SChart", _objectSpread({}, _assignProps4({
|
|
244
445
|
"gap": 6,
|
|
245
446
|
"__excludeProps": ['onClick', 'data']
|
|
246
|
-
},
|
|
447
|
+
}, _ref2))), /*#__PURE__*/React.createElement(Plot, _ref6.cn("Plot", {
|
|
448
|
+
"ref": this.plotRef,
|
|
247
449
|
"data": data,
|
|
248
450
|
"scale": [this.xScale, this.yScale],
|
|
249
451
|
"width": plotWidth,
|
|
250
452
|
"height": plotHeight,
|
|
251
453
|
"dataHints": this.dataHints,
|
|
252
454
|
"patterns": patterns,
|
|
253
|
-
"a11yAltTextConfig": a11yAltTextConfig
|
|
254
|
-
|
|
455
|
+
"a11yAltTextConfig": a11yAltTextConfig,
|
|
456
|
+
"onMouseMove": this.onPlotMouseMove,
|
|
457
|
+
"onMouseLeave": this.onPlotMouseLeave
|
|
458
|
+
}), this.renderTooltip(), this.renderChart()), /*#__PURE__*/React.createElement(Flex, _ref6.cn("Flex", {
|
|
255
459
|
"direction": 'column',
|
|
256
460
|
"gap": 2
|
|
257
|
-
}), header && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box,
|
|
461
|
+
}), header && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, _ref6.cn("Box", {}), header), /*#__PURE__*/React.createElement(Divider, _ref6.cn("Divider", {}))), this.renderLegend()));
|
|
258
462
|
}
|
|
259
463
|
}, {
|
|
260
464
|
key: "getLegendAriaLabel",
|
|
@@ -264,44 +468,35 @@ var CigaretteChartComponent = /*#__PURE__*/function (_AbstractChart) {
|
|
|
264
468
|
});
|
|
265
469
|
}
|
|
266
470
|
}, {
|
|
267
|
-
key: "
|
|
471
|
+
key: "visualScale",
|
|
268
472
|
get: function get() {
|
|
269
|
-
var
|
|
270
|
-
var
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
plotWidth = _this$asProps5.plotWidth,
|
|
295
|
-
plotHeight = _this$asProps5.plotHeight,
|
|
296
|
-
invertAxis = _this$asProps5.invertAxis;
|
|
297
|
-
var max = 0;
|
|
298
|
-
this.selectedData.forEach(function (value) {
|
|
299
|
-
max = max + value;
|
|
300
|
-
});
|
|
301
|
-
return scaleLinear().range(invertAxis ? [0, plotWidth] : [plotHeight, 0]).domain([0, max]);
|
|
473
|
+
var cigaretteItems = this.computeCigaretteItems();
|
|
474
|
+
var _cigaretteItems$reduc = cigaretteItems.reduce(function (acc, _ref1, index) {
|
|
475
|
+
var id = _ref1.id,
|
|
476
|
+
visualWidth = _ref1.visualWidth;
|
|
477
|
+
var range = acc.range,
|
|
478
|
+
domain = acc.domain;
|
|
479
|
+
if (visualWidth) {
|
|
480
|
+
range.push(id);
|
|
481
|
+
if (domain.length === 0) {
|
|
482
|
+
domain.push(visualWidth + DEFAULT_GAP);
|
|
483
|
+
return acc;
|
|
484
|
+
}
|
|
485
|
+
if (index !== cigaretteItems.length - 1) {
|
|
486
|
+
var lastAddedDomain = domain[domain.length - 1];
|
|
487
|
+
domain.push(lastAddedDomain + visualWidth + DEFAULT_GAP);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
return acc;
|
|
491
|
+
}, {
|
|
492
|
+
range: [],
|
|
493
|
+
domain: []
|
|
494
|
+
}),
|
|
495
|
+
range = _cigaretteItems$reduc.range,
|
|
496
|
+
domain = _cigaretteItems$reduc.domain;
|
|
497
|
+
return scaleThreshold(domain, range);
|
|
302
498
|
}
|
|
303
499
|
}]);
|
|
304
|
-
return CigaretteChartComponent;
|
|
305
500
|
}(AbstractChart);
|
|
306
501
|
_defineProperty(CigaretteChartComponent, "displayName", 'Cigarette.Bar');
|
|
307
502
|
_defineProperty(CigaretteChartComponent, "defaultProps", function (props) {
|
|
@@ -317,7 +512,9 @@ _defineProperty(CigaretteChartComponent, "defaultProps", function (props) {
|
|
|
317
512
|
marginY: 0,
|
|
318
513
|
duration: 500,
|
|
319
514
|
plotWidth: !invertAxis && !props.plotWidth ? 44 : props.plotWidth,
|
|
320
|
-
plotHeight: invertAxis && !props.plotHeight ? 28 : props.plotHeight
|
|
515
|
+
plotHeight: invertAxis && !props.plotHeight ? 28 : props.plotHeight,
|
|
516
|
+
showPercentValueInTooltip: false,
|
|
517
|
+
minimalBarWidth: DEFAULT_MINIMAL_BAR_WIDTH
|
|
321
518
|
};
|
|
322
519
|
});
|
|
323
520
|
_defineProperty(CigaretteChartComponent, "enhance", [resolveColorEnhance(), uniqueIDEnhancement(), i18nEnhance(localizedMessages)]);
|