@forter/chart
Advanced tools
Comparing version 5.38.0 to 5.39.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [5.39.0](https://github.com/forter/web-components/compare/@forter/chart@5.38.0...@forter/chart@5.39.0) (2024-01-14) | ||
### Features | ||
* **chart:** fix legend builder when legend is hidden ([1cbcfb9](https://github.com/forter/web-components/commit/1cbcfb9)) | ||
# [5.38.0](https://github.com/forter/web-components/compare/@forter/chart@5.37.5...@forter/chart@5.38.0) (2024-01-14) | ||
@@ -8,0 +19,0 @@ |
@@ -158,2 +158,15 @@ import { merge } from 'lodash-es'; | ||
if (context.isLegendHidden) { | ||
const noLegendObject = { | ||
options: { | ||
plugins: { | ||
legend: { | ||
display: false | ||
} | ||
} | ||
} | ||
}; | ||
return merge(chartJSConfig, noLegendObject); | ||
} | ||
const legendObject = { | ||
@@ -160,0 +173,0 @@ options: { |
{ | ||
"name": "@forter/chart", | ||
"version": "5.38.0", | ||
"version": "5.39.0", | ||
"description": "chart from Forter Components", | ||
@@ -61,3 +61,3 @@ "author": "Forter Developers", | ||
}, | ||
"gitHead": "efb432466ed93ca3f17d7e173874d58b0a444b79" | ||
"gitHead": "8d64263a83d6f5e881f6535c686e2be95b30fad1" | ||
} |
@@ -139,2 +139,14 @@ import { merge } from 'lodash-es'; | ||
export default (config, chartJSConfig, context) => { | ||
if (context.isLegendHidden) { | ||
const noLegendObject = { | ||
options: { | ||
plugins: { | ||
legend: { | ||
display: false, | ||
} | ||
} | ||
} | ||
}; | ||
return merge(chartJSConfig, noLegendObject); | ||
} | ||
const legendObject = { | ||
@@ -141,0 +153,0 @@ options: { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
379024
6016