From 5e42d7aed0d11c7aac91ab19088d2632e49da614 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Wed, 4 Sep 2024 13:40:47 -0300 Subject: [PATCH] fix: Adds the Deprecated label to Time-series Percent Change chart (#30148) --- .../plugins/legacy-preset-chart-nvd3/src/Compare/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/Compare/index.js b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/Compare/index.js index 91d6bbb4f..2044ac07b 100644 --- a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/Compare/index.js +++ b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/Compare/index.js @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -import { t, ChartMetadata, ChartPlugin } from '@superset-ui/core'; +import { t, ChartMetadata, ChartPlugin, ChartLabel } from '@superset-ui/core'; import transformProps from '../transformProps'; import thumbnail from './images/thumbnail.png'; import example from './images/example.jpg'; @@ -29,6 +29,7 @@ const metadata = new ChartMetadata({ 'Visualizes many different time-series objects in a single chart. This chart is being deprecated and we recommend using the Time-series Chart instead.', ), exampleGallery: [{ url: example }], + label: ChartLabel.Deprecated, name: t('Time-series Percent Change'), tags: [ t('Legacy'),