@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.
Files changed (260) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/lib/cjs/Area.js +17 -11
  3. package/lib/cjs/Area.js.map +1 -1
  4. package/lib/cjs/Axis.js +28 -16
  5. package/lib/cjs/Axis.js.map +1 -1
  6. package/lib/cjs/Bar.js +22 -16
  7. package/lib/cjs/Bar.js.map +1 -1
  8. package/lib/cjs/Bubble.js +20 -14
  9. package/lib/cjs/Bubble.js.map +1 -1
  10. package/lib/cjs/CompactHorizontalBar.js +22 -16
  11. package/lib/cjs/CompactHorizontalBar.js.map +1 -1
  12. package/lib/cjs/Donut.js +15 -9
  13. package/lib/cjs/Donut.js.map +1 -1
  14. package/lib/cjs/Dots.js +8 -8
  15. package/lib/cjs/GroupBar.js +6 -0
  16. package/lib/cjs/GroupBar.js.map +1 -1
  17. package/lib/cjs/HorizontalBar.js +22 -16
  18. package/lib/cjs/HorizontalBar.js.map +1 -1
  19. package/lib/cjs/Hover.js +3 -3
  20. package/lib/cjs/Line.js +15 -9
  21. package/lib/cjs/Line.js.map +1 -1
  22. package/lib/cjs/Plot.js +8 -2
  23. package/lib/cjs/Plot.js.map +1 -1
  24. package/lib/cjs/Radar.js +25 -19
  25. package/lib/cjs/Radar.js.map +1 -1
  26. package/lib/cjs/RadialTree.js +17 -12
  27. package/lib/cjs/RadialTree.js.map +1 -1
  28. package/lib/cjs/Reference.js +12 -12
  29. package/lib/cjs/ResponsiveContainer.js +6 -0
  30. package/lib/cjs/ResponsiveContainer.js.map +1 -1
  31. package/lib/cjs/ScatterPlot.js +15 -9
  32. package/lib/cjs/ScatterPlot.js.map +1 -1
  33. package/lib/cjs/StackBar.js +6 -0
  34. package/lib/cjs/StackBar.js.map +1 -1
  35. package/lib/cjs/StackedArea.js +6 -0
  36. package/lib/cjs/StackedArea.js.map +1 -1
  37. package/lib/cjs/Tooltip.js +10 -9
  38. package/lib/cjs/Tooltip.js.map +1 -1
  39. package/lib/cjs/Venn.js +15 -9
  40. package/lib/cjs/Venn.js.map +1 -1
  41. package/lib/cjs/a11y/PlotA11yModule.js +2 -2
  42. package/lib/cjs/a11y/PlotA11yView.js +2 -2
  43. package/lib/cjs/component/Chart/AbstractChart.js +4 -10
  44. package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  45. package/lib/cjs/component/Chart/AreaChart.js +12 -0
  46. package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
  47. package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
  48. package/lib/cjs/component/Chart/BarChart.js +12 -0
  49. package/lib/cjs/component/Chart/BarChart.js.map +1 -1
  50. package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
  51. package/lib/cjs/component/Chart/BubbleChart.js +12 -0
  52. package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
  53. package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
  54. package/lib/cjs/component/Chart/CigaretteChart.js +9 -3
  55. package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
  56. package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
  57. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +7 -1
  58. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  59. package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  60. package/lib/cjs/component/Chart/DonutChart.js +6 -0
  61. package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
  62. package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
  63. package/lib/cjs/component/Chart/HistogramChart.js +12 -0
  64. package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
  65. package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
  66. package/lib/cjs/component/Chart/LineChart.js +12 -0
  67. package/lib/cjs/component/Chart/LineChart.js.map +1 -1
  68. package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
  69. package/lib/cjs/component/Chart/RadarChart.js +12 -0
  70. package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
  71. package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
  72. package/lib/cjs/component/Chart/ScatterPlotChart.js +6 -0
  73. package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
  74. package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
  75. package/lib/cjs/component/Chart/VennChart.js +6 -0
  76. package/lib/cjs/component/Chart/VennChart.js.map +1 -1
  77. package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
  78. package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
  79. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +10 -4
  80. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  81. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  82. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +80 -44
  83. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  84. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +4 -0
  85. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  86. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +12 -6
  87. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  88. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  89. package/lib/cjs/component/Cigarette/Cigarette.js +6 -0
  90. package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
  91. package/lib/cjs/style/plot.shadow.css +1 -1
  92. package/lib/es6/Area.js +17 -11
  93. package/lib/es6/Area.js.map +1 -1
  94. package/lib/es6/Axis.js +28 -16
  95. package/lib/es6/Axis.js.map +1 -1
  96. package/lib/es6/Bar.js +22 -16
  97. package/lib/es6/Bar.js.map +1 -1
  98. package/lib/es6/Bubble.js +20 -14
  99. package/lib/es6/Bubble.js.map +1 -1
  100. package/lib/es6/CompactHorizontalBar.js +22 -16
  101. package/lib/es6/CompactHorizontalBar.js.map +1 -1
  102. package/lib/es6/Donut.js +15 -9
  103. package/lib/es6/Donut.js.map +1 -1
  104. package/lib/es6/Dots.js +8 -8
  105. package/lib/es6/GroupBar.js +6 -0
  106. package/lib/es6/GroupBar.js.map +1 -1
  107. package/lib/es6/HorizontalBar.js +22 -16
  108. package/lib/es6/HorizontalBar.js.map +1 -1
  109. package/lib/es6/Hover.js +3 -3
  110. package/lib/es6/Line.js +15 -9
  111. package/lib/es6/Line.js.map +1 -1
  112. package/lib/es6/Plot.js +8 -2
  113. package/lib/es6/Plot.js.map +1 -1
  114. package/lib/es6/Radar.js +25 -19
  115. package/lib/es6/Radar.js.map +1 -1
  116. package/lib/es6/RadialTree.js +17 -12
  117. package/lib/es6/RadialTree.js.map +1 -1
  118. package/lib/es6/Reference.js +12 -12
  119. package/lib/es6/ResponsiveContainer.js +6 -0
  120. package/lib/es6/ResponsiveContainer.js.map +1 -1
  121. package/lib/es6/ScatterPlot.js +15 -9
  122. package/lib/es6/ScatterPlot.js.map +1 -1
  123. package/lib/es6/StackBar.js +6 -0
  124. package/lib/es6/StackBar.js.map +1 -1
  125. package/lib/es6/StackedArea.js +6 -0
  126. package/lib/es6/StackedArea.js.map +1 -1
  127. package/lib/es6/Tooltip.js +10 -9
  128. package/lib/es6/Tooltip.js.map +1 -1
  129. package/lib/es6/Venn.js +15 -9
  130. package/lib/es6/Venn.js.map +1 -1
  131. package/lib/es6/a11y/PlotA11yModule.js +2 -2
  132. package/lib/es6/a11y/PlotA11yView.js +2 -2
  133. package/lib/es6/component/Chart/AbstractChart.js +4 -10
  134. package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  135. package/lib/es6/component/Chart/AreaChart.js +12 -0
  136. package/lib/es6/component/Chart/AreaChart.js.map +1 -1
  137. package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
  138. package/lib/es6/component/Chart/BarChart.js +12 -0
  139. package/lib/es6/component/Chart/BarChart.js.map +1 -1
  140. package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
  141. package/lib/es6/component/Chart/BubbleChart.js +12 -0
  142. package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
  143. package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
  144. package/lib/es6/component/Chart/CigaretteChart.js +9 -3
  145. package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
  146. package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
  147. package/lib/es6/component/Chart/CompactHorizontalBarChart.js +7 -1
  148. package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  149. package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  150. package/lib/es6/component/Chart/DonutChart.js +6 -0
  151. package/lib/es6/component/Chart/DonutChart.js.map +1 -1
  152. package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
  153. package/lib/es6/component/Chart/HistogramChart.js +12 -0
  154. package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
  155. package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
  156. package/lib/es6/component/Chart/LineChart.js +12 -0
  157. package/lib/es6/component/Chart/LineChart.js.map +1 -1
  158. package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
  159. package/lib/es6/component/Chart/RadarChart.js +12 -0
  160. package/lib/es6/component/Chart/RadarChart.js.map +1 -1
  161. package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
  162. package/lib/es6/component/Chart/ScatterPlotChart.js +6 -0
  163. package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
  164. package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
  165. package/lib/es6/component/Chart/VennChart.js +7 -0
  166. package/lib/es6/component/Chart/VennChart.js.map +1 -1
  167. package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
  168. package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
  169. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +10 -4
  170. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  171. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  172. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +80 -44
  173. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  174. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js +4 -0
  175. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  176. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +12 -6
  177. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  178. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  179. package/lib/es6/component/Cigarette/Cigarette.js +6 -0
  180. package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
  181. package/lib/es6/style/plot.shadow.css +1 -1
  182. package/lib/esm/AnimatedClipPath.mjs +2 -2
  183. package/lib/esm/Area.mjs +13 -13
  184. package/lib/esm/Axis.mjs +19 -19
  185. package/lib/esm/Bar.mjs +18 -18
  186. package/lib/esm/Bubble.mjs +16 -16
  187. package/lib/esm/CompactHorizontalBar.mjs +18 -18
  188. package/lib/esm/Donut.mjs +11 -11
  189. package/lib/esm/Dots.mjs +9 -9
  190. package/lib/esm/GroupBar.mjs +1 -1
  191. package/lib/esm/HorizontalBar.mjs +18 -18
  192. package/lib/esm/Hover.mjs +5 -5
  193. package/lib/esm/Line.mjs +11 -11
  194. package/lib/esm/Pattern.mjs +1 -1
  195. package/lib/esm/Plot.mjs +4 -4
  196. package/lib/esm/Radar.mjs +21 -21
  197. package/lib/esm/RadialTree.mjs +14 -14
  198. package/lib/esm/Reference.mjs +14 -14
  199. package/lib/esm/ResponsiveContainer.mjs +1 -1
  200. package/lib/esm/ScatterPlot.mjs +11 -11
  201. package/lib/esm/StackBar.mjs +1 -1
  202. package/lib/esm/StackedArea.mjs +1 -1
  203. package/lib/esm/Tooltip.mjs +12 -11
  204. package/lib/esm/Venn.mjs +12 -12
  205. package/lib/esm/a11y/PlotA11yModule.mjs +4 -4
  206. package/lib/esm/a11y/PlotA11yView.mjs +3 -3
  207. package/lib/esm/component/Chart/AbstractChart.mjs +6 -12
  208. package/lib/esm/component/Chart/AreaChart.mjs +7 -1
  209. package/lib/esm/component/Chart/BarChart.mjs +8 -2
  210. package/lib/esm/component/Chart/BubbleChart.mjs +7 -1
  211. package/lib/esm/component/Chart/CigaretteChart.mjs +3 -3
  212. package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +2 -2
  213. package/lib/esm/component/Chart/DonutChart.mjs +1 -1
  214. package/lib/esm/component/Chart/HistogramChart.mjs +8 -2
  215. package/lib/esm/component/Chart/LineChart.mjs +7 -1
  216. package/lib/esm/component/Chart/RadarChart.mjs +7 -1
  217. package/lib/esm/component/Chart/ScatterPlotChart.mjs +1 -1
  218. package/lib/esm/component/Chart/VennChart.mjs +1 -1
  219. package/lib/esm/component/ChartLegend/BaseLegend.mjs +1 -1
  220. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +6 -6
  221. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +76 -46
  222. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.type.mjs +4 -0
  223. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +8 -8
  224. package/lib/esm/component/Cigarette/Cigarette.mjs +1 -1
  225. package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +1 -1
  226. package/lib/esm/createElement.mjs +1 -1
  227. package/lib/esm/style/plot.shadow.css +1 -1
  228. package/lib/types/RadialTree.d.ts +5 -0
  229. package/lib/types/component/Chart/AbstractChart.d.ts +2 -2
  230. package/lib/types/component/Chart/AreaChart.d.ts +5 -0
  231. package/lib/types/component/Chart/AreaChart.type.d.ts +6 -0
  232. package/lib/types/component/Chart/BarChart.d.ts +5 -0
  233. package/lib/types/component/Chart/BarChart.type.d.ts +6 -0
  234. package/lib/types/component/Chart/BubbleChart.d.ts +5 -0
  235. package/lib/types/component/Chart/BubbleChart.type.d.ts +6 -0
  236. package/lib/types/component/Chart/CigaretteChart.d.ts +5 -0
  237. package/lib/types/component/Chart/CigaretteChart.type.d.ts +14 -0
  238. package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +5 -0
  239. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +7 -0
  240. package/lib/types/component/Chart/DonutChart.d.ts +5 -0
  241. package/lib/types/component/Chart/DonutChart.type.d.ts +7 -0
  242. package/lib/types/component/Chart/HistogramChart.d.ts +5 -0
  243. package/lib/types/component/Chart/HistogramChart.type.d.ts +6 -0
  244. package/lib/types/component/Chart/LineChart.d.ts +5 -0
  245. package/lib/types/component/Chart/LineChart.type.d.ts +6 -0
  246. package/lib/types/component/Chart/RadarChart.d.ts +5 -0
  247. package/lib/types/component/Chart/RadarChart.type.d.ts +6 -0
  248. package/lib/types/component/Chart/ScatterPlotChart.d.ts +5 -0
  249. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +7 -0
  250. package/lib/types/component/Chart/VennChart.d.ts +5 -0
  251. package/lib/types/component/Chart/VennChart.type.d.ts +6 -0
  252. package/lib/types/component/ChartLegend/BaseLegend.d.ts +2 -2
  253. package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +5 -0
  254. package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +4 -0
  255. package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +5 -0
  256. package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +15 -7
  257. package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts +5 -0
  258. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +3 -0
  259. package/lib/types/component/Cigarette/Cigarette.d.ts +5 -0
  260. package/package.json +13 -13
