@semcore/d3-chart 17.1.0 → 17.2.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/CHANGELOG.md +6 -0
- package/lib/cjs/Area.js +17 -11
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +28 -16
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +22 -16
- package/lib/cjs/Bar.js.map +1 -1
- package/lib/cjs/Bubble.js +20 -14
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/CompactHorizontalBar.js +22 -16
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +15 -9
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +8 -8
- package/lib/cjs/GroupBar.js +6 -0
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +22 -16
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +3 -3
- package/lib/cjs/Line.js +15 -9
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Plot.js +8 -2
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +25 -19
- package/lib/cjs/Radar.js.map +1 -1
- package/lib/cjs/RadialTree.js +17 -12
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +12 -12
- package/lib/cjs/ResponsiveContainer.js +6 -0
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +15 -9
- package/lib/cjs/ScatterPlot.js.map +1 -1
- package/lib/cjs/StackBar.js +6 -0
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/StackedArea.js +6 -0
- package/lib/cjs/StackedArea.js.map +1 -1
- package/lib/cjs/Tooltip.js +10 -9
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +15 -9
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/lib/cjs/component/Chart/AbstractChart.js +4 -10
- package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.js +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +9 -3
- 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 +7 -1
- 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 +6 -0
- 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 +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +6 -0
- 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 +6 -0
- 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/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +10 -4
- 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 +80 -44
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +4 -0
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +12 -6
- 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/Cigarette/Cigarette.js +6 -0
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/style/plot.shadow.css +1 -1
- package/lib/es6/Area.js +17 -11
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +28 -16
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +22 -16
- package/lib/es6/Bar.js.map +1 -1
- package/lib/es6/Bubble.js +20 -14
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/CompactHorizontalBar.js +22 -16
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +15 -9
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +8 -8
- package/lib/es6/GroupBar.js +6 -0
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +22 -16
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +3 -3
- package/lib/es6/Line.js +15 -9
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Plot.js +8 -2
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +25 -19
- package/lib/es6/Radar.js.map +1 -1
- package/lib/es6/RadialTree.js +17 -12
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +12 -12
- package/lib/es6/ResponsiveContainer.js +6 -0
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +15 -9
- package/lib/es6/ScatterPlot.js.map +1 -1
- package/lib/es6/StackBar.js +6 -0
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/StackedArea.js +6 -0
- package/lib/es6/StackedArea.js.map +1 -1
- package/lib/es6/Tooltip.js +10 -9
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +15 -9
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/lib/es6/a11y/PlotA11yView.js +2 -2
- package/lib/es6/component/Chart/AbstractChart.js +4 -10
- package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.js +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +9 -3
- 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 +7 -1
- 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 +6 -0
- 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 +12 -0
- 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 +12 -0
- 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 -0
- 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 +6 -0
- 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 +7 -0
- 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/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +10 -4
- 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 +80 -44
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js +4 -0
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +12 -6
- 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/Cigarette/Cigarette.js +6 -0
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/style/plot.shadow.css +1 -1
- package/lib/esm/AnimatedClipPath.mjs +2 -2
- package/lib/esm/Area.mjs +13 -13
- package/lib/esm/Axis.mjs +19 -19
- package/lib/esm/Bar.mjs +18 -18
- package/lib/esm/Bubble.mjs +16 -16
- package/lib/esm/CompactHorizontalBar.mjs +18 -18
- package/lib/esm/Donut.mjs +11 -11
- package/lib/esm/Dots.mjs +9 -9
- package/lib/esm/GroupBar.mjs +1 -1
- package/lib/esm/HorizontalBar.mjs +18 -18
- package/lib/esm/Hover.mjs +5 -5
- package/lib/esm/Line.mjs +11 -11
- package/lib/esm/Pattern.mjs +1 -1
- package/lib/esm/Plot.mjs +4 -4
- package/lib/esm/Radar.mjs +21 -21
- package/lib/esm/RadialTree.mjs +14 -14
- package/lib/esm/Reference.mjs +14 -14
- package/lib/esm/ResponsiveContainer.mjs +1 -1
- package/lib/esm/ScatterPlot.mjs +11 -11
- package/lib/esm/StackBar.mjs +1 -1
- package/lib/esm/StackedArea.mjs +1 -1
- package/lib/esm/Tooltip.mjs +12 -11
- package/lib/esm/Venn.mjs +12 -12
- package/lib/esm/a11y/PlotA11yModule.mjs +4 -4
- package/lib/esm/a11y/PlotA11yView.mjs +3 -3
- package/lib/esm/component/Chart/AbstractChart.mjs +6 -12
- package/lib/esm/component/Chart/AreaChart.mjs +7 -1
- package/lib/esm/component/Chart/BarChart.mjs +8 -2
- package/lib/esm/component/Chart/BubbleChart.mjs +7 -1
- package/lib/esm/component/Chart/CigaretteChart.mjs +3 -3
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +2 -2
- package/lib/esm/component/Chart/DonutChart.mjs +1 -1
- package/lib/esm/component/Chart/HistogramChart.mjs +8 -2
- package/lib/esm/component/Chart/LineChart.mjs +7 -1
- package/lib/esm/component/Chart/RadarChart.mjs +7 -1
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +1 -1
- package/lib/esm/component/Chart/VennChart.mjs +1 -1
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +1 -1
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +6 -6
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +76 -46
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.type.mjs +4 -0
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +8 -8
- package/lib/esm/component/Cigarette/Cigarette.mjs +1 -1
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +1 -1
- package/lib/esm/createElement.mjs +1 -1
- package/lib/esm/style/plot.shadow.css +1 -1
- package/lib/types/RadialTree.d.ts +5 -0
- package/lib/types/component/Chart/AbstractChart.d.ts +2 -2
- package/lib/types/component/Chart/AreaChart.d.ts +5 -0
- package/lib/types/component/Chart/AreaChart.type.d.ts +6 -0
- package/lib/types/component/Chart/BarChart.d.ts +5 -0
- package/lib/types/component/Chart/BarChart.type.d.ts +6 -0
- package/lib/types/component/Chart/BubbleChart.d.ts +5 -0
- package/lib/types/component/Chart/BubbleChart.type.d.ts +6 -0
- package/lib/types/component/Chart/CigaretteChart.d.ts +5 -0
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +14 -0
- package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +5 -0
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +7 -0
- package/lib/types/component/Chart/DonutChart.d.ts +5 -0
- package/lib/types/component/Chart/DonutChart.type.d.ts +7 -0
- package/lib/types/component/Chart/HistogramChart.d.ts +5 -0
- package/lib/types/component/Chart/HistogramChart.type.d.ts +6 -0
- package/lib/types/component/Chart/LineChart.d.ts +5 -0
- package/lib/types/component/Chart/LineChart.type.d.ts +6 -0
- package/lib/types/component/Chart/RadarChart.d.ts +5 -0
- package/lib/types/component/Chart/RadarChart.type.d.ts +6 -0
- package/lib/types/component/Chart/ScatterPlotChart.d.ts +5 -0
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +7 -0
- package/lib/types/component/Chart/VennChart.d.ts +5 -0
- package/lib/types/component/Chart/VennChart.type.d.ts +6 -0
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +2 -2
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +5 -0
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +4 -0
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +5 -0
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +15 -7
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts +5 -0
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +3 -0
- package/lib/types/component/Cigarette/Cigarette.d.ts +5 -0
- package/package.json +13 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { createComponent } from "@semcore/core";
|
|
3
3
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
4
4
|
import { scaleTime, scaleLinear } from "d3-scale";
|
|
@@ -103,6 +103,12 @@ class LineChartComponent extends AbstractChart {
|
|
|
103
103
|
}
|
|
104
104
|
_defineProperty(LineChartComponent, "displayName", "Chart.Line");
|
|
105
105
|
_defineProperty(LineChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
106
|
+
_defineProperty(LineChartComponent, "defaultProps", {
|
|
107
|
+
direction: "column",
|
|
108
|
+
showXAxis: true,
|
|
109
|
+
showYAxis: true,
|
|
110
|
+
showTooltip: true
|
|
111
|
+
});
|
|
106
112
|
const LineChart = createComponent(LineChartComponent);
|
|
107
113
|
export {
|
|
108
114
|
LineChart
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { createComponent } from "@semcore/core";
|
|
3
3
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
4
4
|
import { scaleLinear } from "d3-scale";
|
|
@@ -89,6 +89,12 @@ class RadarChartComponent extends AbstractChart {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
_defineProperty(RadarChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
92
|
+
_defineProperty(RadarChartComponent, "defaultProps", {
|
|
93
|
+
direction: "column",
|
|
94
|
+
showXAxis: true,
|
|
95
|
+
showYAxis: true,
|
|
96
|
+
showTooltip: true
|
|
97
|
+
});
|
|
92
98
|
const RadarChart = createComponent(RadarChartComponent);
|
|
93
99
|
export {
|
|
94
100
|
RadarChart
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { createComponent } from "@semcore/core";
|
|
3
3
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
4
4
|
import { Text } from "@semcore/typography";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { createComponent } from "@semcore/core";
|
|
3
3
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
4
4
|
import { Text } from "@semcore/typography";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { Component } from "@semcore/core";
|
|
3
3
|
import { makeDataHintsHandlers } from "../../a11y/hints.mjs";
|
|
4
4
|
class BaseLegend extends Component {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { sstyled, assignProps, createComponent } from "@semcore/core";
|
|
3
3
|
import { Flex } from "@semcore/base-components";
|
|
4
4
|
import Checkbox from "@semcore/checkbox";
|
|
@@ -13,14 +13,14 @@ const style = (
|
|
|
13
13
|
/*__reshadow_css_start__*/
|
|
14
14
|
(sstyled.insert(
|
|
15
15
|
/*__inner_css_start__*/
|
|
16
|
-
".
|
|
16
|
+
".___SLegendFlex_1fc9g_gg_._direction_row_1fc9g_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_1fc9g_gg_._direction_column_1fc9g_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}",
|
|
17
17
|
/*__inner_css_end__*/
|
|
18
|
-
"
|
|
18
|
+
"1fc9g_gg_"
|
|
19
19
|
), /*__reshadow_css_end__*/
|
|
20
20
|
{
|
|
21
|
-
"__SLegendFlex": "
|
|
22
|
-
"_direction_row": "
|
|
23
|
-
"_direction_column": "
|
|
21
|
+
"__SLegendFlex": "___SLegendFlex_1fc9g_gg_",
|
|
22
|
+
"_direction_row": "_direction_row_1fc9g_gg_",
|
|
23
|
+
"_direction_column": "_direction_column_1fc9g_gg_"
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
26
|
class LegendFlexRoot extends BaseLegend {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { sstyled, Component, assignProps, createComponent } from "@semcore/core";
|
|
3
3
|
import { Flex, Box } from "@semcore/base-components";
|
|
4
4
|
import Checkbox from "@semcore/checkbox";
|
|
@@ -14,27 +14,27 @@ const style = (
|
|
|
14
14
|
/*__reshadow_css_start__*/
|
|
15
15
|
(sstyled.insert(
|
|
16
16
|
/*__inner_css_start__*/
|
|
17
|
-
'.
|
|
17
|
+
'.___SLegendItem_uk6mx_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_uk6mx_gg_:hover{cursor:pointer}.___SLegendItem_uk6mx_gg_.__disabled_uk6mx_gg_:hover{cursor:default}}.___SPointShape_uk6mx_gg_.__color_uk6mx_gg_{background-color:var(--color_uk6mx);margin-right:8px;flex-shrink:0}.___SPointShape_uk6mx_gg_._shape_Circle_uk6mx_gg_._size_l_uk6mx_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_uk6mx_gg_._shape_Circle_uk6mx_gg_._size_m_uk6mx_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_uk6mx_gg_._shape_Line_uk6mx_gg_._size_l_uk6mx_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_uk6mx_gg_._shape_Line_uk6mx_gg_._size_m_uk6mx_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_uk6mx_gg_._shape_Square_uk6mx_gg_._size_l_uk6mx_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_uk6mx_gg_._shape_Square_uk6mx_gg_._size_m_uk6mx_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_uk6mx_gg_._shape_Pattern_uk6mx_gg_{background-color:initial;margin-right:4px}.___SIcon_uk6mx_gg_{line-height:0;margin-right:4px}.___SIcon_uk6mx_gg_._size_l_uk6mx_gg_{margin-top:4px}.___SIcon_uk6mx_gg_._size_m_uk6mx_gg_{margin-top:2px}.___SLabel_uk6mx_gg_{min-width:0}.___SAdditionalLabel_uk6mx_gg_._size_l_uk6mx_gg_,.___SCount_uk6mx_gg_._size_l_uk6mx_gg_,.___SLabel_uk6mx_gg_._size_l_uk6mx_gg_{font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,150%)}.___SAdditionalLabel_uk6mx_gg_._size_m_uk6mx_gg_,.___SCount_uk6mx_gg_._size_m_uk6mx_gg_,.___SLabel_uk6mx_gg_._size_m_uk6mx_gg_{font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,142%)}.___SAdditionalLabel_uk6mx_gg_,.___SCount_uk6mx_gg_{margin-left:4px}.___SAdditionalLabel_uk6mx_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_uk6mx_gg_:before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary,#00030095);height:4px;width:4px;border-radius:2px;margin-right:4px}@supports (color:color(display-p3 0 0 0%)){.___SAdditionalLabel_uk6mx_gg_:before{background-color:var(--intergalactic-text-secondary,#00030095)}@media (color-gamut:p3){.___SAdditionalLabel_uk6mx_gg_:before{background-color:var(--intergalactic-text-secondary,color(display-p3 .00228 .01289 .00252/.583))}}}.___SAdditionalLabel_uk6mx_gg_._size_l_uk6mx_gg_:before{margin-top:10px}.___SAdditionalLabel_uk6mx_gg_._size_m_uk6mx_gg_:before{margin-top:8px}.___SPatternSymbol_uk6mx_gg_{transform:scale(.8)}',
|
|
18
18
|
/*__inner_css_end__*/
|
|
19
|
-
"
|
|
19
|
+
"uk6mx_gg_"
|
|
20
20
|
), /*__reshadow_css_end__*/
|
|
21
21
|
{
|
|
22
|
-
"__SLegendItem": "
|
|
23
|
-
"_disabled": "
|
|
24
|
-
"__SPointShape": "
|
|
25
|
-
"_color": "
|
|
26
|
-
"--color": "--
|
|
27
|
-
"_shape_Circle": "
|
|
28
|
-
"_size_l": "
|
|
29
|
-
"_size_m": "
|
|
30
|
-
"_shape_Line": "
|
|
31
|
-
"_shape_Square": "
|
|
32
|
-
"_shape_Pattern": "
|
|
33
|
-
"__SIcon": "
|
|
34
|
-
"__SLabel": "
|
|
35
|
-
"__SAdditionalLabel": "
|
|
36
|
-
"__SCount": "
|
|
37
|
-
"__SPatternSymbol": "
|
|
22
|
+
"__SLegendItem": "___SLegendItem_uk6mx_gg_",
|
|
23
|
+
"_disabled": "__disabled_uk6mx_gg_",
|
|
24
|
+
"__SPointShape": "___SPointShape_uk6mx_gg_",
|
|
25
|
+
"_color": "__color_uk6mx_gg_",
|
|
26
|
+
"--color": "--color_uk6mx",
|
|
27
|
+
"_shape_Circle": "_shape_Circle_uk6mx_gg_",
|
|
28
|
+
"_size_l": "_size_l_uk6mx_gg_",
|
|
29
|
+
"_size_m": "_size_m_uk6mx_gg_",
|
|
30
|
+
"_shape_Line": "_shape_Line_uk6mx_gg_",
|
|
31
|
+
"_shape_Square": "_shape_Square_uk6mx_gg_",
|
|
32
|
+
"_shape_Pattern": "_shape_Pattern_uk6mx_gg_",
|
|
33
|
+
"__SIcon": "___SIcon_uk6mx_gg_",
|
|
34
|
+
"__SLabel": "___SLabel_uk6mx_gg_",
|
|
35
|
+
"__SAdditionalLabel": "___SAdditionalLabel_uk6mx_gg_",
|
|
36
|
+
"__SCount": "___SCount_uk6mx_gg_",
|
|
37
|
+
"__SPatternSymbol": "___SPatternSymbol_uk6mx_gg_"
|
|
38
38
|
})
|
|
39
39
|
);
|
|
40
40
|
const enhance = [resolveColorEnhance(), uniqueIDEnhancement()];
|
|
@@ -68,10 +68,20 @@ class LegendItemRoot extends Component {
|
|
|
68
68
|
patterns,
|
|
69
69
|
size,
|
|
70
70
|
"onChange": (value) => {
|
|
71
|
-
onChangeLegendItem
|
|
71
|
+
if (onChangeLegendItem && id) {
|
|
72
|
+
onChangeLegendItem(id, value);
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"onFocus": () => {
|
|
76
|
+
if (onFocusLegendItem && id) {
|
|
77
|
+
onFocusLegendItem(id);
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"onBlur": () => {
|
|
81
|
+
if (onBlurLegendItem && id) {
|
|
82
|
+
onBlurLegendItem(id);
|
|
83
|
+
}
|
|
72
84
|
},
|
|
73
|
-
"onFocus": () => onFocusLegendItem(id),
|
|
74
|
-
"onBlur": () => onBlurLegendItem(id),
|
|
75
85
|
"aria-labelledby": shape === "Checkbox" ? this.getUniqueID() : null
|
|
76
86
|
};
|
|
77
87
|
}
|
|
@@ -80,7 +90,11 @@ class LegendItemRoot extends Component {
|
|
|
80
90
|
return {
|
|
81
91
|
...props,
|
|
82
92
|
children: props.icon,
|
|
83
|
-
onClick: () =>
|
|
93
|
+
onClick: () => {
|
|
94
|
+
if (props.onChangeLegendItem && props.id) {
|
|
95
|
+
props.onChangeLegendItem(props.id, !props.checked);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
84
98
|
};
|
|
85
99
|
}
|
|
86
100
|
getLabelProps() {
|
|
@@ -96,7 +110,11 @@ class LegendItemRoot extends Component {
|
|
|
96
110
|
...props,
|
|
97
111
|
id: this.getUniqueID(),
|
|
98
112
|
checked,
|
|
99
|
-
onClick: () =>
|
|
113
|
+
onClick: () => {
|
|
114
|
+
if (onChangeLegendItem && id) {
|
|
115
|
+
onChangeLegendItem(id, !checked);
|
|
116
|
+
}
|
|
117
|
+
},
|
|
100
118
|
children: props.label
|
|
101
119
|
};
|
|
102
120
|
}
|
|
@@ -111,7 +129,11 @@ class LegendItemRoot extends Component {
|
|
|
111
129
|
return {
|
|
112
130
|
...props,
|
|
113
131
|
children: additionalInfo && "label" in additionalInfo ? `${additionalInfo.label}` : void 0,
|
|
114
|
-
onClick: () =>
|
|
132
|
+
onClick: () => {
|
|
133
|
+
if (onChangeLegendItem && id) {
|
|
134
|
+
onChangeLegendItem(id, !checked);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
115
137
|
};
|
|
116
138
|
}
|
|
117
139
|
getCountProps() {
|
|
@@ -125,7 +147,11 @@ class LegendItemRoot extends Component {
|
|
|
125
147
|
return {
|
|
126
148
|
...props,
|
|
127
149
|
children: additionalInfo && "count" in additionalInfo ? `(${additionalInfo.count})` : void 0,
|
|
128
|
-
onClick: () =>
|
|
150
|
+
onClick: () => {
|
|
151
|
+
if (onChangeLegendItem && id) {
|
|
152
|
+
onChangeLegendItem(id, !checked);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
129
155
|
};
|
|
130
156
|
}
|
|
131
157
|
render() {
|
|
@@ -206,12 +232,13 @@ function Shape(props) {
|
|
|
206
232
|
...assignProps({}, _ref2)
|
|
207
233
|
}), /* @__PURE__ */ React.createElement(Children, _ref0.cn("Children", {})));
|
|
208
234
|
}
|
|
209
|
-
function Icon({
|
|
210
|
-
styles,
|
|
211
|
-
children: hasChildren,
|
|
212
|
-
Children
|
|
213
|
-
}) {
|
|
235
|
+
function Icon(props) {
|
|
214
236
|
var _ref3 = arguments[0], _ref1;
|
|
237
|
+
const {
|
|
238
|
+
styles,
|
|
239
|
+
children: hasChildren,
|
|
240
|
+
Children
|
|
241
|
+
} = props;
|
|
215
242
|
const SIcon = Box;
|
|
216
243
|
if (!hasChildren) {
|
|
217
244
|
return null;
|
|
@@ -223,12 +250,13 @@ function Icon({
|
|
|
223
250
|
}), /* @__PURE__ */ React.createElement(Children, _ref1.cn("Children", {})));
|
|
224
251
|
}
|
|
225
252
|
Icon.displayName = "Icon";
|
|
226
|
-
function Label({
|
|
227
|
-
styles,
|
|
228
|
-
children: hasChildren,
|
|
229
|
-
Children
|
|
230
|
-
}) {
|
|
253
|
+
function Label(props) {
|
|
231
254
|
var _ref4 = arguments[0], _ref10;
|
|
255
|
+
const {
|
|
256
|
+
styles,
|
|
257
|
+
children: hasChildren,
|
|
258
|
+
Children
|
|
259
|
+
} = props;
|
|
232
260
|
const SLabel = Text;
|
|
233
261
|
if (!hasChildren) {
|
|
234
262
|
return null;
|
|
@@ -240,12 +268,13 @@ function Label({
|
|
|
240
268
|
}), /* @__PURE__ */ React.createElement(Children, _ref10.cn("Children", {})));
|
|
241
269
|
}
|
|
242
270
|
Label.displayName = "Label";
|
|
243
|
-
function AdditionalLabel({
|
|
244
|
-
styles,
|
|
245
|
-
children: hasChildren,
|
|
246
|
-
Children
|
|
247
|
-
}) {
|
|
271
|
+
function AdditionalLabel(props) {
|
|
248
272
|
var _ref5 = arguments[0], _ref11;
|
|
273
|
+
const {
|
|
274
|
+
styles,
|
|
275
|
+
children: hasChildren,
|
|
276
|
+
Children
|
|
277
|
+
} = props;
|
|
249
278
|
const SAdditionalLabel = Text;
|
|
250
279
|
if (!hasChildren) {
|
|
251
280
|
return null;
|
|
@@ -257,12 +286,13 @@ function AdditionalLabel({
|
|
|
257
286
|
}), /* @__PURE__ */ React.createElement(Children, _ref11.cn("Children", {})));
|
|
258
287
|
}
|
|
259
288
|
AdditionalLabel.displayName = "AdditionalLabel";
|
|
260
|
-
function Count({
|
|
261
|
-
styles,
|
|
262
|
-
children: hasChildren,
|
|
263
|
-
Children
|
|
264
|
-
}) {
|
|
289
|
+
function Count(props) {
|
|
265
290
|
var _ref6 = arguments[0], _ref12;
|
|
291
|
+
const {
|
|
292
|
+
styles,
|
|
293
|
+
children: hasChildren,
|
|
294
|
+
Children
|
|
295
|
+
} = props;
|
|
266
296
|
const SCount = Text;
|
|
267
297
|
if (!hasChildren) {
|
|
268
298
|
return null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { sstyled, assignProps, createComponent } from "@semcore/core";
|
|
3
3
|
import { Box } from "@semcore/base-components";
|
|
4
4
|
import React from "react";
|
|
@@ -9,16 +9,16 @@ const style = (
|
|
|
9
9
|
/*__reshadow_css_start__*/
|
|
10
10
|
(sstyled.insert(
|
|
11
11
|
/*__inner_css_start__*/
|
|
12
|
-
'.
|
|
12
|
+
'.___SLegendTable_1vvs7_gg_.__columns-count_1vvs7_gg_{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:16px;grid-row-gap:8px}.___SColumnItem_1vvs7_gg_._size_l_1vvs7_gg_{font-size:var(--intergalactic-fs-300,16px);text-align:right}.___SColumnItem_1vvs7_gg_._size_m_1vvs7_gg_{font-size:var(--intergalactic-fs-200,14px);text-align:right}',
|
|
13
13
|
/*__inner_css_end__*/
|
|
14
|
-
"
|
|
14
|
+
"1vvs7_gg_"
|
|
15
15
|
), /*__reshadow_css_end__*/
|
|
16
16
|
{
|
|
17
|
-
"__SLegendTable": "
|
|
18
|
-
"_columns-count": "__columns-
|
|
19
|
-
"__SColumnItem": "
|
|
20
|
-
"_size_l": "
|
|
21
|
-
"_size_m": "
|
|
17
|
+
"__SLegendTable": "___SLegendTable_1vvs7_gg_",
|
|
18
|
+
"_columns-count": "__columns-count_1vvs7_gg_",
|
|
19
|
+
"__SColumnItem": "___SColumnItem_1vvs7_gg_",
|
|
20
|
+
"_size_l": "_size_l_1vvs7_gg_",
|
|
21
|
+
"_size_m": "_size_m_1vvs7_gg_"
|
|
22
22
|
})
|
|
23
23
|
);
|
|
24
24
|
class LegendTableRoot extends BaseLegend {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { Component, sstyled } from "@semcore/core";
|
|
3
3
|
import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
|
|
4
4
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import { CONTEXT_COMPONENT, createBaseComponent, createComponent } from "@semcore/core";
|
|
3
3
|
import assignProps from "@semcore/core/lib/utils/assignProps";
|
|
4
4
|
import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
|
|
@@ -189,6 +189,11 @@ export type RadialTreeTitleProps = {
|
|
|
189
189
|
color?: string;
|
|
190
190
|
};
|
|
191
191
|
type IntergalacticD3Component<BaseTag extends Intergalactic.Tag, Props, Context = {}> = (<Tag extends Intergalactic.Tag = Intergalactic.Tag>(props: Intergalactic.InternalTypings.PropsRenderingResultComponentProps<Tag, Props, Context>) => Intergalactic.InternalTypings.ComponentRenderingResults) & Intergalactic.InternalTypings.ComponentAdditive<BaseTag, BaseTag, Props>;
|
|
192
|
+
/**
|
|
193
|
+
* RadialTree
|
|
194
|
+
*
|
|
195
|
+
* {@link https://developer.semrush.com/intergalactic/data-display/radial-tree-chart/radial-tree-chart-api/|API} | {@link https://developer.semrush.com/intergalactic/data-display/radial-tree-chart/radial-tree-chart-code/|Examples}
|
|
196
|
+
*/
|
|
192
197
|
declare const RadialTree: IntergalacticD3Component<"g", RadialTreeProps> & {
|
|
193
198
|
Title: IntergalacticD3Component<"text", RadialTreeTitleProps>;
|
|
194
199
|
Radian: IntergalacticD3Component<"g", RadialTreeRadianProps> & {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
1
2
|
import { Component } from '@semcore/core';
|
|
2
3
|
import type { ScaleBand, ScaleLinear, ScaleTime } from 'd3-scale';
|
|
3
4
|
import React from 'react';
|
|
@@ -13,11 +14,10 @@ export type ChartState = {
|
|
|
13
14
|
withTrend: boolean;
|
|
14
15
|
};
|
|
15
16
|
export declare const NOT_A_VALUE = "n/a";
|
|
16
|
-
export declare abstract class AbstractChart<Data extends ListData | ObjectData, Props extends BaseChartProps<Data>, Enhancers extends readonly ((...args: any[]) => any)[] = [],
|
|
17
|
+
export declare abstract class AbstractChart<Data extends ListData | ObjectData, Props extends BaseChartProps<Data>, Enhancers extends readonly ((...args: any[]) => any)[] = [], InnerProps = {}, State extends ChartState = ChartState, DefaultProps extends Intergalactic.InternalTypings.ValidDefaultProps<DefaultProps, Props & InnerProps> = never> extends Component<Props, Enhancers, Readonly<{}>, InnerProps, State, DefaultProps> {
|
|
17
18
|
static style: {
|
|
18
19
|
[key: string]: string;
|
|
19
20
|
};
|
|
20
|
-
static defaultProps: Partial<BaseChartProps<any>>;
|
|
21
21
|
/**
|
|
22
22
|
* Padding from the end's of chart to the container (except axis sides)
|
|
23
23
|
*/
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { AreaChartType } from './AreaChart.type';
|
|
2
|
+
/**
|
|
3
|
+
* AreaChart
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/data-display/area-chart/area-chart-api/|API} | {@link https://developer.semrush.com/intergalactic/data-display/area-chart/area-chart-code/|Examples}
|
|
6
|
+
*/
|
|
2
7
|
export declare const AreaChart: AreaChartType;
|
|
@@ -21,6 +21,12 @@ export type AreaChartProps = BaseChartProps<AreaChartData> & {
|
|
|
21
21
|
/** Callback triggered when a user clicks on a chart at a position corresponding to a data item */
|
|
22
22
|
onClickArea?: (index: number, event: React.SyntheticEvent) => void;
|
|
23
23
|
};
|
|
24
|
+
export type AreaChartDefaultProps = {
|
|
25
|
+
direction: 'column';
|
|
26
|
+
showXAxis: true;
|
|
27
|
+
showYAxis: true;
|
|
28
|
+
showTooltip: true;
|
|
29
|
+
};
|
|
24
30
|
export type AreaChartType = Intergalactic.Component<typeof Flex, Intergalactic.InternalTypings.EfficientOmit<AreaChartProps, 'showLegend'> & {
|
|
25
31
|
showLegend?: boolean;
|
|
26
32
|
} & AriaNameProps>;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { BarChartType } from './BarChart.type';
|
|
2
|
+
/**
|
|
3
|
+
* BarChart
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/data-display/bar-chart/bar-chart-api/|API} | {@link https://developer.semrush.com/intergalactic/data-display/bar-chart/bar-chart-code/|Examples}
|
|
6
|
+
*/
|
|
2
7
|
export declare const BarChart: BarChartType;
|
|
@@ -26,5 +26,11 @@ export type BarChartProps = BaseChartProps<BarChartData> & {
|
|
|
26
26
|
/** Handle click by Bar. */
|
|
27
27
|
onClickBar?: (barItem: number, barKey: BarKey, e: React.SyntheticEvent) => void;
|
|
28
28
|
};
|
|
29
|
+
export type BarChartDefaultProps = {
|
|
30
|
+
direction: 'column';
|
|
31
|
+
showXAxis: true;
|
|
32
|
+
showYAxis: true;
|
|
33
|
+
showTooltip: true;
|
|
34
|
+
};
|
|
29
35
|
export type BarChartType = Intergalactic.Component<typeof Flex, BarChartProps & AriaNameProps>;
|
|
30
36
|
export {};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { BubbleChartType } from './BubbleChart.type';
|
|
2
|
+
/**
|
|
3
|
+
* BubbleChart
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/data-display/bubble-chart/bubble-chart-api/|API} | {@link https://developer.semrush.com/intergalactic/data-display/bubble-chart/bubble-chart-code/|Examples}
|
|
6
|
+
*/
|
|
2
7
|
export declare const BubbleChart: BubbleChartType;
|
|
@@ -23,4 +23,10 @@ export type BubbleChartProps = Intergalactic.InternalTypings.EfficientOmit<BaseC
|
|
|
23
23
|
/** Callback triggered when a user clicks on a bubble */
|
|
24
24
|
onClickBubble?: (index: number, event: React.SyntheticEvent) => void;
|
|
25
25
|
};
|
|
26
|
+
export type BubbleChartDefaultProps = {
|
|
27
|
+
direction: 'column';
|
|
28
|
+
showXAxis: true;
|
|
29
|
+
showYAxis: true;
|
|
30
|
+
showTooltip: true;
|
|
31
|
+
};
|
|
26
32
|
export type BubbleChartType = Intergalactic.Component<typeof Flex, BubbleChartProps>;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { CigaretteChartType } from './CigaretteChart.type';
|
|
2
|
+
/**
|
|
3
|
+
* CigaretteChart
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/data-display/cigarette-chart/cigarette-chart-api/|API} | {@link https://developer.semrush.com/intergalactic/data-display/cigarette-chart/cigarette-chart-code/|Examples}
|
|
6
|
+
*/
|
|
2
7
|
export declare const CigaretteChart: CigaretteChartType;
|
|
@@ -22,4 +22,18 @@ export type CigaretteChartProps = Intergalactic.InternalTypings.EfficientOmit<Ba
|
|
|
22
22
|
/** Minimal bar width in pixels. Default is `2`. */
|
|
23
23
|
minimalBarWidth?: number;
|
|
24
24
|
};
|
|
25
|
+
export type CigaretteChartDefaultProps = {
|
|
26
|
+
invertAxis: CigaretteChartProps['invertAxis'];
|
|
27
|
+
showXAxis: false;
|
|
28
|
+
showYAxis: false;
|
|
29
|
+
showTooltip: true;
|
|
30
|
+
showLegend: false;
|
|
31
|
+
marginX: 0;
|
|
32
|
+
marginY: 0;
|
|
33
|
+
duration: 500;
|
|
34
|
+
plotWidth: CigaretteChartProps['plotWidth'];
|
|
35
|
+
plotHeight: CigaretteChartProps['plotHeight'];
|
|
36
|
+
showPercentValueInTooltip: false;
|
|
37
|
+
minimalBarWidth: 2;
|
|
38
|
+
};
|
|
25
39
|
export type CigaretteChartType = Intergalactic.Component<'div', CigaretteChartProps>;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { CompactHorizontalBarChartType } from './CompactHorizontalBarChart.type';
|
|
2
|
+
/**
|
|
3
|
+
* CompactHorizontalBarChart
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/data-display/bar-horizontal-compact/bar-horizontal-compact-api/|API} | {@link https://developer.semrush.com/intergalactic/data-display/bar-horizontal-compact/bar-horizontal-compact-code/|Examples}
|
|
6
|
+
*/
|
|
2
7
|
export declare const CompactHorizontalBarChart: CompactHorizontalBarChartType;
|
|
@@ -19,5 +19,12 @@ export type CompactHorizontalBarChartProps = Intergalactic.InternalTypings.Effic
|
|
|
19
19
|
/** Handle click by Bar. */
|
|
20
20
|
onClickBar?: (barItem: number, e: React.SyntheticEvent) => void;
|
|
21
21
|
};
|
|
22
|
+
export type CompactHorizontalBarChartDefaultProps = {
|
|
23
|
+
direction: 'column';
|
|
24
|
+
showXAxis: false;
|
|
25
|
+
showYAxis: false;
|
|
26
|
+
showTooltip: true;
|
|
27
|
+
showLegend: false;
|
|
28
|
+
};
|
|
22
29
|
export type CompactHorizontalBarChartType = Intergalactic.Component<typeof Flex, CompactHorizontalBarChartProps>;
|
|
23
30
|
export {};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { DonutChartType } from './DonutChart.type';
|
|
2
|
+
/**
|
|
3
|
+
* DonutChart
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/data-display/donut-chart/donut-chart-api/|API} | {@link https://developer.semrush.com/intergalactic/data-display/donut-chart/donut-chart-code/|Examples}
|
|
6
|
+
*/
|
|
2
7
|
export declare const DonutChart: DonutChartType;
|
|
@@ -21,4 +21,11 @@ export type DonutChartProps = Intergalactic.InternalTypings.EfficientOmit<BaseCh
|
|
|
21
21
|
/** Callback triggered when a user clicks on a pie */
|
|
22
22
|
onClickPie?: (key: DataKey, e: React.SyntheticEvent) => void;
|
|
23
23
|
};
|
|
24
|
+
export type DonutChartDefaultProps = {
|
|
25
|
+
direction: 'row-reverse';
|
|
26
|
+
alignItems: 'flex-start';
|
|
27
|
+
innerRadius: 100;
|
|
28
|
+
marginX: 0;
|
|
29
|
+
marginY: 0;
|
|
30
|
+
};
|
|
24
31
|
export type DonutChartType = Intergalactic.Component<typeof Flex, DonutChartProps>;
|
|
@@ -11,4 +11,10 @@ export type HistogramChartProps = BaseChartProps<HistogramChartData> & {
|
|
|
11
11
|
/** Custom y-axis scale */
|
|
12
12
|
yScale?: ScaleLinear<any, any>;
|
|
13
13
|
};
|
|
14
|
+
export type HistogramChartDefaultProps = {
|
|
15
|
+
direction: 'column';
|
|
16
|
+
showXAxis: true;
|
|
17
|
+
showYAxis: true;
|
|
18
|
+
showTooltip: true;
|
|
19
|
+
};
|
|
14
20
|
export type HistogramChartType = Intergalactic.Component<typeof Flex, HistogramChartProps>;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { LineChartType } from './LineChart.type';
|
|
2
|
+
/**
|
|
3
|
+
* LineChart
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/data-display/line-chart/line-chart-api/|API} | {@link https://developer.semrush.com/intergalactic/data-display/line-chart/line-chart-code/|Examples}
|
|
6
|
+
*/
|
|
2
7
|
export declare const LineChart: LineChartType;
|
|
@@ -29,5 +29,11 @@ export type LineChartProps = BaseChartProps<LineChartData> & {
|
|
|
29
29
|
/** Callback triggered when a user clicks on a line */
|
|
30
30
|
onClickLine?: (index: number, event: React.SyntheticEvent) => void;
|
|
31
31
|
};
|
|
32
|
+
export type LineChartDefaultProps = {
|
|
33
|
+
direction: 'column';
|
|
34
|
+
showXAxis: true;
|
|
35
|
+
showYAxis: true;
|
|
36
|
+
showTooltip: true;
|
|
37
|
+
};
|
|
32
38
|
export type LineChartType = Intergalactic.Component<typeof Flex, LineChartProps>;
|
|
33
39
|
export {};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { RadarChartType } from './RadarChart.type';
|
|
2
|
+
/**
|
|
3
|
+
* RadarChart
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/data-display/radar-chart/radar-chart-api/|API} | {@link https://developer.semrush.com/intergalactic/data-display/radar-chart/radar-chart-code/|Examples}
|
|
6
|
+
*/
|
|
2
7
|
export declare const RadarChart: RadarChartType;
|
|
@@ -13,4 +13,10 @@ export type RadarChartProps = Intergalactic.InternalTypings.EfficientOmit<BaseCh
|
|
|
13
13
|
/** Callback triggered when a user clicks on a chart at a position corresponding to a category */
|
|
14
14
|
onClickRadar?: (index: number, e: React.SyntheticEvent) => void;
|
|
15
15
|
};
|
|
16
|
+
export type RadarChartDefaultProps = {
|
|
17
|
+
direction: 'column';
|
|
18
|
+
showXAxis: true;
|
|
19
|
+
showYAxis: true;
|
|
20
|
+
showTooltip: true;
|
|
21
|
+
};
|
|
16
22
|
export type RadarChartType = Intergalactic.Component<typeof Flex, RadarChartProps>;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { ScatterPlotChartType } from './ScatterPlotChart.type';
|
|
2
|
+
/**
|
|
3
|
+
* ScatterPlotChart
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/data-display/scatterplot-chart/scatterplot-chart-api/|API} | {@link https://developer.semrush.com/intergalactic/data-display/scatterplot-chart/scatterplot-chart-code/|Examples}
|
|
6
|
+
*/
|
|
2
7
|
export declare const ScatterPlotChart: ScatterPlotChartType;
|
|
@@ -16,4 +16,11 @@ export type ScatterPlotChartProps = Intergalactic.InternalTypings.EfficientOmit<
|
|
|
16
16
|
/** Callback triggered when a user clicks on a scatter item */
|
|
17
17
|
onClickScatterItem?: (index: number, event: React.SyntheticEvent) => void;
|
|
18
18
|
};
|
|
19
|
+
export type ScatterPlotChartDefaultProps = {
|
|
20
|
+
direction: 'column';
|
|
21
|
+
showXAxis: true;
|
|
22
|
+
showYAxis: true;
|
|
23
|
+
showTooltip: true;
|
|
24
|
+
showLegend: false;
|
|
25
|
+
};
|
|
19
26
|
export type ScatterPlotChartType = Intergalactic.Component<typeof Flex, ScatterPlotChartProps>;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { VennChartType } from './VennChart.type';
|
|
2
|
+
/**
|
|
3
|
+
* VennChart
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/data-display/venn-chart/venn-chart-api/|API} | {@link https://developer.semrush.com/intergalactic/data-display/venn-chart/venn-chart-code/|Examples}
|
|
6
|
+
*/
|
|
2
7
|
export declare const VennChart: VennChartType;
|