Skip to main content
Point
@coinbase/cds-web-visualization@3.4.0-beta.9
Visual markers that highlight specific data values on a chart. Points can be customized with different colors, sizes, and interactivity.
Import
import { Point } from '@coinbase/cds-web-visualization'
SourceView source code
Peer dependencies
  • framer-motion: ^10.18.0
Related components
View as Markdown

Basics

Points are visual markers that highlight specific data values on a chart. They can be used to emphasize important data points, show discrete values, or provide interactive elements.

You can add points using points on Line or LineChart.

Loading...

You can also add Points directly to a chart.

Loading...

Conditional

You can conditionally render points to highlight specific values in your data, such as maximum/minimum values or outliers.

Loading...

Interaction

Points can be made interactive by adding click handlers, allowing users to explore data in more detail.

Loading...

Styling

Points support customization through various properties including colors, sizes, and labels.

Loading...

Labels

You can use labelPosition, labelOffset, and labelFont to adjust Point's label.

Loading...

Custom Label Position

You can also use LabelComponent to create custom label components.

Loading...

Is this page useful?

Coinbase Design is an open-source, adaptable system of guidelines, components, and tools that aid the best practices of user interface design for crypto products.