@@ -1,4 +1,4 @@
1
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
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/esm/defineProperty";
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/esm/defineProperty";
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/esm/defineProperty";
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/esm/defineProperty";
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/esm/defineProperty";
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
- ".___SLegendFlex_1k9rk_gg_._direction_row_1k9rk_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_1k9rk_gg_._direction_column_1k9rk_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}",
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
- "1k9rk_gg_"
18
+ "1fc9g_gg_"
19
19
  ), /*__reshadow_css_end__*/
20
20
  {
21
- "__SLegendFlex": "___SLegendFlex_1k9rk_gg_",
22
- "_direction_row": "_direction_row_1k9rk_gg_",
23
- "_direction_column": "_direction_column_1k9rk_gg_"
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/esm/defineProperty";
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
- '.___SLegendItem_18vdl_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_18vdl_gg_:hover{cursor:pointer}.___SLegendItem_18vdl_gg_.__disabled_18vdl_gg_:hover{cursor:default}}.___SPointShape_18vdl_gg_.__color_18vdl_gg_{background-color:var(--color_18vdl);margin-right:8px;flex-shrink:0}.___SPointShape_18vdl_gg_._shape_Circle_18vdl_gg_._size_l_18vdl_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_18vdl_gg_._shape_Circle_18vdl_gg_._size_m_18vdl_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_18vdl_gg_._shape_Line_18vdl_gg_._size_l_18vdl_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_18vdl_gg_._shape_Line_18vdl_gg_._size_m_18vdl_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_18vdl_gg_._shape_Square_18vdl_gg_._size_l_18vdl_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_18vdl_gg_._shape_Square_18vdl_gg_._size_m_18vdl_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_18vdl_gg_._shape_Pattern_18vdl_gg_{background-color:transparent;margin-right:4px}.___SIcon_18vdl_gg_{line-height:0;margin-right:4px}.___SIcon_18vdl_gg_._size_l_18vdl_gg_{margin-top:4px}.___SIcon_18vdl_gg_._size_m_18vdl_gg_{margin-top:2px}.___SLabel_18vdl_gg_{min-width:0}.___SAdditionalLabel_18vdl_gg_._size_l_18vdl_gg_,.___SCount_18vdl_gg_._size_l_18vdl_gg_,.___SLabel_18vdl_gg_._size_l_18vdl_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_18vdl_gg_._size_m_18vdl_gg_,.___SCount_18vdl_gg_._size_m_18vdl_gg_,.___SLabel_18vdl_gg_._size_m_18vdl_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_18vdl_gg_,.___SCount_18vdl_gg_{margin-left:4px}.___SAdditionalLabel_18vdl_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_18vdl_gg_::before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));height:4px;width:4px;border-radius:2px;margin-right:4px}@supports (color:color(display-p3 0 0 0%)){.___SAdditionalLabel_18vdl_gg_::before{background-color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SAdditionalLabel_18vdl_gg_::before{background-color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SAdditionalLabel_18vdl_gg_._size_l_18vdl_gg_::before{margin-top:10px}.___SAdditionalLabel_18vdl_gg_._size_m_18vdl_gg_::before{margin-top:8px}.___SPatternSymbol_18vdl_gg_{transform:scale(.8)}',
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
- "18vdl_gg_"
19
+ "uk6mx_gg_"
20
20
  ), /*__reshadow_css_end__*/
