From 10e7fe674f6c8f5e28b3daf3769f53ea9d54b56c Mon Sep 17 00:00:00 2001 From: stephenLYZ <750188453@qq.com> Date: Mon, 21 Feb 2022 14:07:04 +0800 Subject: [PATCH] chore: unify usages of nvd3 library --- superset-frontend/package-lock.json | 10 ++-------- .../plugins/legacy-plugin-chart-rose/package.json | 2 +- .../plugins/legacy-plugin-chart-rose/src/Rose.js | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/superset-frontend/package-lock.json b/superset-frontend/package-lock.json index 04bb5be74c8dc..c94d2079f6a0b 100644 --- a/superset-frontend/package-lock.json +++ b/superset-frontend/package-lock.json @@ -59559,7 +59559,7 @@ "license": "Apache-2.0", "dependencies": { "d3": "^3.5.17", - "nvd3": "1.8.6", + "nvd3-fork": "^2.0.5", "prop-types": "^15.6.2" }, "peerDependencies": { @@ -76440,7 +76440,7 @@ "version": "file:plugins/legacy-plugin-chart-rose", "requires": { "d3": "^3.5.17", - "nvd3": "1.8.6", + "nvd3-fork": "^2.0.5", "prop-types": "^15.6.2" } }, @@ -95538,12 +95538,6 @@ "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" }, - "nvd3": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/nvd3/-/nvd3-1.8.6.tgz", - "integrity": "sha1-LT66dL8zNjtRAevx0JPFmlOuc8Q=", - "requires": {} - }, "nvd3-fork": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/nvd3-fork/-/nvd3-fork-2.0.5.tgz", diff --git a/superset-frontend/plugins/legacy-plugin-chart-rose/package.json b/superset-frontend/plugins/legacy-plugin-chart-rose/package.json index 6ea320c96e08f..1541f323fe418 100644 --- a/superset-frontend/plugins/legacy-plugin-chart-rose/package.json +++ b/superset-frontend/plugins/legacy-plugin-chart-rose/package.json @@ -29,7 +29,7 @@ }, "dependencies": { "d3": "^3.5.17", - "nvd3": "1.8.6", + "nvd3-fork": "^2.0.5", "prop-types": "^15.6.2" }, "peerDependencies": { diff --git a/superset-frontend/plugins/legacy-plugin-chart-rose/src/Rose.js b/superset-frontend/plugins/legacy-plugin-chart-rose/src/Rose.js index 1a60fdbc9513b..7ad4fd508ea56 100644 --- a/superset-frontend/plugins/legacy-plugin-chart-rose/src/Rose.js +++ b/superset-frontend/plugins/legacy-plugin-chart-rose/src/Rose.js @@ -21,7 +21,7 @@ /* eslint-disable react/sort-prop-types */ import d3 from 'd3'; import PropTypes from 'prop-types'; -import nv from 'nvd3'; +import nv from 'nvd3-fork'; import { getTimeFormatter, getNumberFormatter,