Build a chart card with Tailwind CSS and no chart library: a stacked bar chart drawn with flex divs (each stack a column of proportional segments), a legend with color swatches and values, and a range picker (7d / 30d / 90d) above the chart that swaps the dataset. Animate segment heights on data change, add a tooltip showing the exact values on hover, and keep the colors consistent with the legend at all times.
提示词保持英文原文——直接粘贴进 Claude、Cursor、v0 或任何 AI 编程工具即可使用。