@forter/chart-value
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -6,4 +6,12 @@ # Change Log | ||
## [1.0.2](https://github.com/forter/web-components/compare/@forter/chart-value@1.0.1...@forter/chart-value@1.0.2) (2023-03-20) | ||
**Note:** Version bump only for package @forter/chart-value | ||
## 1.0.1 (2023-03-13) | ||
**Note:** Version bump only for package @forter/chart-value |
@@ -53,3 +53,3 @@ import { css } from 'lit-element'; | ||
.negative-color { | ||
color: var(--fc-red-300); | ||
color: var(--fc-red-400); | ||
} | ||
@@ -56,0 +56,0 @@ |
@@ -98,4 +98,4 @@ const COLOR = { | ||
const generateChartOptions = chartData => { | ||
const suggestedMin = chartData ? Math.min(...chartData.map(item => Math.min(...item.data))) * 0.995 : 0; | ||
const suggestedMax = chartData ? Math.max(...chartData.map(item => Math.max(...item.data))) * 1.005 : 1; | ||
const suggestedMin = chartData ? Math.min(...chartData.map(item => Math.min(...item.data))) : 0; | ||
const suggestedMax = chartData ? Math.max(...chartData.map(item => Math.max(...item.data))) : 1; | ||
return { | ||
@@ -109,4 +109,4 @@ plugins: { | ||
y: { | ||
suggestedMin: suggestedMin, | ||
suggestedMax: suggestedMax, | ||
min: suggestedMin, | ||
max: suggestedMax, | ||
display: false | ||
@@ -113,0 +113,0 @@ }, |
{ | ||
"name": "@forter/chart-value", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "chart-value from Forter Components", | ||
@@ -54,3 +54,3 @@ "author": "Forter Developers", | ||
}, | ||
"gitHead": "c4320e80baabbd636a150ca16d20b93eefb122a0" | ||
"gitHead": "2609947ed9e30d9feafba7ae62595543b2dc3ce4" | ||
} |
@@ -89,5 +89,5 @@ const COLOR = { | ||
const suggestedMin = chartData ? | ||
Math.min(...chartData.map(item => Math.min(...item.data))) * 0.995 : 0; | ||
Math.min(...chartData.map(item => Math.min(...item.data))) : 0; | ||
const suggestedMax = chartData ? | ||
Math.max(...chartData.map(item => Math.max(...item.data))) * 1.005 : 1; | ||
Math.max(...chartData.map(item => Math.max(...item.data))) : 1; | ||
@@ -102,4 +102,4 @@ return { | ||
y: { | ||
suggestedMin: suggestedMin, | ||
suggestedMax: suggestedMax, | ||
min: suggestedMin, | ||
max: suggestedMax, | ||
display: false | ||
@@ -106,0 +106,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
109419