Releases (220)
layerchart@0.57.0
Minor Changes
- feat(PieChart): Add
placementprop to conveniently position chart left or right (useful with legends). Resolves #271 (7498738)
layerchart@0.56.0
Minor Changes
- feat(PieChart): Support
center={false}to disable default centering, enabling explicit/absolute positioning withprops.group(bb241d5)
layerchart@0.55.0
Minor Changes
-
feat: Add Marker support for Spline, Line, and Link (and components which use these) (#267)
-
feat: Add Marker component for drawing arrowheads or polymarkers on Line, Spline, etc (#267)
-
feat(Brush): Add
labelsprop and slot to enable showing values beside each handle (#265) -
breaking: Use camelCase (
aboveMarks, etc) instead of kebob case (above-marks) slot names to fix Svelte 5{#snippet}compatibility (#269)
Patch Changes
layerchart@0.54.1
Patch Changes
-
docs: Use Svelte 5 (#260)
-
docs: Replace svelte-preprocess with vitePreprocess (#260)
-
fix(Grid): Add
{#each}keys to fix transitions (4b14a2e) -
fix(Rule): Fix reactivity issue with dynamic data not hiding rule when outside x/y range (
cb9cb03) -
fix(BarChart): Only show
0baseline rule based on direction (not both axis) (129163e)
layerchart@0.54.0
Minor Changes
-
feat: New Grid component (improved band scale and radial support) (#252)
-
feat: Simplify overriding marks for AreaChart, BarChart, LineChart, and ScatterChart, useful for gradients and motion (#252)
-
feat(Chart): Expose
tooltipContextandgeoProjectioncontext stores for external access (#252) -
feat(Rule): Add xOffset/yOffset support (#252)
-
feat(Axis): Use
Ruleforruleandgridlines to simplify implementation and support passing full props (#252) -
feat(Labels): Add
valueaccessor prop to override which value to display (different axis, etc) (#252) -
feat(Axis): Support radial tick marks (angle) (#252)
-
feat(BarChart): Support using color (
c) scale to change color based on value (#252) -
breaking(Tooltip.Root): Default xOffset/yOffset to
0unless using 'pointer' mode (only changesdatamode default) (#252)
Patch Changes
-
fix(Legend): Disable whitespace wrapping by default (#252)
-
fix(Tooltip.Root): Align data snapped to band/bar center (instead of edge) (#252)
-
fix: Pass color accessor (
c) and scale (cScale) as slot props for simplified charts (AreaChart, etc) (#252) -
fix(Chart): Fix types when passing readonly string[] color ranges (i.e. d3-scale-chromatic schemes) (#252)
-
fix(Axis): Middle align 12 o'clock (0/360deg) tick label (#252)
-
fix(Axis): Respect
tickLengthwhen positioning tick label/text (#252) -
fix(Simplified charts): Use color scale for Legend when using single (default) series (#252)
-
fix(TransformContext): Only disable touchmove default (i.e. scrolling) when enabled (canvas/manual) and pointer events are not disabled (#252)
-
docs: Copy
Datedata asnew Date(...)to clipboard (#253) -
docs: Stringify example data to clipboard on demand (#253)
-
docs(PieChart): Add examples for using d3-scale-chromatic schemes and interpolators (#252)
layerchart@0.53.0
Minor Changes
- breaking(PieChart): Rename current
labelprop tokeyand add newlabelprop (775102657e8dd54d504e468d61e98603d0fdc5f4)
Patch Changes
-
fix(Brush): Fix pointer padding offset (missing parens) (
b9ed17f5d6eb9ed3adf4494687102615acfcea86) -
fix: Respect series label (if defined) for simplified chart legends (AreaChart, BarChart, ScatterChart) (
e20576536e4510b248fb4d5d6f52c1702bf49311)
layerchart@0.52.1
Patch Changes
- feat: Format
seriesExpandseries layout usingpercentRoundby default (337e68396307319a0b99602a447f5e62f672993d)
layerchart@0.52.0
Minor Changes
-
breaking: Only show
0baseline by default instead of always drawing axis line for simplified charts (LineChart, etc) (#248) -
feat: Add
stackExpandandstackDivergingseries layouts for AreaChart and BarChart (#248) -
feat: Add legend support (prop and slot) to all simplified charts (#248)
-
feat(Rule): Support radial charts (x/angle and y/radius) (#248)
-
feat(Legend): Add
orientationprop (#248) -
feat(Axis): Support passing
classandclasses(root/label) (#248) -
feat(Legend): Add
variantprop withramp(default) andswatches(#248)
Patch Changes
-
fix(BarChart): Fix
groupPaddingnot exposed on $Props (c01a9f597037f9f812c49ceb41c8752438537532) -
fix: Remove use of
SvelteComponentwhich is not compatible with Svelte 5 (#248) -
fix(PieChart): Pass series props to underlying Arcs (#248)
layerchart@0.51.2
Patch Changes
- feat: Support convenient single-axis display using
axis="x"oraxis="y"for all simplified charts (e50889679a48a7581a7b118d7b4408f51537c51f)