Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@forter/chart

Package Overview
Dependencies
Maintainers
3
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forter/chart - npm Package Compare versions

Comparing version 5.5.2 to 5.5.3

11

CHANGELOG.md

@@ -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 @@

8

chart-config-builders/dataset-color-config-builder.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc