@semcore/d3-chart 18.0.0-prerelease.0 → 18.0.0-prerelease.2

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 (273) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/lib/cjs/Area.js +123 -23
  3. package/lib/cjs/Area.js.map +1 -1
  4. package/lib/cjs/Axis.js +109 -97
  5. package/lib/cjs/Axis.js.map +1 -1
  6. package/lib/cjs/Bar.js +16 -16
  7. package/lib/cjs/Bubble.js +14 -14
  8. package/lib/cjs/ChartMetaData.js +44 -0
  9. package/lib/cjs/ChartMetaData.js.map +1 -0
  10. package/lib/cjs/CompactHorizontalBar.js +16 -16
  11. package/lib/cjs/Donut.js +18 -19
  12. package/lib/cjs/Donut.js.map +1 -1
  13. package/lib/cjs/Dots.js +67 -13
  14. package/lib/cjs/Dots.js.map +1 -1
  15. package/lib/cjs/HorizontalBar.js +16 -16
  16. package/lib/cjs/Hover.js +66 -52
  17. package/lib/cjs/Hover.js.map +1 -1
  18. package/lib/cjs/Line.js +82 -17
  19. package/lib/cjs/Line.js.map +1 -1
  20. package/lib/cjs/Pattern.js +113 -2
  21. package/lib/cjs/Pattern.js.map +1 -1
  22. package/lib/cjs/Plot.js +5 -2
  23. package/lib/cjs/Plot.js.map +1 -1
  24. package/lib/cjs/Radar.js +19 -19
  25. package/lib/cjs/RadialTree.js +12 -12
  26. package/lib/cjs/Reference.js +55 -18
  27. package/lib/cjs/Reference.js.map +1 -1
  28. package/lib/cjs/ScatterPlot.js +9 -9
  29. package/lib/cjs/Tooltip.js +16 -14
  30. package/lib/cjs/Tooltip.js.map +1 -1
  31. package/lib/cjs/a11y/PlotA11yView.js +2 -2
  32. package/lib/cjs/component/Chart/AbstractChart.js +21 -18
  33. package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  34. package/lib/cjs/component/Chart/AbstractChart.type.js +19 -0
  35. package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
  36. package/lib/cjs/component/Chart/AreaChart.js +21 -7
  37. package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
  38. package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
  39. package/lib/cjs/component/Chart/BarChart.js +6 -3
  40. package/lib/cjs/component/Chart/BarChart.js.map +1 -1
  41. package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
  42. package/lib/cjs/component/Chart/BubbleChart.js +4 -0
  43. package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
  44. package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
  45. package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
  46. package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  47. package/lib/cjs/component/Chart/DonutChart.js +0 -1
  48. package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
  49. package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
  50. package/lib/cjs/component/Chart/HistogramChart.js +6 -3
  51. package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
  52. package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
  53. package/lib/cjs/component/Chart/LineChart.js +16 -6
  54. package/lib/cjs/component/Chart/LineChart.js.map +1 -1
  55. package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
  56. package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
  57. package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
  58. package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
  59. package/lib/cjs/component/Chart/index.js +43 -0
  60. package/lib/cjs/component/Chart/index.js.map +1 -1
  61. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  62. package/lib/cjs/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  63. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +16 -16
  64. package/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
  65. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +7 -7
  66. package/lib/cjs/component/ChartLegend/LegendTable/legend-table.shadow.css +2 -2
  67. package/lib/cjs/index.js +55 -1
  68. package/lib/cjs/index.js.map +1 -1
  69. package/lib/cjs/style/abstract-chart.shadow.css +13 -3
  70. package/lib/cjs/style/area.shadow.css +8 -5
  71. package/lib/cjs/style/axis.shadow.css +51 -60
  72. package/lib/cjs/style/bar.shadow.css +6 -6
  73. package/lib/cjs/style/bubble.shadow.css +3 -3
  74. package/lib/cjs/style/donut.shadow.css +2 -2
  75. package/lib/cjs/style/dot.shadow.css +37 -2
  76. package/lib/cjs/style/hover.shadow.css +30 -13
  77. package/lib/cjs/style/line.shadow.css +3 -3
  78. package/lib/cjs/style/pattern.shadow.css +10 -0
  79. package/lib/cjs/style/plotA11yView.shadow.css +3 -3
  80. package/lib/cjs/style/radar.shadow.css +7 -7
  81. package/lib/cjs/style/radial-tree.shadow.css +2 -2
  82. package/lib/cjs/style/reference.shadow.css +4 -4
  83. package/lib/cjs/style/scatterplot.shadow.css +1 -1
  84. package/lib/cjs/style/tooltip.shadow.css +12 -12
  85. package/lib/cjs/types/Axis.d.js.map +1 -1
  86. package/lib/cjs/types/Donut.d.js.map +1 -1
  87. package/lib/cjs/types/Hover.d.js.map +1 -1
  88. package/lib/cjs/utils.js +21 -1
  89. package/lib/cjs/utils.js.map +1 -1
  90. package/lib/es6/Area.js +125 -25
  91. package/lib/es6/Area.js.map +1 -1
  92. package/lib/es6/Axis.js +109 -97
  93. package/lib/es6/Axis.js.map +1 -1
  94. package/lib/es6/Bar.js +16 -16
  95. package/lib/es6/Bubble.js +14 -14
  96. package/lib/es6/ChartMetaData.js +36 -0
  97. package/lib/es6/ChartMetaData.js.map +1 -0
  98. package/lib/es6/CompactHorizontalBar.js +16 -16
  99. package/lib/es6/Donut.js +18 -19
  100. package/lib/es6/Donut.js.map +1 -1
  101. package/lib/es6/Dots.js +68 -14
  102. package/lib/es6/Dots.js.map +1 -1
  103. package/lib/es6/HorizontalBar.js +16 -16
  104. package/lib/es6/Hover.js +66 -52
  105. package/lib/es6/Hover.js.map +1 -1
  106. package/lib/es6/Line.js +84 -19
  107. package/lib/es6/Line.js.map +1 -1
  108. package/lib/es6/Pattern.js +108 -2
  109. package/lib/es6/Pattern.js.map +1 -1
  110. package/lib/es6/Plot.js +5 -2
  111. package/lib/es6/Plot.js.map +1 -1
  112. package/lib/es6/Radar.js +19 -19
  113. package/lib/es6/RadialTree.js +12 -12
  114. package/lib/es6/Reference.js +55 -18
  115. package/lib/es6/Reference.js.map +1 -1
  116. package/lib/es6/ScatterPlot.js +9 -9
  117. package/lib/es6/Tooltip.js +16 -14
  118. package/lib/es6/Tooltip.js.map +1 -1
  119. package/lib/es6/a11y/PlotA11yView.js +2 -2
  120. package/lib/es6/component/Chart/AbstractChart.js +21 -18
  121. package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  122. package/lib/es6/component/Chart/AbstractChart.type.js +14 -1
  123. package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
  124. package/lib/es6/component/Chart/AreaChart.js +21 -7
  125. package/lib/es6/component/Chart/AreaChart.js.map +1 -1
  126. package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
  127. package/lib/es6/component/Chart/BarChart.js +6 -3
  128. package/lib/es6/component/Chart/BarChart.js.map +1 -1
  129. package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
  130. package/lib/es6/component/Chart/BubbleChart.js +4 -0
  131. package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
  132. package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
  133. package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
  134. package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  135. package/lib/es6/component/Chart/DonutChart.js +0 -1
  136. package/lib/es6/component/Chart/DonutChart.js.map +1 -1
  137. package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
  138. package/lib/es6/component/Chart/HistogramChart.js +6 -3
  139. package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
  140. package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
  141. package/lib/es6/component/Chart/LineChart.js +14 -4
  142. package/lib/es6/component/Chart/LineChart.js.map +1 -1
  143. package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
  144. package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
  145. package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
  146. package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
  147. package/lib/es6/component/Chart/index.js +2 -0
  148. package/lib/es6/component/Chart/index.js.map +1 -1
  149. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  150. package/lib/es6/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  151. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +16 -16
  152. package/lib/es6/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
  153. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +7 -7
  154. package/lib/es6/component/ChartLegend/LegendTable/legend-table.shadow.css +2 -2
  155. package/lib/es6/index.js +1 -0
  156. package/lib/es6/index.js.map +1 -1
  157. package/lib/es6/style/abstract-chart.shadow.css +13 -3
  158. package/lib/es6/style/area.shadow.css +8 -5
  159. package/lib/es6/style/axis.shadow.css +51 -60
  160. package/lib/es6/style/bar.shadow.css +6 -6
  161. package/lib/es6/style/bubble.shadow.css +3 -3
  162. package/lib/es6/style/donut.shadow.css +2 -2
  163. package/lib/es6/style/dot.shadow.css +37 -2
  164. package/lib/es6/style/hover.shadow.css +30 -13
  165. package/lib/es6/style/line.shadow.css +3 -3
  166. package/lib/es6/style/pattern.shadow.css +10 -0
  167. package/lib/es6/style/plotA11yView.shadow.css +3 -3
  168. package/lib/es6/style/radar.shadow.css +7 -7
  169. package/lib/es6/style/radial-tree.shadow.css +2 -2
  170. package/lib/es6/style/reference.shadow.css +4 -4
  171. package/lib/es6/style/scatterplot.shadow.css +1 -1
  172. package/lib/es6/style/tooltip.shadow.css +12 -12
  173. package/lib/es6/types/Axis.d.js.map +1 -1
  174. package/lib/es6/types/Donut.d.js.map +1 -1
  175. package/lib/es6/types/Hover.d.js.map +1 -1
  176. package/lib/es6/utils.js +18 -0
  177. package/lib/es6/utils.js.map +1 -1
  178. package/lib/esm/Area.mjs +127 -26
  179. package/lib/esm/Axis.mjs +110 -98
  180. package/lib/esm/Bar.mjs +17 -17
  181. package/lib/esm/Bubble.mjs +15 -15
  182. package/lib/esm/ChartMetaData.mjs +38 -0
  183. package/lib/esm/CompactHorizontalBar.mjs +17 -17
  184. package/lib/esm/Donut.mjs +19 -20
  185. package/lib/esm/Dots.mjs +66 -15
  186. package/lib/esm/HorizontalBar.mjs +17 -17
  187. package/lib/esm/Hover.mjs +67 -53
  188. package/lib/esm/Line.mjs +86 -20
  189. package/lib/esm/Pattern.mjs +119 -0
  190. package/lib/esm/Plot.mjs +6 -3
  191. package/lib/esm/Radar.mjs +20 -20
  192. package/lib/esm/RadialTree.mjs +13 -13
  193. package/lib/esm/Reference.mjs +56 -19
  194. package/lib/esm/ScatterPlot.mjs +10 -10
  195. package/lib/esm/Tooltip.mjs +17 -15
  196. package/lib/esm/a11y/PlotA11yView.mjs +3 -3
  197. package/lib/esm/component/Chart/AbstractChart.mjs +22 -19
  198. package/lib/esm/component/Chart/AbstractChart.type.mjs +16 -0
  199. package/lib/esm/component/Chart/AreaChart.mjs +21 -7
  200. package/lib/esm/component/Chart/BarChart.mjs +6 -3
  201. package/lib/esm/component/Chart/BubbleChart.mjs +4 -0
  202. package/lib/esm/component/Chart/DonutChart.mjs +0 -1
  203. package/lib/esm/component/Chart/HistogramChart.mjs +6 -3
  204. package/lib/esm/component/Chart/LineChart.mjs +14 -4
  205. package/lib/esm/component/Chart/index.mjs +8 -0
  206. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +5 -5
  207. package/lib/esm/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  208. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +17 -17
  209. package/lib/esm/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
  210. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +8 -8
  211. package/lib/esm/component/ChartLegend/LegendTable/legend-table.shadow.css +2 -2
  212. package/lib/esm/index.mjs +8 -0
  213. package/lib/esm/style/abstract-chart.shadow.css +13 -3
  214. package/lib/esm/style/area.shadow.css +8 -5
  215. package/lib/esm/style/axis.shadow.css +51 -60
  216. package/lib/esm/style/bar.shadow.css +6 -6
  217. package/lib/esm/style/bubble.shadow.css +3 -3
  218. package/lib/esm/style/donut.shadow.css +2 -2
  219. package/lib/esm/style/dot.shadow.css +37 -2
  220. package/lib/esm/style/hover.shadow.css +30 -13
  221. package/lib/esm/style/line.shadow.css +3 -3
  222. package/lib/esm/style/pattern.shadow.css +10 -0
  223. package/lib/esm/style/plotA11yView.shadow.css +3 -3
  224. package/lib/esm/style/radar.shadow.css +7 -7
  225. package/lib/esm/style/radial-tree.shadow.css +2 -2
  226. package/lib/esm/style/reference.shadow.css +4 -4
  227. package/lib/esm/style/scatterplot.shadow.css +1 -1
  228. package/lib/esm/style/tooltip.shadow.css +12 -12
  229. package/lib/esm/utils.mjs +20 -0
  230. package/lib/types/Axis.d.ts +3 -2
  231. package/lib/types/ChartMetaData.d.ts +17 -0
  232. package/lib/types/ChartMetaData.d.ts.map +1 -0
  233. package/lib/types/Donut.d.ts +1 -1
  234. package/lib/types/Hover.d.ts +2 -0
  235. package/lib/types/Pattern.d.ts +18 -0
  236. package/lib/types/Pattern.d.ts.map +1 -1
  237. package/lib/types/component/Chart/AbstractChart.d.ts.map +1 -1
  238. package/lib/types/component/Chart/AbstractChart.type.d.ts +22 -4
  239. package/lib/types/component/Chart/AbstractChart.type.d.ts.map +1 -1
  240. package/lib/types/component/Chart/AreaChart.d.ts.map +1 -1
  241. package/lib/types/component/Chart/AreaChart.type.d.ts +8 -4
  242. package/lib/types/component/Chart/AreaChart.type.d.ts.map +1 -1
  243. package/lib/types/component/Chart/BarChart.d.ts.map +1 -1
  244. package/lib/types/component/Chart/BarChart.type.d.ts +1 -0
  245. package/lib/types/component/Chart/BarChart.type.d.ts.map +1 -1
  246. package/lib/types/component/Chart/BubbleChart.d.ts.map +1 -1
  247. package/lib/types/component/Chart/BubbleChart.type.d.ts +1 -1
  248. package/lib/types/component/Chart/BubbleChart.type.d.ts.map +1 -1
  249. package/lib/types/component/Chart/CigaretteChart.type.d.ts +1 -1
  250. package/lib/types/component/Chart/CigaretteChart.type.d.ts.map +1 -1
  251. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +1 -1
  252. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts.map +1 -1
  253. package/lib/types/component/Chart/DonutChart.d.ts.map +1 -1
  254. package/lib/types/component/Chart/DonutChart.type.d.ts +1 -2
  255. package/lib/types/component/Chart/DonutChart.type.d.ts.map +1 -1
  256. package/lib/types/component/Chart/HistogramChart.d.ts.map +1 -1
  257. package/lib/types/component/Chart/HistogramChart.type.d.ts +1 -0
  258. package/lib/types/component/Chart/HistogramChart.type.d.ts.map +1 -1
  259. package/lib/types/component/Chart/LineChart.d.ts.map +1 -1
  260. package/lib/types/component/Chart/LineChart.type.d.ts +1 -0
  261. package/lib/types/component/Chart/LineChart.type.d.ts.map +1 -1
  262. package/lib/types/component/Chart/RadarChart.type.d.ts +1 -1
  263. package/lib/types/component/Chart/RadarChart.type.d.ts.map +1 -1
  264. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +1 -1
  265. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts.map +1 -1
  266. package/lib/types/component/Chart/VennChart.type.d.ts +1 -1
  267. package/lib/types/component/Chart/VennChart.type.d.ts.map +1 -1
  268. package/lib/types/component/Chart/index.d.ts +2 -0
  269. package/lib/types/component/Chart/index.d.ts.map +1 -1
  270. package/lib/types/utils.d.ts +4 -1
  271. package/lib/types/utils.d.ts.map +1 -1
  272. package/package.json +15 -15
  273. package/lib/esm/utils/TextMeasurer.mjs +0 -27
