@semcore/d3-chart 16.0.2-prerelease.4 → 16.0.3-prerelease.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 +8 -0
- package/README.md +1 -50
- package/lib/cjs/AnimatedClipPath.js +13 -13
- package/lib/cjs/AnimatedClipPath.js.map +1 -1
- package/lib/cjs/Area.js +29 -27
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +97 -101
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +31 -32
- package/lib/cjs/Bar.js.map +1 -1
- package/lib/cjs/Bubble.js +26 -27
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/CompactHorizontalBar.js +65 -68
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +94 -95
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +36 -34
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +16 -16
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +30 -31
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +27 -33
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +23 -23
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Pattern.js +13 -11
- package/lib/cjs/Pattern.js.map +1 -1
- package/lib/cjs/Plot.js +26 -27
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +125 -132
- package/lib/cjs/Radar.js.map +1 -1
- package/lib/cjs/RadialTree.js +164 -145
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +47 -49
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ResponsiveContainer.js +19 -20
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +24 -25
- package/lib/cjs/ScatterPlot.js.map +1 -1
- package/lib/cjs/StackBar.js +20 -23
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/StackedArea.js +14 -15
- package/lib/cjs/StackedArea.js.map +1 -1
- package/lib/cjs/Tooltip.js +34 -35
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +28 -29
- 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 +11 -12
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +10 -11
- 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 +4 -5
- package/lib/cjs/a11y/focus.js.map +1 -1
- package/lib/cjs/a11y/hints.js +5 -8
- 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 +4 -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/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 +43 -46
- 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 +17 -20
- 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 +17 -21
- 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 +18 -19
- 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 +19 -23
- 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 +13 -14
- 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 +13 -14
- 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 +15 -16
- 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 +17 -18
- 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 +14 -17
- 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 +14 -15
- 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 +12 -13
- 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 +42 -20
- 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 +20 -20
- 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 +79 -67
- 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 -18
- 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 +18 -19
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js +22 -26
- 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 +7 -8
- 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/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- 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 +2 -2
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/cjs/utils.js +31 -52
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/AnimatedClipPath.js +11 -10
- package/lib/es6/AnimatedClipPath.js.map +1 -1
- package/lib/es6/Area.js +27 -24
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +96 -98
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +28 -27
- package/lib/es6/Bar.js.map +1 -1
- package/lib/es6/Bubble.js +24 -24
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/CompactHorizontalBar.js +63 -65
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +92 -92
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +36 -33
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +14 -13
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +27 -26
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +24 -28
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +20 -19
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Pattern.js +4 -2
- package/lib/es6/Pattern.js.map +1 -1
- package/lib/es6/Plot.js +25 -25
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +122 -128
- package/lib/es6/Radar.js.map +1 -1
- package/lib/es6/RadialTree.js +162 -142
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +44 -43
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ResponsiveContainer.js +17 -17
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +22 -22
- package/lib/es6/ScatterPlot.js.map +1 -1
- package/lib/es6/StackBar.js +17 -19
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/StackedArea.js +12 -12
- package/lib/es6/StackedArea.js.map +1 -1
- package/lib/es6/Tooltip.js +33 -33
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +26 -26
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +11 -11
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +9 -9
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/a11y/bezier.js.map +1 -1
- package/lib/es6/a11y/focus.js +3 -3
- package/lib/es6/a11y/focus.js.map +1 -1
- package/lib/es6/a11y/hints.js +1 -1
- 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 +2 -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/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 +40 -41
- 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 +16 -16
- 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 +15 -17
- 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 +17 -15
- 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 +17 -17
- 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 +11 -10
- 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 +12 -10
- 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 +14 -12
- 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 +15 -14
- 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 +12 -13
- 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 +13 -11
- 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 +10 -9
- 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 +40 -17
- 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 +18 -17
- 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 +77 -64
- 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 +16 -15
- 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 +16 -16
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.js +20 -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 +5 -5
- 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/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- 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 +1 -0
- package/lib/es6/types/index.d.js.map +1 -1
- package/lib/es6/utils.js +11 -13
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/AnimatedClipPath.mjs +10 -7
- package/lib/esm/Area.mjs +30 -25
- package/lib/esm/Axis.mjs +67 -67
- package/lib/esm/Bar.mjs +31 -28
- package/lib/esm/Bubble.mjs +28 -26
- package/lib/esm/CompactHorizontalBar.mjs +61 -60
- package/lib/esm/Donut.mjs +50 -49
- package/lib/esm/Dots.mjs +32 -27
- package/lib/esm/GroupBar.mjs +14 -11
- package/lib/esm/HorizontalBar.mjs +30 -27
- package/lib/esm/Hover.mjs +28 -30
- package/lib/esm/Line.mjs +23 -20
- package/lib/esm/Pattern.mjs +1 -1
- package/lib/esm/Plot.mjs +27 -25
- package/lib/esm/Radar.mjs +90 -94
- package/lib/esm/RadialTree.mjs +86 -86
- package/lib/esm/Reference.mjs +34 -31
- package/lib/esm/ResponsiveContainer.mjs +19 -17
- package/lib/esm/ScatterPlot.mjs +26 -24
- package/lib/esm/StackBar.mjs +17 -17
- package/lib/esm/StackedArea.mjs +13 -11
- package/lib/esm/Tooltip.mjs +35 -33
- package/lib/esm/Venn.mjs +29 -27
- package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
- package/lib/esm/a11y/PlotA11yModule.mjs +8 -8
- package/lib/esm/a11y/PlotA11yView.mjs +9 -9
- package/lib/esm/a11y/focus.mjs +3 -3
- package/lib/esm/a11y/hints.mjs +1 -1
- package/lib/esm/a11y/insights.mjs +77 -78
- package/lib/esm/a11y/intl.mjs +1 -1
- 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/view/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/component/Chart/AbstractChart.mjs +38 -37
- package/lib/esm/component/Chart/AreaChart.mjs +19 -15
- package/lib/esm/component/Chart/BarChart.mjs +20 -17
- package/lib/esm/component/Chart/BubbleChart.mjs +16 -13
- package/lib/esm/component/Chart/CigaretteChart.mjs +24 -17
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +18 -10
- package/lib/esm/component/Chart/DonutChart.mjs +13 -10
- package/lib/esm/component/Chart/HistogramChart.mjs +18 -12
- package/lib/esm/component/Chart/LineChart.mjs +18 -12
- package/lib/esm/component/Chart/RadarChart.mjs +19 -12
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +14 -11
- package/lib/esm/component/Chart/VennChart.mjs +12 -9
- package/lib/esm/component/Chart/index.mjs +6 -6
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +42 -17
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +21 -18
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +67 -56
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +23 -20
- package/lib/esm/component/Cigarette/Cigarette.mjs +18 -16
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +20 -19
- package/lib/esm/component/SvgElement.mjs +14 -0
- package/lib/esm/createElement.mjs +5 -5
- package/lib/esm/index.mjs +2 -0
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/utils.mjs +8 -8
- package/lib/types/Area.d.ts +7 -6
- package/lib/types/Axis.d.ts +4 -3
- package/lib/types/Bar.d.ts +7 -6
- package/lib/types/Bubble.d.ts +6 -5
- package/lib/types/ClipPath.d.ts +4 -3
- package/lib/types/CompactHorizontalBar.d.ts +7 -8
- package/lib/types/Donut.d.ts +6 -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 +7 -6
- package/lib/types/Pattern.d.ts +51 -51
- package/lib/types/Plot.d.ts +10 -9
- package/lib/types/Radar.d.ts +8 -7
- package/lib/types/RadialTree.d.ts +9 -54
- package/lib/types/Reference.d.ts +5 -4
- package/lib/types/ResponsiveContainer.d.ts +5 -4
- package/lib/types/ScatterPlot.d.ts +6 -5
- package/lib/types/StackBar.d.ts +7 -6
- package/lib/types/StackedArea.d.ts +6 -5
- package/lib/types/Tooltip.d.ts +14 -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 +1 -1
- 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/component/Chart/AbstractChart.d.ts +6 -6
- package/lib/types/component/Chart/AbstractChart.type.d.ts +27 -27
- package/lib/types/component/Chart/AreaChart.d.ts +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +6 -6
- package/lib/types/component/Chart/BarChart.d.ts +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +6 -6
- package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +4 -4
- package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +4 -4
- package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +5 -5
- package/lib/types/component/Chart/DonutChart.d.ts +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +5 -5
- package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +4 -4
- package/lib/types/component/Chart/LineChart.d.ts +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +7 -7
- package/lib/types/component/Chart/RadarChart.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +4 -4
- package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +5 -5
- package/lib/types/component/Chart/VennChart.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +4 -4
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +6 -4
- 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 +2 -1
- package/lib/types/utils.d.ts +6 -6
- package/package.json +22 -23
|
@@ -1,31 +1,38 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
-
import
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
5
6
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
|
+
import _get from "@babel/runtime/helpers/esm/get";
|
|
6
8
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
9
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import React from "react";
|
|
10
10
|
import { createComponent } from "@semcore/core";
|
|
11
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
12
|
+
import { Flex, Box } from "@semcore/flex-box";
|
|
13
|
+
import { Text } from "@semcore/typography";
|
|
11
14
|
import { scaleTime, scaleLinear } from "d3-scale";
|
|
15
|
+
import React from "react";
|
|
12
16
|
import Area from "../../Area.mjs";
|
|
13
17
|
import StackedArea from "../../StackedArea.mjs";
|
|
14
18
|
import { HoverLine } from "../../Hover.mjs";
|
|
15
19
|
import { minMax } from "../../utils.mjs";
|
|
16
20
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
17
|
-
import { Flex, Box } from "@semcore/flex-box";
|
|
18
|
-
import { Text } from "@semcore/typography";
|
|
19
21
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
20
|
-
|
|
22
|
+
function _callSuper(t, o, e) {
|
|
23
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
24
|
+
}
|
|
25
|
+
function _superPropGet(t, o, e, r) {
|
|
26
|
+
var p = _get(_getPrototypeOf(t.prototype), o, e);
|
|
27
|
+
return p;
|
|
28
|
+
}
|
|
21
29
|
var AreaChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
22
|
-
_inherits(AreaChartComponent2, _AbstractChart);
|
|
23
|
-
var _super = _createSuper(AreaChartComponent2);
|
|
24
30
|
function AreaChartComponent2() {
|
|
25
31
|
_classCallCheck(this, AreaChartComponent2);
|
|
26
|
-
return
|
|
32
|
+
return _callSuper(this, AreaChartComponent2, arguments);
|
|
27
33
|
}
|
|
28
|
-
|
|
34
|
+
_inherits(AreaChartComponent2, _AbstractChart);
|
|
35
|
+
return _createClass(AreaChartComponent2, [{
|
|
29
36
|
key: "xScale",
|
|
30
37
|
get: function get() {
|
|
31
38
|
var _this$asProps = this.asProps, xScale = _this$asProps.xScale, _this$asProps$marginY = _this$asProps.marginY, marginY = _this$asProps$marginY === void 0 ? 40 : _this$asProps$marginY, plotWidth = _this$asProps.plotWidth, data = _this$asProps.data, groupKey = _this$asProps.groupKey;
|
|
@@ -44,14 +51,12 @@ var AreaChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
44
51
|
key: "yScale",
|
|
45
52
|
get: function get() {
|
|
46
53
|
var _this$asProps2 = this.asProps, yScale = _this$asProps2.yScale, _this$asProps2$margin = _this$asProps2.marginX, marginX = _this$asProps2$margin === void 0 ? 24 : _this$asProps2$margin, plotHeight = _this$asProps2.plotHeight, stacked = _this$asProps2.stacked;
|
|
47
|
-
_this$asProps2.data;
|
|
48
|
-
_this$asProps2.groupKey;
|
|
49
54
|
if (yScale) {
|
|
50
55
|
return yScale;
|
|
51
56
|
}
|
|
52
|
-
var flatValues =
|
|
57
|
+
var flatValues = _superPropGet(AreaChartComponent2, "flatValues", this);
|
|
53
58
|
var min = Math.min.apply(Math, _toConsumableArray(flatValues));
|
|
54
|
-
var max = stacked ?
|
|
59
|
+
var max = stacked ? _superPropGet(AreaChartComponent2, "maxStackedValue", this) : Math.max.apply(Math, _toConsumableArray(flatValues));
|
|
55
60
|
return scaleLinear().range([plotHeight - marginX, this.plotPadding]).domain([min, max]);
|
|
56
61
|
}
|
|
57
62
|
}, {
|
|
@@ -135,7 +140,6 @@ var AreaChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
135
140
|
});
|
|
136
141
|
}
|
|
137
142
|
}]);
|
|
138
|
-
return AreaChartComponent2;
|
|
139
143
|
}(AbstractChart);
|
|
140
144
|
_defineProperty(AreaChartComponent, "displayName", "Chart.Area");
|
|
141
145
|
_defineProperty(AreaChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
@@ -2,36 +2,41 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
8
|
+
import _get from "@babel/runtime/helpers/esm/get";
|
|
8
9
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
9
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
10
10
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
11
|
-
import React from "react";
|
|
12
11
|
import { createComponent } from "@semcore/core";
|
|
12
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
13
|
+
import { Flex, Box } from "@semcore/flex-box";
|
|
14
|
+
import { Text } from "@semcore/typography";
|
|
13
15
|
import { scaleTime, scaleBand, scaleLinear } from "d3-scale";
|
|
16
|
+
import React from "react";
|
|
14
17
|
import Line from "../../Line.mjs";
|
|
15
18
|
import GroupBar from "../../GroupBar.mjs";
|
|
16
19
|
import StackBar from "../../StackBar.mjs";
|
|
17
20
|
import { HoverRect } from "../../Hover.mjs";
|
|
18
21
|
import { minMax } from "../../utils.mjs";
|
|
19
22
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
20
|
-
import { Flex, Box } from "@semcore/flex-box";
|
|
21
|
-
import { Text } from "@semcore/typography";
|
|
22
23
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
23
|
-
|
|
24
|
+
function _callSuper(t, o, e) {
|
|
25
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
26
|
+
}
|
|
27
|
+
function _superPropGet(t, o, e, r) {
|
|
28
|
+
var p = _get(_getPrototypeOf(t.prototype), o, e);
|
|
29
|
+
return p;
|
|
30
|
+
}
|
|
24
31
|
var BarChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
25
|
-
_inherits(BarChartComponent2, _AbstractChart);
|
|
26
|
-
var _super = _createSuper(BarChartComponent2);
|
|
27
32
|
function BarChartComponent2() {
|
|
28
33
|
var _this;
|
|
29
34
|
_classCallCheck(this, BarChartComponent2);
|
|
30
35
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
31
36
|
args[_key] = arguments[_key];
|
|
32
37
|
}
|
|
33
|
-
_this =
|
|
34
|
-
_defineProperty(
|
|
38
|
+
_this = _callSuper(this, BarChartComponent2, [].concat(args));
|
|
39
|
+
_defineProperty(_this, "handleClickBar", function(_data, e, barIndex, barKey) {
|
|
35
40
|
var onClickBar = _this.asProps.onClickBar;
|
|
36
41
|
if (onClickBar) {
|
|
37
42
|
onClickBar(barIndex, barKey, e);
|
|
@@ -39,7 +44,8 @@ var BarChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
39
44
|
});
|
|
40
45
|
return _this;
|
|
41
46
|
}
|
|
42
|
-
|
|
47
|
+
_inherits(BarChartComponent2, _AbstractChart);
|
|
48
|
+
return _createClass(BarChartComponent2, [{
|
|
43
49
|
key: "xScale",
|
|
44
50
|
get: function get() {
|
|
45
51
|
var _this$asProps = this.asProps, xScale = _this$asProps.xScale, invertAxis = _this$asProps.invertAxis;
|
|
@@ -70,9 +76,7 @@ var BarChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
70
76
|
}, {
|
|
71
77
|
key: "renderTrend",
|
|
72
78
|
value: function renderTrend(key) {
|
|
73
|
-
var _this$asProps3 = this.asProps, groupKey = _this$asProps3.groupKey;
|
|
74
|
-
_this$asProps3.type;
|
|
75
|
-
var invertAxis = _this$asProps3.invertAxis, trend = _this$asProps3.trend;
|
|
79
|
+
var _this$asProps3 = this.asProps, groupKey = _this$asProps3.groupKey, invertAxis = _this$asProps3.invertAxis, trend = _this$asProps3.trend;
|
|
76
80
|
var withTrend = this.state.withTrend;
|
|
77
81
|
var trendItem = trend === null || trend === void 0 ? void 0 : trend[key];
|
|
78
82
|
if (withTrend && trendItem) {
|
|
@@ -226,11 +230,10 @@ var BarChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
226
230
|
key: "valueScale",
|
|
227
231
|
get: function get() {
|
|
228
232
|
var _this$asProps7 = this.asProps, _this$asProps7$margin = _this$asProps7.marginY, marginY = _this$asProps7$margin === void 0 ? 40 : _this$asProps7$margin, _this$asProps7$margin2 = _this$asProps7.marginX, marginX = _this$asProps7$margin2 === void 0 ? 24 : _this$asProps7$margin2, plotWidth = _this$asProps7.plotWidth, plotHeight = _this$asProps7.plotHeight, invertAxis = _this$asProps7.invertAxis, type = _this$asProps7.type;
|
|
229
|
-
var max = type === "stack" ?
|
|
233
|
+
var max = type === "stack" ? _superPropGet(BarChartComponent2, "maxStackedValue", this) : Math.max.apply(Math, _toConsumableArray(_superPropGet(BarChartComponent2, "flatValues", this)));
|
|
230
234
|
return scaleLinear().range(invertAxis ? [marginY, plotWidth - this.plotPadding] : [plotHeight - marginX, this.plotPadding]).domain([0, max]);
|
|
231
235
|
}
|
|
232
236
|
}]);
|
|
233
|
-
return BarChartComponent2;
|
|
234
237
|
}(AbstractChart);
|
|
235
238
|
_defineProperty(BarChartComponent, "displayName", "Chart.Bar");
|
|
236
239
|
_defineProperty(BarChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
3
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
-
import React from "react";
|
|
7
8
|
import { createComponent } from "@semcore/core";
|
|
9
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
10
|
+
import { Text } from "@semcore/typography";
|
|
8
11
|
import { scaleLinear } from "d3-scale";
|
|
12
|
+
import React from "react";
|
|
9
13
|
import Bubble from "../../Bubble.mjs";
|
|
10
14
|
import { calculateBubbleDomain } from "../../utils.mjs";
|
|
11
15
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
12
|
-
import { Text } from "@semcore/typography";
|
|
13
16
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
14
|
-
|
|
17
|
+
function _callSuper(t, o, e) {
|
|
18
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
19
|
+
}
|
|
15
20
|
var BubbleChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
16
|
-
_inherits(BubbleChartComponent2, _AbstractChart);
|
|
17
|
-
var _super = _createSuper(BubbleChartComponent2);
|
|
18
21
|
function BubbleChartComponent2() {
|
|
19
22
|
_classCallCheck(this, BubbleChartComponent2);
|
|
20
|
-
return
|
|
23
|
+
return _callSuper(this, BubbleChartComponent2, arguments);
|
|
21
24
|
}
|
|
22
|
-
|
|
25
|
+
_inherits(BubbleChartComponent2, _AbstractChart);
|
|
26
|
+
return _createClass(BubbleChartComponent2, [{
|
|
23
27
|
key: "dataKeys",
|
|
24
28
|
get: function get() {
|
|
25
29
|
var data = this.props.data;
|
|
@@ -35,7 +39,7 @@ var BubbleChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
35
39
|
return data.map(function(item, index) {
|
|
36
40
|
var _legendProps$legendMa, _ref, _legendData$label, _legendData$icon, _legendData$defaultCh;
|
|
37
41
|
var key = index.toString();
|
|
38
|
-
var legendData = legendProps === null || legendProps === void 0
|
|
42
|
+
var legendData = legendProps === null || legendProps === void 0 || (_legendProps$legendMa = legendProps.legendMap) === null || _legendProps$legendMa === void 0 ? void 0 : _legendProps$legendMa[key];
|
|
39
43
|
if (item.color === void 0) {
|
|
40
44
|
item.color = _this.resolveColor(key, index);
|
|
41
45
|
}
|
|
@@ -109,11 +113,11 @@ var BubbleChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
109
113
|
return {
|
|
110
114
|
children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Bubble.Tooltip.Title, null, "Data"), /* @__PURE__ */ React.createElement(Text, {
|
|
111
115
|
tag: "div"
|
|
112
|
-
}, "X axis ", data[index].x), /* @__PURE__ */ React.createElement(Text, {
|
|
116
|
+
}, "X axis", " ", data[index].x), /* @__PURE__ */ React.createElement(Text, {
|
|
113
117
|
tag: "div"
|
|
114
|
-
}, "Y axis ", data[index].y), /* @__PURE__ */ React.createElement(Text, {
|
|
118
|
+
}, "Y axis", " ", data[index].y), /* @__PURE__ */ React.createElement(Text, {
|
|
115
119
|
tag: "div"
|
|
116
|
-
}, "Value ", data[index].value))
|
|
120
|
+
}, "Value", " ", data[index].value))
|
|
117
121
|
};
|
|
118
122
|
});
|
|
119
123
|
}
|
|
@@ -125,7 +129,6 @@ var BubbleChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
125
129
|
});
|
|
126
130
|
}
|
|
127
131
|
}]);
|
|
128
|
-
return BubbleChartComponent2;
|
|
129
132
|
}(AbstractChart);
|
|
130
133
|
_defineProperty(BubbleChartComponent, "displayName", "Chart.Bubble");
|
|
131
134
|
_defineProperty(BubbleChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
@@ -2,44 +2,52 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
8
|
+
import _get from "@babel/runtime/helpers/esm/get";
|
|
8
9
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
9
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
10
10
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
11
11
|
import { createComponent, sstyled, assignProps } from "@semcore/core";
|
|
12
|
-
import
|
|
12
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
13
|
+
import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
|
|
14
|
+
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
13
15
|
import Divider from "@semcore/divider";
|
|
14
16
|
import { Flex, Box } from "@semcore/flex-box";
|
|
15
17
|
import { Text } from "@semcore/typography";
|
|
16
|
-
import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
|
|
17
|
-
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
18
18
|
import { scaleBand, scaleLinear } from "d3-scale";
|
|
19
|
+
import React from "react";
|
|
19
20
|
import Plot from "../../Plot.mjs";
|
|
20
21
|
import { HoverRect } from "../../Hover.mjs";
|
|
21
22
|
import { interpolateValue, scaleToBand } from "../../utils.mjs";
|
|
22
|
-
import AnimatedClipPath from "../../AnimatedClipPath.mjs";
|
|
23
23
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
24
|
-
import
|
|
24
|
+
import AnimatedClipPath from "../../AnimatedClipPath.mjs";
|
|
25
25
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
26
|
-
import
|
|
26
|
+
import Cigarette from "../Cigarette/Cigarette.mjs";
|
|
27
|
+
function _callSuper(t, o, e) {
|
|
28
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
29
|
+
}
|
|
30
|
+
function _superPropGet(t, o, e, r) {
|
|
31
|
+
var p = _get(_getPrototypeOf(t.prototype), o, e);
|
|
32
|
+
return 2 & r && "function" == typeof p ? function(t2) {
|
|
33
|
+
return p.apply(e, t2);
|
|
34
|
+
} : p;
|
|
35
|
+
}
|
|
27
36
|
var wMin = 2;
|
|
28
37
|
var CigaretteChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
29
|
-
_inherits(CigaretteChartComponent2, _AbstractChart);
|
|
30
|
-
var _super = _createSuper(CigaretteChartComponent2);
|
|
31
38
|
function CigaretteChartComponent2() {
|
|
32
39
|
var _this;
|
|
33
40
|
_classCallCheck(this, CigaretteChartComponent2);
|
|
34
41
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
35
42
|
args[_key] = arguments[_key];
|
|
36
43
|
}
|
|
37
|
-
_this =
|
|
38
|
-
_defineProperty(
|
|
39
|
-
_defineProperty(
|
|
44
|
+
_this = _callSuper(this, CigaretteChartComponent2, [].concat(args));
|
|
45
|
+
_defineProperty(_this, "plotPadding", 0);
|
|
46
|
+
_defineProperty(_this, "offset", 0);
|
|
40
47
|
return _this;
|
|
41
48
|
}
|
|
42
|
-
|
|
49
|
+
_inherits(CigaretteChartComponent2, _AbstractChart);
|
|
50
|
+
return _createClass(CigaretteChartComponent2, [{
|
|
43
51
|
key: "resolveColor",
|
|
44
52
|
value: function resolveColor(id, index) {
|
|
45
53
|
var _this$props$colorMap$, _this$props$colorMap;
|
|
@@ -48,7 +56,7 @@ var CigaretteChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
48
56
|
}, {
|
|
49
57
|
key: "getDefaultDataDefinitions",
|
|
50
58
|
value: function getDefaultDataDefinitions() {
|
|
51
|
-
var dataDefinitions =
|
|
59
|
+
var dataDefinitions = _superPropGet(CigaretteChartComponent2, "getDefaultDataDefinitions", this, 3)([]);
|
|
52
60
|
return dataDefinitions.map(function(dataDef) {
|
|
53
61
|
dataDef.columns = dataDef.columns.slice(1);
|
|
54
62
|
return dataDef;
|
|
@@ -268,7 +276,6 @@ var CigaretteChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
268
276
|
return scaleLinear().range(invertAxis ? [0, plotWidth] : [plotHeight, 0]).domain([0, max]);
|
|
269
277
|
}
|
|
270
278
|
}]);
|
|
271
|
-
return CigaretteChartComponent2;
|
|
272
279
|
}(AbstractChart);
|
|
273
280
|
_defineProperty(CigaretteChartComponent, "displayName", "Cigarette.Bar");
|
|
274
281
|
_defineProperty(CigaretteChartComponent, "defaultProps", function(props) {
|
|
@@ -1,26 +1,35 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
-
import
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
5
6
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
|
+
import _get from "@babel/runtime/helpers/esm/get";
|
|
6
8
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
9
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import React from "react";
|
|
10
10
|
import { createComponent } from "@semcore/core";
|
|
11
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
11
12
|
import { scaleBand, scaleLinear } from "d3-scale";
|
|
13
|
+
import React from "react";
|
|
12
14
|
import CompactHorizontalBar from "../../CompactHorizontalBar.mjs";
|
|
13
15
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
14
16
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
15
|
-
|
|
17
|
+
function _callSuper(t, o, e) {
|
|
18
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
19
|
+
}
|
|
20
|
+
function _superPropGet(t, o, e, r) {
|
|
21
|
+
var p = _get(_getPrototypeOf(t.prototype), o, e);
|
|
22
|
+
return 2 & r && "function" == typeof p ? function(t2) {
|
|
23
|
+
return p.apply(e, t2);
|
|
24
|
+
} : p;
|
|
25
|
+
}
|
|
16
26
|
var CompactHorizontalBarChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
17
|
-
_inherits(CompactHorizontalBarChartComponent2, _AbstractChart);
|
|
18
|
-
var _super = _createSuper(CompactHorizontalBarChartComponent2);
|
|
19
27
|
function CompactHorizontalBarChartComponent2() {
|
|
20
28
|
_classCallCheck(this, CompactHorizontalBarChartComponent2);
|
|
21
|
-
return
|
|
29
|
+
return _callSuper(this, CompactHorizontalBarChartComponent2, arguments);
|
|
22
30
|
}
|
|
23
|
-
|
|
31
|
+
_inherits(CompactHorizontalBarChartComponent2, _AbstractChart);
|
|
32
|
+
return _createClass(CompactHorizontalBarChartComponent2, [{
|
|
24
33
|
key: "xScale",
|
|
25
34
|
get: function get() {
|
|
26
35
|
var _this$asProps$xScale;
|
|
@@ -90,13 +99,12 @@ var CompactHorizontalBarChartComponent = /* @__PURE__ */ function(_AbstractChart
|
|
|
90
99
|
key: "valueScale",
|
|
91
100
|
get: function get() {
|
|
92
101
|
var _this$asProps4 = this.asProps, _this$asProps4$margin = _this$asProps4.marginY, marginY = _this$asProps4$margin === void 0 ? 0 : _this$asProps4$margin, plotWidth = _this$asProps4.plotWidth;
|
|
93
|
-
var sum = _toConsumableArray(
|
|
102
|
+
var sum = _toConsumableArray(_superPropGet(CompactHorizontalBarChartComponent2, "flatValues", this, 1).values()).reduce(function(acc, d) {
|
|
94
103
|
return acc + d;
|
|
95
104
|
}, 0);
|
|
96
105
|
return scaleLinear().range([marginY, plotWidth]).domain([marginY, sum]);
|
|
97
106
|
}
|
|
98
107
|
}]);
|
|
99
|
-
return CompactHorizontalBarChartComponent2;
|
|
100
108
|
}(AbstractChart);
|
|
101
109
|
_defineProperty(CompactHorizontalBarChartComponent, "displayName", "Chart.CompactHorizontalBar");
|
|
102
110
|
_defineProperty(CompactHorizontalBarChartComponent, "defaultProps", {
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
3
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
-
import React from "react";
|
|
7
8
|
import { createComponent } from "@semcore/core";
|
|
9
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
10
|
+
import { Flex } from "@semcore/flex-box";
|
|
11
|
+
import { Text } from "@semcore/typography";
|
|
8
12
|
import { scaleLinear } from "d3-scale";
|
|
13
|
+
import React from "react";
|
|
9
14
|
import Donut from "../../Donut.mjs";
|
|
10
15
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
11
|
-
import { Text } from "@semcore/typography";
|
|
12
|
-
import { Flex } from "@semcore/flex-box";
|
|
13
16
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
14
|
-
|
|
17
|
+
function _callSuper(t, o, e) {
|
|
18
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
19
|
+
}
|
|
15
20
|
var DonutChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
16
|
-
_inherits(DonutChartComponent2, _AbstractChart);
|
|
17
|
-
var _super = _createSuper(DonutChartComponent2);
|
|
18
21
|
function DonutChartComponent2() {
|
|
19
22
|
_classCallCheck(this, DonutChartComponent2);
|
|
20
|
-
return
|
|
23
|
+
return _callSuper(this, DonutChartComponent2, arguments);
|
|
21
24
|
}
|
|
22
|
-
|
|
25
|
+
_inherits(DonutChartComponent2, _AbstractChart);
|
|
26
|
+
return _createClass(DonutChartComponent2, [{
|
|
23
27
|
key: "xScale",
|
|
24
28
|
get: function get() {
|
|
25
29
|
var xScale = this.asProps.xScale;
|
|
@@ -96,7 +100,6 @@ var DonutChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
96
100
|
});
|
|
97
101
|
}
|
|
98
102
|
}]);
|
|
99
|
-
return DonutChartComponent2;
|
|
100
103
|
}(AbstractChart);
|
|
101
104
|
_defineProperty(DonutChartComponent, "displayName", "Chart.Donut");
|
|
102
105
|
_defineProperty(DonutChartComponent, "defaultProps", {
|
|
@@ -2,31 +2,38 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
-
import
|
|
5
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
6
7
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
8
|
+
import _get from "@babel/runtime/helpers/esm/get";
|
|
7
9
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
9
10
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
10
|
-
import React from "react";
|
|
11
11
|
import { createComponent } from "@semcore/core";
|
|
12
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
13
|
+
import { Flex, Box } from "@semcore/flex-box";
|
|
14
|
+
import { Text } from "@semcore/typography";
|
|
12
15
|
import { scaleTime, scaleBand, scaleLinear } from "d3-scale";
|
|
16
|
+
import React from "react";
|
|
13
17
|
import Bar from "../../Bar.mjs";
|
|
14
18
|
import StackBar from "../../StackBar.mjs";
|
|
15
19
|
import { HoverRect } from "../../Hover.mjs";
|
|
16
20
|
import { minMax } from "../../utils.mjs";
|
|
17
21
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
18
|
-
import { Flex, Box } from "@semcore/flex-box";
|
|
19
|
-
import { Text } from "@semcore/typography";
|
|
20
22
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
21
|
-
|
|
23
|
+
function _callSuper(t, o, e) {
|
|
24
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
25
|
+
}
|
|
26
|
+
function _superPropGet(t, o, e, r) {
|
|
27
|
+
var p = _get(_getPrototypeOf(t.prototype), o, e);
|
|
28
|
+
return p;
|
|
29
|
+
}
|
|
22
30
|
var HistogramChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
23
|
-
_inherits(HistogramChartComponent2, _AbstractChart);
|
|
24
|
-
var _super = _createSuper(HistogramChartComponent2);
|
|
25
31
|
function HistogramChartComponent2() {
|
|
26
32
|
_classCallCheck(this, HistogramChartComponent2);
|
|
27
|
-
return
|
|
33
|
+
return _callSuper(this, HistogramChartComponent2, arguments);
|
|
28
34
|
}
|
|
29
|
-
|
|
35
|
+
_inherits(HistogramChartComponent2, _AbstractChart);
|
|
36
|
+
return _createClass(HistogramChartComponent2, [{
|
|
30
37
|
key: "xScale",
|
|
31
38
|
get: function get() {
|
|
32
39
|
var _this$asProps = this.asProps, xScale = _this$asProps.xScale, _this$asProps$marginY = _this$asProps.marginY, marginY = _this$asProps$marginY === void 0 ? 30 : _this$asProps$marginY, _this$asProps$marginX = _this$asProps.marginX, marginX = _this$asProps$marginX === void 0 ? 30 : _this$asProps$marginX, plotWidth = _this$asProps.plotWidth, plotHeight = _this$asProps.plotHeight, invertAxis = _this$asProps.invertAxis, data = _this$asProps.data, groupKey = _this$asProps.groupKey;
|
|
@@ -63,7 +70,7 @@ var HistogramChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
63
70
|
return max2;
|
|
64
71
|
}, 0);
|
|
65
72
|
} else {
|
|
66
|
-
var flatValues =
|
|
73
|
+
var flatValues = _superPropGet(HistogramChartComponent2, "flatValues", this);
|
|
67
74
|
max = Math.max.apply(Math, _toConsumableArray(flatValues));
|
|
68
75
|
}
|
|
69
76
|
return yScale !== null && yScale !== void 0 ? yScale : scaleLinear().range(invertAxis ? [marginY, plotWidth - this.plotPadding] : [plotHeight - marginX, this.plotPadding]).domain([0, max]);
|
|
@@ -156,7 +163,6 @@ var HistogramChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
156
163
|
});
|
|
157
164
|
}
|
|
158
165
|
}]);
|
|
159
|
-
return HistogramChartComponent2;
|
|
160
166
|
}(AbstractChart);
|
|
161
167
|
_defineProperty(HistogramChartComponent, "displayName", "Chart.Histogram");
|
|
162
168
|
_defineProperty(HistogramChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
@@ -1,30 +1,37 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
-
import
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
5
6
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
|
+
import _get from "@babel/runtime/helpers/esm/get";
|
|
6
8
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
9
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import React from "react";
|
|
10
10
|
import { createComponent } from "@semcore/core";
|
|
11
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
12
|
+
import { Flex, Box } from "@semcore/flex-box";
|
|
13
|
+
import { Text } from "@semcore/typography";
|
|
11
14
|
import { scaleTime, scaleLinear } from "d3-scale";
|
|
15
|
+
import React from "react";
|
|
12
16
|
import Line from "../../Line.mjs";
|
|
13
17
|
import { HoverLine } from "../../Hover.mjs";
|
|
14
18
|
import { minMax } from "../../utils.mjs";
|
|
15
19
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
16
|
-
import { Flex, Box } from "@semcore/flex-box";
|
|
17
|
-
import { Text } from "@semcore/typography";
|
|
18
20
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
19
|
-
|
|
21
|
+
function _callSuper(t, o, e) {
|
|
22
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
23
|
+
}
|
|
24
|
+
function _superPropGet(t, o, e, r) {
|
|
25
|
+
var p = _get(_getPrototypeOf(t.prototype), o, e);
|
|
26
|
+
return p;
|
|
27
|
+
}
|
|
20
28
|
var LineChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
21
|
-
_inherits(LineChartComponent2, _AbstractChart);
|
|
22
|
-
var _super = _createSuper(LineChartComponent2);
|
|
23
29
|
function LineChartComponent2() {
|
|
24
30
|
_classCallCheck(this, LineChartComponent2);
|
|
25
|
-
return
|
|
31
|
+
return _callSuper(this, LineChartComponent2, arguments);
|
|
26
32
|
}
|
|
27
|
-
|
|
33
|
+
_inherits(LineChartComponent2, _AbstractChart);
|
|
34
|
+
return _createClass(LineChartComponent2, [{
|
|
28
35
|
key: "xScale",
|
|
29
36
|
get: function get() {
|
|
30
37
|
var _this$asProps = this.asProps, xScale = _this$asProps.xScale, _this$asProps$marginY = _this$asProps.marginY, marginY = _this$asProps$marginY === void 0 ? 30 : _this$asProps$marginY, plotWidth = _this$asProps.plotWidth, data = _this$asProps.data, groupKey = _this$asProps.groupKey;
|
|
@@ -46,7 +53,7 @@ var LineChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
46
53
|
if (yScale) {
|
|
47
54
|
return yScale;
|
|
48
55
|
}
|
|
49
|
-
var flatValues =
|
|
56
|
+
var flatValues = _superPropGet(LineChartComponent2, "flatValues", this);
|
|
50
57
|
var max = Math.max.apply(Math, _toConsumableArray(flatValues));
|
|
51
58
|
var min = Math.min.apply(Math, _toConsumableArray(flatValues));
|
|
52
59
|
return scaleLinear().range([plotHeight - marginX, this.plotPadding]).domain([min, max]);
|
|
@@ -121,7 +128,6 @@ var LineChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
121
128
|
});
|
|
122
129
|
}
|
|
123
130
|
}]);
|
|
124
|
-
return LineChartComponent2;
|
|
125
131
|
}(AbstractChart);
|
|
126
132
|
_defineProperty(LineChartComponent, "displayName", "Chart.Line");
|
|
127
133
|
_defineProperty(LineChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
@@ -1,31 +1,39 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
-
import
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
5
6
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
|
+
import _get from "@babel/runtime/helpers/esm/get";
|
|
6
8
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
9
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import React from "react";
|
|
10
10
|
import { createComponent } from "@semcore/core";
|
|
11
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
11
12
|
import { scaleLinear } from "d3-scale";
|
|
13
|
+
import React from "react";
|
|
12
14
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
13
15
|
import Radar from "../../Radar.mjs";
|
|
14
16
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
15
|
-
|
|
17
|
+
function _callSuper(t, o, e) {
|
|
18
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
19
|
+
}
|
|
20
|
+
function _superPropGet(t, o, e, r) {
|
|
21
|
+
var p = _get(_getPrototypeOf(t.prototype), o, e);
|
|
22
|
+
return 2 & r && "function" == typeof p ? function(t2) {
|
|
23
|
+
return p.apply(e, t2);
|
|
24
|
+
} : p;
|
|
25
|
+
}
|
|
16
26
|
var RadarChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
17
|
-
_inherits(RadarChartComponent2, _AbstractChart);
|
|
18
|
-
var _super = _createSuper(RadarChartComponent2);
|
|
19
27
|
function RadarChartComponent2() {
|
|
20
28
|
_classCallCheck(this, RadarChartComponent2);
|
|
21
|
-
return
|
|
29
|
+
return _callSuper(this, RadarChartComponent2, arguments);
|
|
22
30
|
}
|
|
23
|
-
|
|
31
|
+
_inherits(RadarChartComponent2, _AbstractChart);
|
|
32
|
+
return _createClass(RadarChartComponent2, [{
|
|
24
33
|
key: "renderChart",
|
|
25
34
|
value: function renderChart() {
|
|
26
35
|
var _this$asProps = this.asProps, groupKey = _this$asProps.groupKey, showDots = _this$asProps.showDots, circle = _this$asProps.circle;
|
|
27
|
-
var
|
|
28
|
-
_this$state.highlightedLine;
|
|
36
|
+
var dataDefinitions = this.state.dataDefinitions;
|
|
29
37
|
return /* @__PURE__ */ React.createElement(Radar, {
|
|
30
38
|
scale: this.xScale,
|
|
31
39
|
type: circle ? "circle" : void 0
|
|
@@ -103,10 +111,9 @@ var RadarChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
103
111
|
}, {
|
|
104
112
|
key: "domain",
|
|
105
113
|
get: function get() {
|
|
106
|
-
return [Math.min.apply(Math, _toConsumableArray(
|
|
114
|
+
return [Math.min.apply(Math, _toConsumableArray(_superPropGet(RadarChartComponent2, "flatValues", this, 1))), Math.max.apply(Math, _toConsumableArray(_superPropGet(RadarChartComponent2, "flatValues", this, 1)))];
|
|
107
115
|
}
|
|
108
116
|
}]);
|
|
109
|
-
return RadarChartComponent2;
|
|
110
117
|
}(AbstractChart);
|
|
111
118
|
_defineProperty(RadarChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
112
119
|
var RadarChart = createComponent(RadarChartComponent);
|