Skip to main content

Share chart Review

Share chart shows a visual representation of its enclosed items' values' relative magnitudes.

Properties #

Property Attribute Description Type Default
theme theme Theme of the component. "" | "default" | "turva" ""
unit unit The string to show after each items value. When using "%" the enclosed items' values should add up to 100. string "%"

Usage #

This section includes guidelines for designers and developers about the usage of this component in different contexts.

When to use #

  • When you have ites with comparable values for which you want to give visual a representation of relative magnitudes

When not to use #

  • When the values are not actually comparable, e.g. don't have the same value
  • When there is a large number of items. There is no hard limit, but after 6 items you should start considering alternatives.

Accessibility #

This component has been validated to meet the WCAG 2.1 AA accessibility guidelines. You can find additional information regarding accessibility of this component below.


Integration

For integration, event and theming guidelines, please see Using Components. This documentation explains how to implement and use Duet’s components across different technologies like Angular, React or Vanilla JavaScript.

Integration guidelines


Tutorials

Follow these practical tutorials to learn how to build simple page layouts using Duet’s CSS Framework, Web Components and other features:

Tutorials

Building Layouts

Tutorials

Using CLI Tools

Tutorials

Creating Custom Patterns

Tutorials

Server Side Rendering

Tutorials

Sharing Prototypes

Tutorials

Usage With Markdown


Troubleshooting

If you experience any issues while using a component, please head over to the Support page for more guidelines and help.