Releases: techniq/layerchart
[email protected]
Patch Changes
- Add pivotLonger() and pivotWider() to top-level exports. Add
layerchart/utils
export for additional utils (be4cfe219d61c5687e2a896ab43970f7ad6009d2
)
[email protected]
Minor Changes
- [Area/AreaStack/Spline] Simplify overwriting x/y accessors by applying xScale/yScale within components (#115)
Patch Changes
-
[AreaStack] Support passing slot for custom (enabling modifications in including fill) (#116)
-
Add Voronoi as separate component (
1aeaf0c20f80511209252de560ef0be867e129d7
)
[email protected]
[email protected]
Patch Changes
- Update dependencies (
0a2a08d9360802fda3cffbd193a59299aae52f33
)
[email protected]
[email protected]
LayerChart
0.27.0
Minor Changes
- [TooltipContext] Replace
on:click
event handler withonClick
prop (easier to consume when using<Chart tooltip={{ onClick(e) => { ... } }} />
) (ee80654
)
0.26.2
Patch Changes
- Use Symbol() instead of empty object for context keys (
c676611
)
0.26.1
Patch Changes
-
Expose
geoContext
as top-level export (8bef371
) -
[Tooltip] Fix xOffset usage after recent refactor (
cd9d8b7
)
0.26.0
Minor Changes
-
[Tooltip] Position improvements including
anchor
support (#72)Breaking Changes
Replace TooltipContext's
snapToDataX/Y
with<Tooltip x="data" y="data" />
Before:
<Chart tooltip={{ snapToDataX: true, snapToDataY: true }}> <Tooltip> ... </Tooltip> </Chart>
After:
<Chart tooltip> <Tooltip x="data" y="data"> ... </Tooltip> </Chart>
Rename
<Tooltip left={...} top={...} />
to<Tooltip x={...} y={...} />
Before:
<Chart tooltip> <Tooltip left={0} top={0}> ... </Tooltip> </Chart>
After:
<Chart tooltip> <Tooltip x={0} left={0}> ... </Tooltip> </Chart>
Additional
- Rename tooltipContext's
top
/left
tox
/y
- Add
anchor
prop to align based on corner/edge/center (9 points) of tooltip instead of always top-left corner. - Add more tooltip examples
- Rename tooltipContext's
-
[Labels] Remove old
formatStyle
prop since Svelte UXformat
now covers all use cases (06d9bde
) -
Setup as monorepo using pnpm workspace (#69)
Patch Changes
-
Expose
data
andflatData
as Chart slot props (97e812d
) -
[Bars] Change named
bars
slot to default. Update group/stacked transition examples to use directly and set {#each} key (7fd24a5
) -
Update dependencies (#73)
0.25.1
Patch Changes
-
[Text] Fix display of
0
value when number (and not string) (c1e20dc
) -
[Axis] Do not replace all default classes when setting labelsProps={{ class: '...' }} (
fc9e281
)
0.25.0
Minor Changes
- [Bar / Bars] Rename
padding
toinset
(006daae
)
Patch Changes
-
[TooltipContext] Fix bisect-y padding adjustment (
5f078cf
) -
Add Candlestick example (
665ebef
) -
Update dependencies (
ca79b59
) -
[Bars] Remove no longer used
getProps
andgetKey
(can now useBar
component and slot) (5a57e63
)
0.24.4
Patch Changes
-
[TooltipContext] Fix bisect-x/bisect-y pointer handling with chart left/top padding (
d69295a0
) -
[Tooltip] Add
variant
support with 'light', 'dark', and 'none' (c464874
)
0.24.3
Patch Changes
-
[Spline] Fix
draw
transition when using Svelte 4 (22e5a82
) -
Update Layer Chart to 8.0.2 (fix sorted ordinal regression)
-
[Preview] Add "View data" button/dialog (
f91b006
)
0.24.2
Patch Changes
- Update svelte-ux to latest (with new top-level sort utils) (
e3e3ba1
)
0.24.1
Patch Changes
- Update dependencies (
2079955
)
0.24.0
Minor Changes
- [LinearGradient] Replace
from
/to
withstops
prop, which both simplifies tailwind color usage, and simplifies more complex cases (gradient encoding). Also support passing tuple values for explicit offsets (gradient threshold) (97098fd
)
Patch Changes
-
[Calendar] Add month labels (
68e4694
) -
Added Sparkline examples (#44)
-
[Tooltip] Support passing explicit
top
and/orleft
for fixed position (4681c7f
) -
[Legend] Support passing
class
without overriding built-in classes (cbc0249
) -
Add highlight on hover examples for multi-series Area and Line (
b9e4722
) -
[Line] Add "gradient encoding" and "gradient threshold" examples (
b171e8e
)
0.23.0
Minor Changes
- Update major dependencies, including
svelte
to 4.x. Change svelte topeerDependency
(ff4b907
)
Patch Changes
-
Add
url
slot prop to LinearGradient, Blur, and ClipPaths to simplify usage (fa805e0
) -
Add Arc color wheel example (
4b0285e
) -
Add Calendar component (
8ba2b5f
)
0.22.2
Patch Changes
0.22.1
Patch Changes
-
[Line] Fix initializing
y1
with wrong value (3f6a661
) -
[Highlight] Support setting classes on points/lines/area without overriding all default class (
77e6808
)
0.22.0
Minor Changes
-
Add
initial*
values to all primative components' (Arc, Rect, Group, Line, Rect) tweened properties (x, y, width, height, value, etc) which enables initial mount transitions (see added examples). (6f8cfb0
) -
Remove
ConnectedPoints
component and replace withlinks
prop on<Points>
(f514bb6
) -
Highlight overhaul (
d9dd4bf
)- Consolidate HighlightLine and HighlightRect
- Support enabling
points
,lines
, andarea
individually - Support passing props to underlying Line, Circle, and Rect
- Support overriding with slots
- Remove
color
prop
Patch Changes
-
[motionStore] Fix resolving per-property options (do not enable tweened height with default options if only height is enabled) (
b930ef7
) -
[LinearGradient] Generate
id
by default and change default slot to render contexts withid
passed (like ClipPath) (476f03a
) -
[HighlightRect] Fix usage with scaleBand yScale's without breaking histogram usage (
53a1fff
) -
[LinearGradient] Add
units
prop to support defining coordinate system for attributes (5e58b98
)
0.21.1
Patch Changes
- Fix TooltipContext
mode="bounds"
with array of points (ex. duration) (80f3e56
)
0.21.0
Minor Changes
- Remove color prop from
Bars
,Points
,Pie
, andLink
. UserScale
orfill
,stroke
, orclass
prop to define (13b7688
)
0.20.2
Patch Cha...
[email protected]
Minor Changes
- [TooltipContext] Replace
on:click
event handler withonClick
prop (easier to consume when using<Chart tooltip={{ onClick(e) => { ... } }} />
) (ee80654
)
[email protected]
Patch Changes
- Use Symbol() instead of empty object for context keys (
c676611
)