21
21
  {
22
- "__SLegendItem": "___SLegendItem_18vdl_gg_",
23
- "_disabled": "__disabled_18vdl_gg_",
24
- "__SPointShape": "___SPointShape_18vdl_gg_",
25
- "_color": "__color_18vdl_gg_",
26
- "--color": "--color_18vdl",
27
- "_shape_Circle": "_shape_Circle_18vdl_gg_",
28
- "_size_l": "_size_l_18vdl_gg_",
29
- "_size_m": "_size_m_18vdl_gg_",
30
- "_shape_Line": "_shape_Line_18vdl_gg_",
31
- "_shape_Square": "_shape_Square_18vdl_gg_",
32
- "_shape_Pattern": "_shape_Pattern_18vdl_gg_",
33
- "__SIcon": "___SIcon_18vdl_gg_",
34
- "__SLabel": "___SLabel_18vdl_gg_",
35
- "__SAdditionalLabel": "___SAdditionalLabel_18vdl_gg_",
36
- "__SCount": "___SCount_18vdl_gg_",
37
- "__SPatternSymbol": "___SPatternSymbol_18vdl_gg_"
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(id, value);
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: () => props.onChangeLegendItem(props.id, !props.checked)
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: () => onChangeLegendItem(id, !checked),
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: () => onChangeLegendItem(id, !checked)
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: () => onChangeLegendItem(id, !checked)
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,8 @@
1
1
  const StaticShapes = ["Circle", "Line", "Square", "Pattern"];
2
+ ;
3
+ ;
4
+ ;
5
+ ;
2
6
  export {
3
7
  StaticShapes
4
8
  };
@@ -1,4 +1,4 @@
1
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
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
- '.___SLegendTable_8u9rt_gg_.__columns-count_8u9rt_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_8u9rt_gg_._size_l_8u9rt_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_8u9rt_gg_._size_m_8u9rt_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}',
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
- "8u9rt_gg_"
14
+ "1vvs7_gg_"
15
15
  ), /*__reshadow_css_end__*/
