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

Commit

Permalink
fix: address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed Apr 27, 2020
1 parent 967da8f commit a91a127
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { SuperChart } from '@superset-ui/chart';
import { select } from '@storybook/addon-knobs';
import { select, withKnobs } from '@storybook/addon-knobs';
import WordCloudChartPlugin from '@superset-ui/plugin-chart-word-cloud';
import LegacyWordCloudChartPlugin from '@superset-ui/plugin-chart-word-cloud/esm/legacy';
import data from './data';
Expand All @@ -10,6 +10,7 @@ new LegacyWordCloudChartPlugin().configure({ key: 'legacy-word-cloud2' }).regist

export default {
title: 'Chart Plugins|plugin-chart-word-cloud',
decorators: [withKnobs],
};

export const basic = () => (
Expand Down Expand Up @@ -78,7 +79,6 @@ export const encodesColorByWordLength = () => (
/>
);


export const encodesFontByFirstLetter = () => (
<SuperChart
chartType="word-cloud2"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { LineChartPlugin, LegacyLineChartPlugin } from '@superset-ui/preset-chart-xy';
import { LINE_PLUGIN_TYPE, LINE_PLUGIN_LEGACY_TYPE } from './constants';
import { withKnobs } from '@storybook/addon-knobs';

new LegacyLineChartPlugin().configure({ key: LINE_PLUGIN_LEGACY_TYPE }).register();
new LineChartPlugin().configure({ key: LINE_PLUGIN_TYPE }).register();

export default {
title: 'Chart Plugins|preset-chart-xy/Line',
decorators: [withKnobs],
};

export { default as basic } from './stories/basic';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { ScatterPlotChartPlugin, LegacyScatterPlotChartPlugin } from '@superset-ui/preset-chart-xy';
import { SCATTER_PLOT_PLUGIN_TYPE, SCATTER_PLOT_PLUGIN_LEGACY_TYPE } from './constants';
import { withKnobs } from '@storybook/addon-knobs';

new LegacyScatterPlotChartPlugin().configure({ key: SCATTER_PLOT_PLUGIN_LEGACY_TYPE }).register();
new ScatterPlotChartPlugin().configure({ key: SCATTER_PLOT_PLUGIN_TYPE }).register();

export default {
title: 'Chart Plugins|preset-chart-xy/ScatterPlot',
decorators: [withKnobs],
};

export { default as basic } from './stories/basic';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ new BuggyChartPlugin().configure({ key: ChartKeys.BUGGY }).register();
const DEFAULT_QUERY_DATA = { data: ['foo', 'bar'] };

export default {
title: 'Core Packages|@superset-ui/chart',
title: '*Core Packages|@superset-ui/chart',
decorators: [withKnobs],
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import SequantialD3Palettes from '@superset-ui/color/src/colorSchemes/sequential
import RenderPalettes from './RenderPalettes';

export default {
title: 'Core Packages|@superset-ui/color',
title: '*Core Packages|@superset-ui/color',
};

export const categoricalPalettes = () =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Expandable from '../../shared/components/Expandable';
const REQUEST_METHODS = ['GET', 'POST'];

export default {
title: 'Core Packages|@superset-ui/connection',
title: '*Core Packages|@superset-ui/connection',
decorators: [withKnobs],
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ NumberFormatValidator.propTypes = propTypes;
NumberFormatValidator.defaultProps = defaultProps;

export default {
title: 'Core Packages|@superset-ui/number-format',
title: '*Core Packages|@superset-ui/number-format',
};

export const validator = () => <NumberFormatValidator />;
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ TimeFormatValidator.propTypes = propTypes;
TimeFormatValidator.defaultProps = defaultProps;

export default {
title: 'Core Packages|@superset-ui/time-format',
title: '*Core Packages|@superset-ui/time-format',
};

export const validator = () => <TimeFormatValidator />;

0 comments on commit a91a127

Please sign in to comment.