leeoniya/uPlot ? reverse-engineered prompt

Reverse engineered prompt

Build me a tiny, really fast browser charting library for time series data. I want it to feel lightweight and responsive even with very large datasets and live updating data. Use canvas for rendering, keep the bundle small, and focus on charts that people actually need for monitoring and analytics, like line charts, filled areas, bars, and financial style OHLC views.

It should support multiple series, multiple y axes, numeric or time based x axes, zooming with auto rescaling, a legend that shows live values, and a cursor that feels smooth. Please handle missing data cleanly, allow different line styles and path styles, support time zones and daylight saving time correctly, and make it possible to sync the cursor across multiple charts. Live streaming should be a first class use case.

Please keep the API simple but flexible, with hooks or plugin style extension points. Do not spend time on animations or built in data processing. A few runnable demos and basic docs would be great. If needed, look up current browser canvas docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab