Charts

Profit/Loss Line Chart

A line chart whose stroke changes color depending on whether the value is above or below zero, splitting cleanly at each crossing point.

Using Profit/Loss Line Chart

A line chart whose stroke changes color depending on whether the value is above or below zero, splitting cleanly at each crossing point.

Try the live preview with a pointer and keyboard, then check focus visibility and the narrow layout in your own page. Use the plate number or slug when asking your coding agent to fetch this component.

Props: positiveColor, negativeColor, strokeWidth, smooth

Which frameworks are available?

The catalog lists these versions: react, vue, svelte, astro, html. The live preview on this page runs React.

How do I access the implementation?

The code, framework versions and installation commands are available in the workbench above.

Connect your agent

Nearby