@@ -5,12 +5,19 @@ import { scaleTime, scaleLinear } from "d3-scale";
5
5
  import React from "react";
6
6
  import "../../index.mjs";
7
7
  import { AbstractChart } from "./AbstractChart.mjs";
8
+ import { HIGHLIGHT_DOT } from "./AbstractChart.type.mjs";
8
9
  import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
9
10
  import { minMax } from "../../utils.mjs";
10
11
  import StackedArea from "../../StackedArea.mjs";
11
12
  import Area from "../../Area.mjs";
12
13
  import { HoverLine } from "../../Hover.mjs";
13
14
  class AreaChartComponent extends AbstractChart {
15
+ constructor(...args) {
16
+ super(...args);
17
+ _defineProperty(this, "displayDots", (i, isActive, noAround, data) => {
18
+ return isActive || noAround || Boolean(data[HIGHLIGHT_DOT]);
19
+ });
20
+ }
14
21
  get xScale() {
15
22
  const {
16
23
  xScale,
@@ -72,12 +79,14 @@ class AreaChartComponent extends AbstractChart {
72
79
  color: item.color,
73
80
  transparent: highlightedItem !== -1 && highlightedItem !== index,
74
81
  curve,
75
- onClick: onClickArea
82
+ onClick: onClickArea,
83
+ withGradient: true
76
84
  }, /* @__PURE__ */ React.createElement(StackedArea.Area.Dots, {
77
- display: showDots
85
+ display: showDots ? true : this.displayDots
78
86
  }));
79
87
  }));
