You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems your project is skyrocketing, congratulations!
The shadcn-svelte integration is very very clean, and I'm kind of jealous of the new LineChart very simple implementation and also your latest improvement in bundle size.
I think you may have created the best visualization library on the whole internet 馃槼!
I would love to have the same API for candlesticks (e.g. Candlechart, sorry to annoy you again, maybe I'm the only one needing this). I know it's a relatively big feature, so I would like to start smaller.
I tried using the candlestick example and make it work with the current shadcn-svelte charts implementation, but could not manage to make something work sadly 馃ゲ...
Also, I tried highlight using lines instead of points, with axis: "both" on a classic LineChart and does not seem to work (only the dot shows like below). Am I doing something wrong?
I've considered adding more simplified charts, but also in recent versions have pushed to make sure the difference between Chart and LineChart/etc are near-zero, particularly from the big state-refactor in 2.0.0-next.47. The need for them is greatly reduced now that marks are series aware, and state has been fully centralized.
Activity
techniq commentedon Apr 30, 2026
Hey @l0uisgrange 馃憢. Glad you're enjoying LayerChart 馃
I've considered adding more simplified charts, but also in recent versions have pushed to make sure the difference between Chart and LineChart/etc are near-zero, particularly from the big state-refactor in 2.0.0-next.47. The need for them is greatly reduced now that marks are series aware, and state has been fully centralized.
The basic setup for a candlestick chart is:
Ruleinstances with array accessors to draw a line for high/low, and open/closetooltipContext={{ mode: 'quadtree-x' }}for efficient x-axis tooltip detection (can also usebisect-x)c,cDomain,cRange) to easily drive the colors based on open/close deltaIf you can share a project I can checkout, I can see where you might be running into issues.