Chart
Bars and Line
Two quantities of different kinds on one field: bars hold the volume on the left scale, the line holds the share on the right, and the second axis says plainly that their units differ.
What you can change
- the points through points: label, bar and line on each
- the scale captions through barLabel and lineLabel, the right-hand sign through lineSuffix
- the heading through title and the caption through unitLabel with the {barLabel} and {lineLabel} placeholders
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/chart-028?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
One file, zero dependencies, the --vibeui-chart-028-* palette. A server component. The bars and the line have their own scales: each top is rounded up to a round number by ceilNice, so the axis labels read instead of ending in 1137. The bars start at zero — otherwise their heights cannot be compared; the line runs through the bar centres. The bar fill is paler than the line via color-mix from the accent: the volume is background here and the question is asked of the share. Left labels anchor to the end of the line, right ones to the start, so both columns of digits line up. The data is mirrored in a hidden table and the SVG is aria-hidden. Motion: columns grow one after another, the line reveals after; reduced motion shows everything at once; animate=false turns it off.
Tags
- chart
- combo
- bar
- line
- animated
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…