Nivo Chart Customisation: Colours, Themes, Axes and Tooltips
Master Nivo chart customisation: colour schemes, theme objects, axes, legends, labels, custom tooltips, patterns and responsive layout techniques.
Read guide
Nivo rocks is the name developers often use for nivo.rocks, the documentation and demo website of the Nivo project. Rather than a static list of props, it works as an interactive playground where every chart can be adjusted live. Learning to use the site well is one of the quickest ways to become productive with Nivo charts.
The site opens with a gallery of chart types, each represented by a small preview. Selecting one leads to a page that combines a live chart, a set of controls, the generated code, sample data and a reference of available properties. Shared guides cover topics such as theming, colours, legends, gradients and patterns.
The website is built from the same repository as the library, so its demos use the real packages. What you see in the playground is what your project will render with the same configuration.
Controls on each chart page are grouped by topic, typically base settings, style, labels, grid and axes, interactivity, motion and legends. Moving a slider or toggling an option updates the preview immediately, making cause and effect easy to see.
Because nothing is saved to your project, the playground is a safe space to try unusual combinations. Pushing a setting to its extremes is a useful way to understand exactly what a prop does.
Alongside the chart, tabs reveal the generated code and the sample data. The code reflects your current control settings, so copying it into a project reproduces the exact chart you designed. The data tab shows the expected shape, which removes guesswork when preparing your own data.
A properties section lists every prop with its type, default value and a short description. Keeping controls and reference side by side means you can read about a prop and see its effect in the same moment.
| Tab or panel | Best used for |
|---|---|
| Chart | Seeing the visual result of each setting |
| Code | Copying a working configuration into a project |
| Data | Matching your data to the expected format |
| Properties | Reading types, defaults and descriptions |
Many chart pages offer separate entries for SVG, Canvas and sometimes HTML renderers. Switching between them shows which props are shared and which are specific to a renderer, helping you decide whether a Canvas version suits a large dataset.
Comparing variants on the website before writing code saves time, since you can confirm that the features you need, such as labels or patterns, are supported by the renderer you choose.
The website links to a Storybook that collects additional examples. Stories often demonstrate edge cases, custom layers, special tooltips or interactions that the main playground does not expose through controls.
When a feature is hard to picture from the prop table alone, searching Storybook for the chart name usually reveals a working demonstration of it.
A few habits make the site far more effective in daily work. Most of them revolve around starting from working defaults and changing one thing at a time.
The website is ideal for exploring options visually, while the GitHub repository is better for reading source code, issues and release notes. Articles and tutorials help connect both, explaining why certain configurations work well in real dashboards.
Combining the playground for experiments, the repository for deeper research and focused articles for context gives a well-rounded understanding. The GitHub repository article covers the source side in detail.
The gallery can feel overwhelming at first because it lists so many chart types. Starting from the question you want to answer narrows the options quickly and points you to the right page.
| Question | Gallery entry to open |
|---|---|
| How has a value changed over time? | Line, Stream or Bump |
| How do categories compare? | Bar or Radar |
| What share does each part hold? | Pie, Waffle or Radial Bar |
| How is a hierarchy structured? | TreeMap, Sunburst or Circle Packing |
| How do values flow between groups? | Sankey or Chord |
Opening two candidate charts in separate tabs and loading similar data into both is a quick way to see which one communicates the point more clearly.
Every chart page includes sample data that already follows the correct structure. Pasting your own values into that structure inside the playground is a fast way to preview real data before writing any project code.
nivo.rocks is the documentation and demo website linked from the plouc/nivo repository on GitHub.
Yes. The code tab reflects your settings, so the snippet works once the matching packages are installed and your data follows the same shape.
No. This site is an informational resource about Nivo and is not affiliated with nivo.rocks or the project maintainers.
Nivo rocks turns documentation into a hands-on playground, with live previews, generated code, sample data, property references and Storybook examples. Using it to experiment before writing code shortens the path from idea to working chart.
Pair the website with the documentation walkthrough to read prop tables confidently, and with practical examples to see how settings translate into real dashboards.