80
88
  }
89
+ const withGradient = dataDefinitions.filter((item) => item.checked).length === 1;
81
90
  return dataDefinitions.map((item, index) => {
82
91
  return item.checked && /* @__PURE__ */ React.createElement(Area, {
83
92
  x: groupKey,
@@ -86,20 +95,23 @@ class AreaChartComponent extends AbstractChart {
86
95
  color: item.color,
87
96
  transparent: highlightedItem !== -1 && highlightedItem !== index,
88
97
  curve,
89
- onClick: onClickArea
98
+ onClick: onClickArea,
99
+ withGradient
90
100
  }, /* @__PURE__ */ React.createElement(Area.Dots, {
91
- display: showDots
101
+ display: showDots ? true : this.displayDots
92
102
  }));
93
103
  });
94
104
  }
95
105
  renderTooltip() {
96
106
  const {
97
107
  data,
98
- groupKey
108
+ groupKey,
109
+ showXAxis
99
110
  } = this.asProps;
100
111
  return /* @__PURE__ */ React.createElement(HoverLine.Tooltip, {
101
112
  x: groupKey,
102
- wMin: 100
113
+ wMin: 100,
114
+ hideTickHover: !showXAxis
103
115
  }, ({
104
116
  xIndex
105
117
  }) => {
@@ -126,7 +138,9 @@ _defineProperty(AreaChartComponent, "defaultProps", {
126
138
  showXAxis: true,
127
139
  showYAxis: true,
128
140
  showTooltip: true,
129
- locale: "en"
141
+ stacked: true,
142
+ locale: "en",
143
+ deltaPercentGrowthColor: "success"
130
144
  });
131
145
  const AreaChart = createComponent(AreaChartComponent);
132
146
  export {
@@ -151,13 +151,15 @@ class BarChartComponent extends AbstractChart {
151
151
  data,
152
152
  groupKey,
153
153
  invertAxis,
154
- onClickHoverRect
154
+ onClickHoverRect,
155
+ showXAxis
155
156
  } = this.asProps;
156
157
  return /* @__PURE__ */ React.createElement(HoverRect.Tooltip, {
157
158
  x: invertAxis ? void 0 : groupKey,
158
159
  y: invertAxis ? groupKey : void 0,
159
160
  wMin: 100,
160
- onClick: onClickHoverRect
161
+ onClick: onClickHoverRect,
162
+ hideTickHover: !showXAxis
161
163
  }, ({
162
164
  xIndex,
163
165
  yIndex
@@ -265,7 +267,8 @@ _defineProperty(BarChartComponent, "defaultProps", {
265
267
  showXAxis: true,
266
268
  showYAxis: true,
267
269
  showTooltip: true,
268
- locale: "en"
270
+ locale: "en",
271
+ deltaPercentGrowthColor: "success"
269
272
  });
270
273
  const BarChart = createComponent(BarChartComponent);
271
274
  export {
@@ -11,6 +11,10 @@ import { localizedMessages } from "../../translations/__intergalactic-dynamic-lo
11
11
  import { calculateBubbleDomain } from "../../utils.mjs";
12
12
  import Bubble from "../../Bubble.mjs";
13
13
  class BubbleChartComponent extends AbstractChart {
14
+ constructor(...args) {
15
+ super(...args);
16
+ _defineProperty(this, "plotPadding", 8);
17
+ }
14
18
  get dataKeys() {
15
19
  const {
16
20
  data
@@ -89,7 +89,6 @@ _defineProperty(DonutChartComponent, "displayName", "Chart.Donut");
89
89
  _defineProperty(DonutChartComponent, "defaultProps", {
90
90
  direction: "row-reverse",
91
91
  alignItems: "flex-start",
92
- innerRadius: 100,
93
92
  marginX: 0,
94
93
  marginY: 0,
95
94
  locale: "en"
@@ -116,12 +116,14 @@ class HistogramChartComponent extends AbstractChart {
116
116
  const {
117
117
  data,
118
118
  groupKey,
119
- invertAxis
119
+ invertAxis,
120
+ showXAxis
120
121
  } = this.asProps;
121
122
  return /* @__PURE__ */ React.createElement(HoverRect.Tooltip, {
122
123
  x: invertAxis ? void 0 : groupKey,
123
124
  y: invertAxis ? groupKey : void 0,
124
- wMin: 100
125
+ wMin: 100,
126
+ hideTickHover: !showXAxis
125
127
  }, ({
126
128
  xIndex,
127
129
  yIndex
@@ -150,7 +152,8 @@ _defineProperty(HistogramChartComponent, "defaultProps", {
150
152
  showXAxis: true,
151
153
  showYAxis: true,
152
154
  showTooltip: true,
153
- locale: "en"
155
+ locale: "en",
156
+ deltaPercentGrowthColor: "success"
154
157
  });
155
158
  const HistogramChart = createComponent(HistogramChartComponent);
156
159
  export {
@@ -3,6 +3,7 @@ import { createComponent } from "@semcore/core";
3
3
  import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
4
4
  import { scaleTime, scaleLinear } from "d3-scale";
5
5
  import React from "react";
6
+ import { HIGHLIGHT_DOT } from "./AbstractChart.type.mjs";
6
7
  import "../../index.mjs";
7
8
  import { AbstractChart } from "./AbstractChart.mjs";
8
9
  import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
@@ -10,6 +11,12 @@ import { minMax } from "../../utils.mjs";
10
11
  import Line from "../../Line.mjs";
11
12
  import { HoverLine } from "../../Hover.mjs";
12
13
  class LineChartComponent extends AbstractChart {
14
+ constructor(...args) {
15
+ super(...args);
16
+ _defineProperty(this, "displayDots", (i, isActive, noAround, data) => {
17
+ return isActive || noAround || Boolean(data[HIGHLIGHT_DOT]);
18
+ });
19
+ }
13
20
  get xScale() {
14
21
  const {
15
22
  xScale,
@@ -70,7 +77,7 @@ class LineChartComponent extends AbstractChart {
70
77
  curve,
71
78
  onClick: onClickLine
72
79
  }, /* @__PURE__ */ React.createElement(Line.Dots, {
73
- display: showDots
80
+ display: showDots || this.displayDots
74
81
  }), area?.[item.id] && /* @__PURE__ */ React.createElement(Line.Area, {
75
82
  area: area[item.id],
76
83
  y0: "y0",
@@ -82,11 +89,13 @@ class LineChartComponent extends AbstractChart {
82
89
  renderTooltip() {
83
90
  const {
84
91
  data,
85
- groupKey
92
+ groupKey,
93
+ showXAxis
86
94
  } = this.asProps;
87
95
  return /* @__PURE__ */ React.createElement(HoverLine.Tooltip, {
88
96
  x: groupKey,
89
- wMin: 100
97
+ wMin: 100,
98
+ hideTickHover: !showXAxis
90
99
  }, ({
91
100
  xIndex
92
101
  }) => {
@@ -113,7 +122,8 @@ _defineProperty(LineChartComponent, "defaultProps", {
113
122
  showXAxis: true,
114
123
  showYAxis: true,
115
124
  showTooltip: true,
116
- locale: "en"
125
+ locale: "en",
126
+ deltaPercentGrowthColor: "success"
117
127
  });
118
128
  const LineChart = createComponent(LineChartComponent);
119
129
  export {
@@ -1,3 +1,4 @@
1
+ import { BAD, DATA_TYPE, FORECAST, GOOD, HIGHLIGHT_DOT, INSIGHTFUL, POTENTIAL } from "./AbstractChart.type.mjs";
1
2
  import { AreaChart } from "./AreaChart.mjs";
2
3
  import { BarChart } from "./BarChart.mjs";
3
4
  import { BubbleChart } from "./BubbleChart.mjs";
@@ -23,5 +24,12 @@ const index = {
23
24
  CompactHorizontalBar: CompactHorizontalBarChart
24
25
  };
25
26
  export {
27
+ BAD,
28
+ DATA_TYPE,
29
+ FORECAST,
30
+ GOOD,
31
+ HIGHLIGHT_DOT,
32
+ INSIGHTFUL,
33
+ POTENTIAL,
26
34
  index as default
27
35
  };
@@ -13,14 +13,14 @@ const style = (
13
13
  /*__reshadow_css_start__*/
14
14
  (sstyled.insert(
15
15
  /*__inner_css_start__*/
16
- ".___SLegendFlex_er9v1_gg_._direction_row_er9v1_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:var(--intergalactic-spacing-content-gap-large,8px) var(--intergalactic-spacing-content-gap-xxlarge,16px)}.___SLegendFlex_er9v1_gg_._direction_column_er9v1_gg_{align-items:flex-start;flex-wrap:wrap;gap:var(--intergalactic-spacing-content-gap-large,8px)}",
16
+ ".___SLegendFlex_8xxmp_gg_._direction_row_8xxmp_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:var(--intergalactic-spacing-2x,8px) var(--intergalactic-spacing-4x,16px)}.___SLegendFlex_8xxmp_gg_._direction_column_8xxmp_gg_{align-items:flex-start;flex-wrap:wrap;gap:var(--intergalactic-spacing-2x,8px)}",
17
17
  /*__inner_css_end__*/
18
- "er9v1_gg_"
18
+ "8xxmp_gg_"
19
19
  ), /*__reshadow_css_end__*/
20
20
  {
21
- "__SLegendFlex": "___SLegendFlex_er9v1_gg_",
22
- "_direction_row": "_direction_row_er9v1_gg_",
23
- "_direction_column": "_direction_column_er9v1_gg_"
21
+ "__SLegendFlex": "___SLegendFlex_8xxmp_gg_",
22
+ "_direction_row": "_direction_row_8xxmp_gg_",
23
+ "_direction_column": "_direction_column_8xxmp_gg_"
24
24
  })
25
25
  );
26
26
  class LegendFlexRoot extends BaseLegend {
@@ -2,11 +2,11 @@ SLegendFlex[direction='row'] {
2
2
  align-items: flex-start;
3
3
  align-content: flex-start;
4
4
  flex-wrap: wrap;
5
- gap: var(--intergalactic-spacing-content-gap-large, 8px) var(--intergalactic-spacing-content-gap-xxlarge, 16px);
5
+ gap: var(--intergalactic-spacing-2x, 8px) var(--intergalactic-spacing-4x, 16px);
6
6
  }
7
7
 
8
8
  SLegendFlex[direction='column'] {
9
9
  align-items: flex-start;
10
10
  flex-wrap: wrap;
11
- gap: var(--intergalactic-spacing-content-gap-large, 8px);
11
+ gap: var(--intergalactic-spacing-2x, 8px);
12
12
  }
@@ -14,26 +14,26 @@ const style = (
14
14
  /*__reshadow_css_start__*/
15
15
  (sstyled.insert(
16
16
  /*__inner_css_start__*/
17
- '.___SLegendItem_1g89n_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_1g89n_gg_:hover{cursor:pointer}.___SLegendItem_1g89n_gg_.__disabled_1g89n_gg_:hover{cursor:default}}.___SLegendItem_1g89n_gg_.__transparent_1g89n_gg_{opacity:.3}.___SPointShape_1g89n_gg_.__color_1g89n_gg_{background-color:var(--color_1g89n);margin-right:var(--intergalactic-spacing-content-gap-medium,6px);flex-shrink:0}.___SPointShape_1g89n_gg_._shape_Circle_1g89n_gg_._size_l_1g89n_gg_{width:16px;height:16px;border-radius:8px;margin-top:var(--intergalactic-spacing-content-gap-small,4px)}.___SPointShape_1g89n_gg_._shape_Circle_1g89n_gg_._size_m_1g89n_gg_{width:12px;height:12px;border-radius:6px;margin-top:var(--intergalactic-spacing-content-gap-small,4px)}.___SPointShape_1g89n_gg_._shape_Pattern_1g89n_gg_{background-color:initial;margin-right:var(--intergalactic-spacing-content-gap-small,4px)}.___SIcon_1g89n_gg_{line-height:0;margin-right:var(--intergalactic-spacing-content-gap-small,4px)}.___SIcon_1g89n_gg_._size_l_1g89n_gg_{margin-top:var(--intergalactic-spacing-content-gap-small,4px)}.___SIcon_1g89n_gg_._size_m_1g89n_gg_{margin-top:var(--intergalactic-spacing-content-gap-xsmall,2px)}.___SLabel_1g89n_gg_{min-width:0}.___SAdditionalLabel_1g89n_gg_._size_l_1g89n_gg_,.___SCount_1g89n_gg_._size_l_1g89n_gg_,.___SLabel_1g89n_gg_._size_l_1g89n_gg_{font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,1.5)}.___SAdditionalLabel_1g89n_gg_._size_m_1g89n_gg_,.___SCount_1g89n_gg_._size_m_1g89n_gg_,.___SLabel_1g89n_gg_._size_m_1g89n_gg_{font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,1.4286)}.___SAdditionalLabel_1g89n_gg_,.___SCount_1g89n_gg_{margin-left:var(--intergalactic-spacing-content-gap-small,4px)}.___SAdditionalLabel_1g89n_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_1g89n_gg_:before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary,oklch(.097 .023 156.5/.468));height:4px;width:4px;border-radius:2px;margin-right:var(--intergalactic-spacing-content-gap-small,4px)}.___SAdditionalLabel_1g89n_gg_._size_l_1g89n_gg_:before{margin-top:10px}.___SAdditionalLabel_1g89n_gg_._size_m_1g89n_gg_:before{margin-top:8px}.___SPatternSymbol_1g89n_gg_{transform:scale(.8)}',
17
+ '.___SLegendItem_10kc6_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_10kc6_gg_:hover{cursor:pointer}.___SLegendItem_10kc6_gg_.__disabled_10kc6_gg_:hover{cursor:default}}.___SLegendItem_10kc6_gg_.__transparent_10kc6_gg_{opacity:.3}.___SPointShape_10kc6_gg_.__color_10kc6_gg_{background-color:var(--color_10kc6);margin-right:var(--intergalactic-spacing-1-5x,6px);flex-shrink:0}.___SPointShape_10kc6_gg_._shape_Circle_10kc6_gg_._size_l_10kc6_gg_{width:16px;height:16px;border-radius:8px;margin-top:var(--intergalactic-spacing-1x,4px)}.___SPointShape_10kc6_gg_._shape_Circle_10kc6_gg_._size_m_10kc6_gg_{width:12px;height:12px;border-radius:6px;margin-top:var(--intergalactic-spacing-1x,4px)}.___SPointShape_10kc6_gg_._shape_Pattern_10kc6_gg_{background-color:initial;margin-right:var(--intergalactic-spacing-1x,4px)}.___SIcon_10kc6_gg_{line-height:0;margin-right:var(--intergalactic-spacing-1x,4px)}.___SIcon_10kc6_gg_._size_l_10kc6_gg_{margin-top:var(--intergalactic-spacing-1x,4px)}.___SIcon_10kc6_gg_._size_m_10kc6_gg_{margin-top:var(--intergalactic-spacing-05x,2px)}.___SLabel_10kc6_gg_{min-width:0}.___SAdditionalLabel_10kc6_gg_._size_l_10kc6_gg_,.___SCount_10kc6_gg_._size_l_10kc6_gg_,.___SLabel_10kc6_gg_._size_l_10kc6_gg_{font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,1.5)}.___SAdditionalLabel_10kc6_gg_._size_m_10kc6_gg_,.___SCount_10kc6_gg_._size_m_10kc6_gg_,.___SLabel_10kc6_gg_._size_m_10kc6_gg_{font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,1.4286)}.___SAdditionalLabel_10kc6_gg_,.___SCount_10kc6_gg_{margin-left:var(--intergalactic-spacing-1x,4px)}.___SAdditionalLabel_10kc6_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_10kc6_gg_:before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary,oklch(.182 .045 244.8/.593));height:4px;width:4px;border-radius:2px;margin-right:var(--intergalactic-spacing-1x,4px)}.___SAdditionalLabel_10kc6_gg_._size_l_10kc6_gg_:before{margin-top:10px}.___SAdditionalLabel_10kc6_gg_._size_m_10kc6_gg_:before{margin-top:8px}.___SPatternSymbol_10kc6_gg_{transform:scale(.8)}',
18
18
  /*__inner_css_end__*/
19
- "1g89n_gg_"
19
+ "10kc6_gg_"
20
20
  ), /*__reshadow_css_end__*/
21
21
  {
22
- "__SLegendItem": "___SLegendItem_1g89n_gg_",
23
- "_disabled": "__disabled_1g89n_gg_",
24
- "_transparent": "__transparent_1g89n_gg_",
25
- "__SPointShape": "___SPointShape_1g89n_gg_",
26
- "_color": "__color_1g89n_gg_",
27
- "--color": "--color_1g89n",
28
- "_shape_Circle": "_shape_Circle_1g89n_gg_",
29
- "_size_l": "_size_l_1g89n_gg_",
30
- "_size_m": "_size_m_1g89n_gg_",
31
- "_shape_Pattern": "_shape_Pattern_1g89n_gg_",
32
- "__SIcon": "___SIcon_1g89n_gg_",
33
- "__SLabel": "___SLabel_1g89n_gg_",
34
- "__SAdditionalLabel": "___SAdditionalLabel_1g89n_gg_",
35
- "__SCount": "___SCount_1g89n_gg_",
36
- "__SPatternSymbol": "___SPatternSymbol_1g89n_gg_"
22
+ "__SLegendItem": "___SLegendItem_10kc6_gg_",
23
+ "_disabled": "__disabled_10kc6_gg_",
24
+ "_transparent": "__transparent_10kc6_gg_",
25
+ "__SPointShape": "___SPointShape_10kc6_gg_",
26
+ "_color": "__color_10kc6_gg_",
27
+ "--color": "--color_10kc6",
28
+ "_shape_Circle": "_shape_Circle_10kc6_gg_",
29
+ "_size_l": "_size_l_10kc6_gg_",
30
+ "_size_m": "_size_m_10kc6_gg_",
31
+ "_shape_Pattern": "_shape_Pattern_10kc6_gg_",
32
+ "__SIcon": "___SIcon_10kc6_gg_",
33
+ "__SLabel": "___SLabel_10kc6_gg_",
34
+ "__SAdditionalLabel": "___SAdditionalLabel_10kc6_gg_",
35
+ "__SCount": "___SCount_10kc6_gg_",
36
+ "__SPatternSymbol": "___SPatternSymbol_10kc6_gg_"
37
37
  })
38
38
  );
39
39
  const enhance = [resolveColorEnhance(), uniqueIDEnhancement()];
@@ -17,7 +17,7 @@ SLegendItem[transparent] {
17
17
 
18
18
  SPointShape[color] {
19
19
  background-color: var(--color);
20
- margin-right: var(--intergalactic-spacing-content-gap-medium, 6px);
20
+ margin-right: var(--intergalactic-spacing-1-5x, 6px);
21
21
  flex-shrink: 0;
22
22
  }
23
23
 
@@ -25,32 +25,32 @@ SPointShape[shape='Circle'][size='l'] {
25
25
  width: 16px;
26
26
  height: 16px;
27
27
  border-radius: 8px;
28
- margin-top: var(--intergalactic-spacing-content-gap-small, 4px);
28
+ margin-top: var(--intergalactic-spacing-1x, 4px);
29
29
  }
30
30
 
31
31
  SPointShape[shape='Circle'][size='m'] {
32
32
  width: 12px;
33
33
  height: 12px;
34
34
  border-radius: 6px;
35
- margin-top: var(--intergalactic-spacing-content-gap-small, 4px);
35
+ margin-top: var(--intergalactic-spacing-1x, 4px);
36
36
  }
37
37
 
38
38
  SPointShape[shape='Pattern'] {
39
39
  background-color: transparent;
40
- margin-right: var(--intergalactic-spacing-content-gap-small, 4px);
40
+ margin-right: var(--intergalactic-spacing-1x, 4px);
41
41
  }
42
42
 
43
43
  SIcon {
44
44
  line-height: 0;
45
- margin-right: var(--intergalactic-spacing-content-gap-small, 4px);
45
+ margin-right: var(--intergalactic-spacing-1x, 4px);
46
46
  }
47
47
 
48
48
  SIcon[size='l'] {
49
- margin-top: var(--intergalactic-spacing-content-gap-small, 4px);
49
+ margin-top: var(--intergalactic-spacing-1x, 4px);
50
50
  }
51
51
 
52
52
  SIcon[size='m'] {
53
- margin-top: var(--intergalactic-spacing-content-gap-xsmall, 2px);
53
+ margin-top: var(--intergalactic-spacing-05x, 2px);
54
54
  }
55
55
 
56
56
  SLabel {
@@ -73,7 +73,7 @@ SCount[size='m'] {
73
73
 
74
74
  SAdditionalLabel,
75
75
  SCount {
76
- margin-left: var(--intergalactic-spacing-content-gap-small, 4px);
76
+ margin-left: var(--intergalactic-spacing-1x, 4px);
77
77
  }
78
78
 
79
79
  SAdditionalLabel {
@@ -85,11 +85,11 @@ SAdditionalLabel {
85
85
  SAdditionalLabel::before {
86
86
  content: '';
87
87
  display: inline-block;
88
- background-color: var(--intergalactic-text-secondary, oklch(0.097 0.023 156.5 / 0.468));
88
+ background-color: var(--intergalactic-text-secondary, oklch(0.182 0.045 244.8 / 0.593));
89
89
  height: 4px;
90
90
  width: 4px;
91
91
  border-radius: 2px;
92
- margin-right: var(--intergalactic-spacing-content-gap-small, 4px);
92
+ margin-right: var(--intergalactic-spacing-1x, 4px);
93
93
  }
94
94
 
95
95
  SAdditionalLabel[size='l']::before {
@@ -102,4 +102,4 @@ SAdditionalLabel[size='m']::before {
102
102
 
103
103
  SPatternSymbol {
104
104
  transform: scale(0.8);
105
- }
105
+ }
@@ -9,17 +9,17 @@ const style = (
9
9
  /*__reshadow_css_start__*/
10
10
  (sstyled.insert(
11
11
  /*__inner_css_start__*/
12
- '.___SLegendTable_whwqy_gg_.__columns-count_whwqy_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:var(--intergalactic-spacing-content-gap-large,8px);grid-row-gap:var(--intergalactic-spacing-content-gap-large,8px)}.___SColumnItem_whwqy_gg_._size_l_whwqy_gg_{font-size:var(--intergalactic-fs-300,16px);text-align:right}.___SColumnItem_whwqy_gg_._size_m_whwqy_gg_{font-size:var(--intergalactic-fs-200,14px);text-align:right}.___SColumnItem_whwqy_gg_.__transparent_whwqy_gg_{opacity:.3}',
12
+ '.___SLegendTable_gm25x_gg_.__columns-count_gm25x_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:var(--intergalactic-spacing-2x,8px);grid-row-gap:var(--intergalactic-spacing-2x,8px)}.___SColumnItem_gm25x_gg_._size_l_gm25x_gg_{font-size:var(--intergalactic-fs-300,16px);text-align:right}.___SColumnItem_gm25x_gg_._size_m_gm25x_gg_{font-size:var(--intergalactic-fs-200,14px);text-align:right}.___SColumnItem_gm25x_gg_.__transparent_gm25x_gg_{opacity:.3}',
13
13
  /*__inner_css_end__*/
14
- "whwqy_gg_"
14
+ "gm25x_gg_"
15
15
  ), /*__reshadow_css_end__*/
16
16
  {
17
- "__SLegendTable": "___SLegendTable_whwqy_gg_",
18
- "_columns-count": "__columns-count_whwqy_gg_",
19
- "__SColumnItem": "___SColumnItem_whwqy_gg_",
20
- "_size_l": "_size_l_whwqy_gg_",
21
- "_size_m": "_size_m_whwqy_gg_",
22
- "_transparent": "__transparent_whwqy_gg_"
17
+ "__SLegendTable": "___SLegendTable_gm25x_gg_",
18
+ "_columns-count": "__columns-count_gm25x_gg_",
19
+ "__SColumnItem": "___SColumnItem_gm25x_gg_",
20
+ "_size_l": "_size_l_gm25x_gg_",
21
+ "_size_m": "_size_m_gm25x_gg_",
22
+ "_transparent": "__transparent_gm25x_gg_"
23
23
  })
24
24
  );
25
25
  class LegendTableRoot extends BaseLegend {
@@ -4,8 +4,8 @@ SLegendTable[columns-count] {
4
4
  grid-template-columns: auto 0.2fr;
5
5
  align-items: center;
6
6
  height: fit-content;
7
- grid-column-gap: var(--intergalactic-spacing-content-gap-large, 8px);
8
- grid-row-gap: var(--intergalactic-spacing-content-gap-large, 8px);
7
+ grid-column-gap: var(--intergalactic-spacing-2x, 8px);
8
+ grid-row-gap: var(--intergalactic-spacing-2x, 8px);
9
9
  }
10
10
 
11
11
  SColumnItem[size='l'] {
package/lib/esm/index.mjs CHANGED
@@ -26,22 +26,30 @@ import { PlotEventEmitter, calculateBubbleDomain, getBubbleChartValueScale, getS
26
26
  import { colors } from "./color.mjs";
27
27
  import { makeDataHintsContainer } from "./a11y/hints.mjs";
28
28
  import { PatternFill, PatternSymbol, getPatternSymbolSize } from "./Pattern.mjs";
29
+ import { BAD, DATA_TYPE, FORECAST, GOOD, HIGHLIGHT_DOT, INSIGHTFUL, POTENTIAL } from "./component/Chart/AbstractChart.type.mjs";
29
30
  import { LegendFlex } from "./component/ChartLegend/LegendFlex/LegendFlex.mjs";
30
31
  import { LegendTable } from "./component/ChartLegend/LegendTable/LegendTable.mjs";
31
32
  export {
32
33
  default11 as Area,
34
+ BAD,
33
35
  default6 as Bar,
34
36
  default14 as Bubble,
35
37
  default3 as Chart,
36
38
  LegendFlex as ChartLegend,
37
39
  LegendTable as ChartLegendTable,
38
40
  default7 as CompactHorizontalBar,
41
+ DATA_TYPE,
39
42
  default16 as Donut,
43
+ FORECAST,
44
+ GOOD,
40
45
  default9 as GroupBar,
46
+ HIGHLIGHT_DOT,
41
47
  default8 as HorizontalBar,
42
48
  HoverLine,
43
49
  HoverRect,
50
+ INSIGHTFUL,
44
51
  default5 as Line,
52
+ POTENTIAL,
45
53
  PatternFill,
46
54
  PatternSymbol,
47
55
  default2 as Plot,
@@ -7,7 +7,7 @@ SChart {
7
7
 
8
8
  STooltipChildrenWrapper {
9
9
  display: grid;
10
- gap: var(--intergalactic-spacing-content-gap-large, 8px);
10
+ gap: var(--intergalactic-spacing-2x, 8px);
11
11
  align-items: center;
12
12
 
13
13
  &[columnsCount='2'] {
@@ -28,7 +28,7 @@ STooltipChildrenWrapper {
28
28
  }
29
29
 
30
30
  STooltipDeltaWrapper {
31
- gap: var(--intergalactic-spacing-content-gap-xsmall, 2px);
31
+ gap: var(--intergalactic-spacing-05x, 2px);
32
32
  justify-content: flex-end;
33
33
 
34
34
  &[trend='upward'] {
@@ -40,7 +40,17 @@ STooltipDeltaWrapper {
40
40
  }
41
41
 
42
42
  &[trend='stable'] {
43
- color: var(--intergalactic-text-secondary-invert, oklch(0.997 0.004 165.9 / 0.684));
43
+ color: var(--intergalactic-text-secondary-invert, oklch(0.953 0.025 240.1 / 0.726));
44
+ }
45
+
46
+ &[deltaPercentGrowthColor='critical'] {
47
+ &[trend='upward'] {
48
+ color: var(--intergalactic-chart-data-critical, oklch(0.74 0.19 22));
49
+ }
50
+
51
+ &[trend='downward'] {
52
+ color: var(--intergalactic-chart-data-success, oklch(0.82 0.19 143));
53
+ }
44
54
  }
45
55
 
46
56
  STooltipDeltaIcon {
@@ -1,8 +1,11 @@
1
1
  @import './var.css';
2
2
 
3
3
  SArea {
4
- fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
4
+ fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
5
5
  fill-opacity: 0.1;
6
+ }
7
+
8
+ SArea[withGradient] {
6
9
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.48) 60%, transparent 100%);
7
10
  }
8
11
 
@@ -12,7 +15,7 @@ SArea[color] {
12
15
 
13
16
  SArea[pattern] {
14
17
  fill: var(--pattern);
15
- fill-opacity: 0.7;
18
+ fill-opacity: 0.5;
16
19
  }
17
20
 
18
21
  SArea[transparent] {
@@ -20,7 +23,7 @@ SArea[transparent] {
20
23
  }
21
24
 
22
25
  SAreaLine {
23
- stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
26
+ stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
24
27
  stroke-width: 2;
25
28
  fill: transparent;
26
29
  }
@@ -42,10 +45,10 @@ SAreaLine {
42
45
 
43
46
  SNull {
44
47
  fill: transparent;
45
- stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.002 177));
48
+ stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.009 234));
46
49
  stroke-dasharray: 4;
47
50
  }
48
51
 
49
52
  SNull[hide] {
50
53
  display: none;
51
- }
54
+ }