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 Bounds

By default the bounds on a value axis will be set to be flushed against the highest/lowest bar or marker on the chart, without letting any extra space.

Buffer

The behavior can be adjusted through the boolean property config.axes[i].buffer:

  • when the value is not provided or set to false, there won't be any buffer around the points or bars.
  • when the value is not provided or set to true, an automatic buffer will be added. The allocated space will vary according to the current distance in between two axis labels / grid lines:
No buffer (default mode)Buffer
No buffer 1Buffer 1
No buffer 2Buffer 2
No buffer 3Buffer 3

Customized bounds

A value or date axis bounds can be also directly set through the numeric properties config.axes[i].minimum | maximum (unless the axis is using a logarithmic scale, see after).

No specific bounds setx-axis bounds: [-165, -140] - y-axis bounds: [55-68]
Customized Bounds 1Customized Bounds 2

Logarithmic axis

A value axis can be set to display on a regular or logarithmic scale, through the boolean property config.axes[i].isLogarithmic. When the logarithmic option is selected, the customized bounds are not applied anymore.

Observe the axis labels on the following examples:

Axis typeChart
both regular axes (default)Logarithmic 1
y-axis logarithmicLogarithmic 2
x-axis logarithmicLogarithmic 3