--- 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 Background --ods-semantic-color-chart-background #ffffff --ods-semantic-color-chart-background (default: #ffffff) Axis --ods-semantic-color-chart-axis #b3b3b3 --ods-semantic-color-chart-axis (default: #b3b3b3) Ticks (axis labels) --ods-semantic-color-chart-tick #4d4d4d --ods-semantic-color-chart-tick (default: #4d4d4d) Legends --ods-semantic-color-chart-legend #4d4d4d --ods-semantic-color-chart-legend (default: #4d4d4d) Grids --ods-semantic-color-chart-grid #cccccc --ods-semantic-color-chart-grid (default: #cccccc) Reference Line --ods-semantic-color-chart-reference-line #bf0020 --ods-semantic-color-chart-reference-line (default: #bf0020) - Font-family must follow ODS pre-set for all text labelling - Font-size minimum values to use are: - **12px** for axis labels - **14px** for legends - **16px** for tooltip content - ODS Tooltips must be used to define series data while hovering on values ## Color scheme Use the following colors for your chart series, in the specified order: | Series | Color | |---|---| | 1 | `#0050d7` | | 2 | `#ac246f` | | 3 | `#00875a` | | 4 | `#df3400` | | 5 | `#25327c` | | 6 | `#a61e20` | | 7 | `#006d77` | | 8 | `#6a2ecf` | | 9 | `#374151` | | 10 | `#4f8400` | These colors are picked for their likelihood to be valid regarding color contrast ratio, and can be distinguished from one another.