leeoniya / uPlot

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

make it possible to indicate multiple x and y facets in mode 2 #883

Open leeoniya opened 6 months ago

leeoniya commented 6 months ago

for scale ranging, 2d objects like heatmap cells can have xMin xMax yMin yMax facets that should be used for finding scale range. currently only a single x and y facet is used, leading to clipping of data.

https://github.com/leeoniya/uPlot/blob/38f63de6843d64e703fa23596d9525c15d003ecd/src/uPlot.js#L1323-L1330