@gitlab/ui 90.0.0 → 90.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [90.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v90.0.0...v90.1.0) (2024-08-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * **GlStackedColumnChart:** Add `includeLegendAvgMax` prop ([70874ae](https://gitlab.com/gitlab-org/gitlab-ui/commit/70874ae8860799e0f6a4de326cb38863dc2b1265))
7
+
1
8
  # [90.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v89.7.0...v90.0.0) (2024-08-22)
2
9
 
3
10
 
@@ -79,6 +79,11 @@ var script = {
79
79
  required: false,
80
80
  default: () => []
81
81
  },
82
+ includeLegendAvgMax: {
83
+ type: Boolean,
84
+ required: false,
85
+ default: true
86
+ },
82
87
  legendAverageText: {
83
88
  type: String,
84
89
  required: false,
@@ -248,7 +253,7 @@ var script = {
248
253
  name: series.name,
249
254
  type: series.type,
250
255
  color: this.getColor(index),
251
- data: series.data.map(data => data),
256
+ data: this.includeLegendAvgMax ? series.data.map(data => data) : undefined,
252
257
  yAxisIndex: series.yAxisIndex
253
258
  });
254
259
  return acc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "90.0.0",
3
+ "version": "90.1.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -98,6 +98,11 @@ export default {
98
98
  required: false,
99
99
  default: () => [],
100
100
  },
101
+ includeLegendAvgMax: {
102
+ type: Boolean,
103
+ required: false,
104
+ default: true,
105
+ },
101
106
  legendAverageText: {
102
107
  type: String,
103
108
  required: false,
@@ -242,7 +247,7 @@ export default {
242
247
  name: series.name,
243
248
  type: series.type,
244
249
  color: this.getColor(index),
245
- data: series.data.map((data) => data),
250
+ data: this.includeLegendAvgMax ? series.data.map((data) => data) : undefined,
246
251
  yAxisIndex: series.yAxisIndex,
247
252
  });
248
253
  return acc;