Line Chart
Line chart connects data points with straight lines to display trends over time or categories.
Basic
Charts are used to display data in a clear and concise manner. They are ideal for presenting information in a visually appealing and easy-to-understand format.
Installation
Colors
If you're working on an existing project, you can use these variables. However, if you've just installed Justd, they will already be included during project initialization. You can also customize chart colors, check out the theme page for more options.
Tooltip
Tooltips are used to provide additional information about a chart element when the user hovers over it. They can be used to display additional details, such as the value of a data point, or to provide context about the data.
Legend
Legends are used to display a list of labels for different chart elements. They can be used to provide context about the data and help the user understand the meaning of different colors and shapes.
Line Chart
A line chart is used to display data points connected by a straight line, showing trends or changes over time. It's ideal for visualizing continuous data, especially when you want to emphasize the direction of change (upward or downward trends) over a period.
Multiple
Dots
Dots Color
Custom Label
Linear
Accessibility
For accessibility purposes, you can add the accessibilityLayer
prop to the chart component. This will add a role="img"
to the chart, which will make it accessible to screen readers.