16
16
  {
17
- "__SLegendTable": "___SLegendTable_8u9rt_gg_",
18
- "_columns-count": "__columns-count_8u9rt_gg_",
19
- "__SColumnItem": "___SColumnItem_8u9rt_gg_",
20
- "_size_l": "_size_l_8u9rt_gg_",
21
- "_size_m": "_size_m_8u9rt_gg_"
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/esm/defineProperty";
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 _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import { Component } from "@semcore/core";
3
3
  import { scaleBand } from "d3-scale";
4
4
  import { stack } from "d3-shape";
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
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";
@@ -17,5 +17,5 @@ foreignObject[data-aria-only] {
17
17
 
18
18
  SPlot:has(foreignObject[data-aria-only]:focus-within) {
19
19
  @mixin focus-outline-mixin;
20
- border-radius: var(--intergalactic-surface-rounded, calc(6px + 2px));
20
+ border-radius: var(--intergalactic-surface-rounded, 8px);
21
21
  }
@@ -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)[] = [], DefaultProps = {}, State extends ChartState = ChartState> extends Component<Props, Enhancers, Readonly<{}>, DefaultProps, State> {
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>;
@@ -1,2 +1,7 @@
1
1
  import type { HistogramChartType } from './HistogramChart.type';
2
+ /**
3
+ * HistogramChart
4
+ *
5
+ * {@link https://developer.semrush.com/intergalactic/data-display/histogram-chart/histogram-chart-api/|API}
6
+ */
2
7
  export declare const HistogramChart: HistogramChartType;
@@ -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;