fix: Adds the Deprecated label to Time-series Percent Change chart (#30148)

This commit is contained in:
Michael S. Molina 2024-09-04 13:40:47 -03:00 committed by GitHub
parent 34e240ef0e
commit 5e42d7aed0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * 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 transformProps from '../transformProps';
import thumbnail from './images/thumbnail.png'; import thumbnail from './images/thumbnail.png';
import example from './images/example.jpg'; 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.', '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 }], exampleGallery: [{ url: example }],
label: ChartLabel.Deprecated,
name: t('Time-series Percent Change'), name: t('Time-series Percent Change'),
tags: [ tags: [
t('Legacy'), t('Legacy'),