No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

The component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:

  1. Missing Context/Providers: You can use decorators to supply specific contexts or providers, which are sometimes necessary for components to render correctly. For detailed instructions on using decorators, please visit the Decorators documentation.
  2. Misconfigured Webpack or Vite: Verify that Storybook picks up all necessary settings for loaders, plugins, and other relevant parameters. You can find step-by-step guides for configuring Webpack or Vite with Storybook.
  3. Missing Environment Variables: Your Storybook may require specific environment variables to function as intended. You can set up custom environment variables as outlined in the Environment Variables documentation.

Axes Labels

Different logics are available regarding the way to display the labels on the axes when can't all be displayed. Whether the axis shows discrete or continuous values, the following modes can be applied on the horizontal and vertical axes:

Horizontal axis

On the horizontal axis the property config.horizontalAxisLabelsBehavior can be set to anticipate a situation where all the labels can't be displayed. The available values are from the WebChartLabelBehavior:

WebChartLabelBehavior = { Hide: "hide", Rotate: "rotate", Stagger: "stagger", Wrap: "wrap", };
horizontalAxisLabelsBehaviorChart
Rotate (default mode)Rotate
WrapWrap
StaggerStagger
HideHide

Vertical axis

On the vertical axis the property config.verticalAxisLabelsBehavior can be set to anticipate a situation where the labels occupy too much space. The available values are a subset from the WebChartLabelBehavior:

WebChartLabelBehavior = { Hide: "hide", Wrap: "wrap", };
Wrap (default mode)Hide
Wrap VerticalHide Vertical