Skip to content

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 and zhaoyongjie committed Nov 26, 2021
1 parent 0949825 commit c160a4a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
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

0 comments on commit c160a4a

Please sign in to comment.