---
title: "Charts"
slug: ovhcloud-design-system-build-charts
category: generic
type: overview
version: 20.0.0
tokens: 1039
source: https://ovh.github.io/design-system/v20.0.0/llms/ovhcloud-design-system-build-charts.txt
---
# Charts
These guidelines provide UI, functional, and UX rules to follow when creating charts.
While this documentation is not exhaustive and does not cover technical implementation details, it serves as a comprehensive reference for designing effective and consistent data visualizations.
## General guidelines
- **Consistency**: Maintain consistency in your chart types and styles across your application or platform
- **Labels**: Clearly label your axes, legend, and data points. Use descriptive titles (or Tooltips) to help users understand the chart's purpose and details
- **Accessibility**: Ensure your charts are accessible to all users (see [Accessible Charts](https://www.a11y-collective.com/blog/accessible-charts/))
## Chart types
The following chart types are commonly used in OVHcloud, categorized by their primary use cases:
### Bar Charts
**Usage**
- Comparing quantities or amounts between different categories
- Displaying data in a stacked layout to show cumulative values
**Best Practices**
- Prefer using vertical bars rather than horizontal layout
- Use solid bar colors to distinguish them from background
### Line Charts
**Usage**
- Showing progression and trends of data over time
- Comparing multiple lines through a common criterion such as a timespan
**Best Practices**
- Prefer using solid lines for data series
### Area Charts
**Usage**
- Presenting the amplitude of content and focusing on drastic trend changes
- Displaying data in a stacked layout to show cumulative values
**Best Practices**
- Top of areas must be a solid line to draw area limit
- Opacity can be applied to areas to show data overlaps
### Pie Charts
**Usage**
- Displaying proportions and percentages of a whole amount
**Best Practices**
- Avoid more than 5 slices to keep clarity
## Styling
### Structural elements
For structural elements, here are the expected values to apply:
Element
Token
Color
Preview
--ods-semantic-color-chart-background#ffffff--ods-semantic-color-chart-background (default: #ffffff)--ods-semantic-color-chart-axis#b3b3b3--ods-semantic-color-chart-axis (default: #b3b3b3)--ods-semantic-color-chart-tick#4d4d4d--ods-semantic-color-chart-tick (default: #4d4d4d)--ods-semantic-color-chart-legend#4d4d4d--ods-semantic-color-chart-legend (default: #4d4d4d)--ods-semantic-color-chart-grid#cccccc--ods-semantic-color-chart-grid (default: #cccccc)--ods-semantic-color-chart-reference-line#bf0020--ods-semantic-color-chart-reference-line (default: #bf0020)