@forter/chart
Advanced tools
Comparing version 5.5.2 to 5.5.3
@@ -6,2 +6,13 @@ # Change Log | ||
## [5.5.3](https://github.com/forter/web-components/compare/@forter/chart@5.5.2...@forter/chart@5.5.3) (2021-09-19) | ||
### Bug Fixes | ||
* **chart:** fixed dashboard color override ([#759](https://github.com/forter/web-components/issues/759)) ([0ed1025](https://github.com/forter/web-components/commit/0ed1025)) | ||
## [5.5.2](https://github.com/forter/web-components/compare/@forter/chart@5.5.1...@forter/chart@5.5.2) (2021-09-12) | ||
@@ -8,0 +19,0 @@ |
@@ -37,8 +37,8 @@ const translateColor = (color, context) => { | ||
} else if (xAxisType === 'SINGLE_NON_TIME_FIELD') { | ||
dataset.backgroundColor = DEFAULT_COLORS; | ||
dataset.borderColor = DEFAULT_COLORS; | ||
dataset.backgroundColor = dataset.backgroundColor || DEFAULT_COLORS; | ||
dataset.borderColor = dataset.borderColor || DEFAULT_COLORS; | ||
} else { | ||
// in this case the datasets are per different dimension values | ||
dataset.backgroundColor = DEFAULT_COLORS[index]; | ||
dataset.borderColor = DEFAULT_COLORS[index]; | ||
dataset.backgroundColor = dataset.backgroundColor || DEFAULT_COLORS[index]; | ||
dataset.borderColor = dataset.borderColor || DEFAULT_COLORS[index]; | ||
} | ||
@@ -45,0 +45,0 @@ |
{ | ||
"name": "@forter/chart", | ||
"version": "5.5.2", | ||
"version": "5.5.3", | ||
"description": "chart from Forter Components", | ||
@@ -59,3 +59,3 @@ "author": "Forter Developers", | ||
}, | ||
"gitHead": "86715a28b44c4991506bd925028b8f9e8fa515ae" | ||
"gitHead": "a8b87403a797c5a19b978d7a0ac194a78e91d2f5" | ||
} |
@@ -45,9 +45,10 @@ const translateColor = (color, context) => { | ||
} else if (xAxisType === 'SINGLE_NON_TIME_FIELD') { | ||
dataset.backgroundColor = DEFAULT_COLORS; | ||
dataset.borderColor = DEFAULT_COLORS; | ||
dataset.backgroundColor = dataset.backgroundColor || DEFAULT_COLORS; | ||
dataset.borderColor = dataset.borderColor || DEFAULT_COLORS; | ||
} else { | ||
// in this case the datasets are per different dimension values | ||
dataset.backgroundColor = DEFAULT_COLORS[index]; | ||
dataset.borderColor = DEFAULT_COLORS[index]; | ||
dataset.backgroundColor = dataset.backgroundColor || DEFAULT_COLORS[index]; | ||
dataset.borderColor = dataset.borderColor || DEFAULT_COLORS[index]; | ||
} | ||
dataset.backgroundColor = translateColorArray( | ||
@@ -57,3 +58,7 @@ dataset.backgroundColor, | ||
); | ||
dataset.borderColor = translateColorArray(dataset.borderColor, context); | ||
dataset.borderColor = translateColorArray( | ||
dataset.borderColor, | ||
context); | ||
return dataset; | ||
@@ -60,0 +65,0 @@ }); |
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
118689
2203