@forter/chart
Advanced tools
Comparing version 5.42.3 to 5.42.4
@@ -6,2 +6,13 @@ # Change Log | ||
## [5.42.4](https://github.com/forter/web-components/compare/@forter/chart@5.42.3...@forter/chart@5.42.4) (2024-07-11) | ||
### Bug Fixes | ||
* **chart:** fix_nan_values_tooltip ([45955d9](https://github.com/forter/web-components/commit/45955d9)) | ||
## [5.42.3](https://github.com/forter/web-components/compare/@forter/chart@5.42.2...@forter/chart@5.42.3) (2024-07-07) | ||
@@ -8,0 +19,0 @@ |
@@ -113,3 +113,3 @@ import { html } from 'lit-element'; | ||
const dataArr = chartJSContext.chart.data.datasets[0].data; | ||
const sum = dataArr.reduce((accu, current) => accu += current.value, 0); | ||
const sum = dataArr.reduce((accu, current) => accu += current === null || current === void 0 ? void 0 : current.value, 0); | ||
const ratio = (dataPoint.raw.value / sum * 100).toFixed(2); | ||
@@ -116,0 +116,0 @@ return { |
{ | ||
"name": "@forter/chart", | ||
"version": "5.42.3", | ||
"version": "5.42.4", | ||
"description": "chart from Forter Components", | ||
@@ -61,3 +61,3 @@ "author": "Forter Developers", | ||
}, | ||
"gitHead": "80cd722725a68b0e09112a25e69127e566a278b2" | ||
"gitHead": "7bd39cb31b2135870eb1197546bc09f337db21ad" | ||
} |
@@ -80,3 +80,3 @@ import { get, merge } from 'lodash-es'; | ||
const dataArr = chartJSContext.chart.data.datasets[0].data; | ||
const sum = dataArr.reduce((accu, current) => accu += current.value, 0); | ||
const sum = dataArr.reduce((accu, current) => accu += current?.value, 0); | ||
const ratio = ((dataPoint.raw.value / sum) * 100).toFixed(2); | ||
@@ -83,0 +83,0 @@ return { |
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
414251