| flavors: |
| - flavor: svg |
| path: /bar/ |
| - flavor: canvas |
| path: /bar/canvas/ |
| - flavor: api |
| path: /bar/api/ |
|
|
| Bar: |
| package: '@nivo/bar' |
| tags: [] |
| stories: |
| - label: Using markers |
| link: bar--with-marker |
| - label: Stacked diverging bar chart |
| link: bar--diverging-stacked |
| - label: Grouped diverging bar chart |
| link: bar--diverging-grouped |
| - label: Custom bar element |
| link: bar--custom-bar-item |
| - label: Formatting values |
| link: bar--with-formatted-values |
| - label: Using custom tooltip |
| link: bar--custom-tooltip |
| - label: Custom axis ticks |
| link: bar--custom-axis-ticks |
| - label: With symlog scale |
| link: bar--with-symlog-scale |
| - label: Race bar chart |
| link: bar--race-chart |
| - label: Initial hidden ids |
| link: bar--initial-hidden-ids |
| - label: Using custom label for legends |
| link: bar--custom-legend-labels |
| - label: Using annotations |
| link: bar--with-annotations |
| - label: Using totals |
| link: bar--with-totals |
| - label: Using top labels |
| link: bar--with-top-labels |
| description: | |
| Bar chart which can display multiple data series, stacked or side by side. Also |
| supports both vertical and horizontal layout, with negative values descending |
| below the x axis (or y axis if using horizontal layout). |
| The bar item component can be customized to render any valid SVG element, it |
| will receive current bar style, data and event handlers, |
| there's an example in [storybook](storybook:bar--custom-bar-item). |
| BarCanvas: |
| package: '@nivo/bar' |
| tags: |
| - canvas |
| stories: |
| - label: Using custom layer |
| link: barcanvas--custom-layer |
| - label: Using custom bar renderer |
| link: barcanvas--custom-bar-renderer |
| - label: Using annotations |
| link: barcanvas--with-annotations |
| description: | |
| A variation around the [Bar](self:/bar) component. Well suited for |
| large data sets as it does not impact DOM tree depth, however you'll |
| lose the isomorphic ability and transitions. |