in src/components/charts/legend/legend.stories.js [96:118]
template: generateTemplate(legendLayoutType),
};
};
export const Default = () => getStoryOptions(10, SERIES_NAME_SHORT);
export const DefaultWithDisabledLegendItem = () => {
const storyOptions = getStoryOptions(10, SERIES_NAME_SHORT);
storyOptions.seriesInfo = [...storyOptions.seriesInfo, disabledLegendItem];
return storyOptions;
};
export const DefaultWithLongSeriesNames = () => getStoryOptions(10, SERIES_NAME_LONG);
export const DefaultWithLongSeriesNamesAndNoSpaces = () =>
getStoryOptions(10, SERIES_NAME_LONG_WITHOUT_SPACES);
export const DefaultWithOverflowingFixedContainerHeight = () => {
const storyOptions = getStoryOptions(50, SERIES_NAME_LONG_WITHOUT_SPACES, null);
storyOptions.template = generateTemplate(
null,
{