Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
fix(legacy-preset-chart-big-number): example images got mixed up (#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
suddjian authored Jul 1, 2021
1 parent a749404 commit 60215b5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 2 additions & 6 deletions plugins/legacy-preset-chart-big-number/src/BigNumber/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,15 @@
import { t, ChartMetadata, ChartPlugin } from '@superset-ui/core';
import controlPanel from './controlPanel';
import transformProps, { BigNumberChartProps, BigNumberFormData } from './transformProps';
import example1 from './images/BigNumber.jpg';
import example2 from './images/BigNumber2.jpg';
import example from './images/Big_Number_Trendline.jpg';
import thumbnail from './images/thumbnail.png';

const metadata = new ChartMetadata({
category: t('Time Series'),
description: t(
'A single number accompanied by a simple line chart, to call attention to an important metric along with its change over time or another dimension. If you find yourself using a lot of big numbers on a dashboard, a more visual chart may help you make your dashboard more informative.',
),
exampleGallery: [
{ url: example1, caption: t('A Big Number') },
{ url: example2, caption: t('With a subheader') },
],
exampleGallery: [{ url: example }],
name: t('Big Number with Trendline'),
thumbnail,
useLegacyApi: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,19 @@ import transformProps, {
BigNumberChartProps,
BigNumberFormData,
} from '../BigNumber/transformProps';
import example from './images/Big_Number_Trendline.jpg';
import example1 from './images/BigNumber.jpg';
import example2 from './images/BigNumber2.jpg';
import thumbnail from './images/thumbnail.png';

const metadata = new ChartMetadata({
category: t('Composition'),
description: t(
'A single number that calls attention to an important metric. Good for KPI and strategic dashboards that showcase a few, focused set of metrics.',
),
exampleGallery: [{ url: example }],
exampleGallery: [
{ url: example1, caption: t('A Big Number') },
{ url: example2, caption: t('With a subheader') },
],
name: t('Big Number'),
thumbnail,
useLegacyApi: true,
Expand Down

1 comment on commit 60215b5

@vercel
Copy link

@vercel vercel bot commented on 60215b5 Jul 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.