leeoniya / uPlot

📈 A small, fast chart for time series, lines, areas, ohlc & bars
MIT License
8.48k stars 370 forks source link

how do set bar with in uplot #943

Open quanghvit opened 2 weeks ago

quanghvit commented 2 weeks ago

I have a bar chart. Now i need fix with for each bar in my chart. How do set it? @leeoniya

zefirka commented 1 week ago

You can use uPlot.paths.bars as path builder and pass following options.

Example: https://codesandbox.io/p/sandbox/test-uplot-forked-xkr977