layerchart@0.57.0
Minor Changes
- feat(PieChart): Add
placementprop to conveniently position chart left or right (useful with legends). Resolves #271 (7498738)
placement prop to conveniently position chart left or right (useful with legends). Resolves #271 (7498738)center={false} to disable default centering, enabling explicit/absolute positioning with props.group (bb241d5)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 labels prop 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)
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 0 baseline rule based on direction (not both axis) (129163e)
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 tooltipContext and geoProjection context stores for external access (#252)
feat(Rule): Add xOffset/yOffset support (#252)
feat(Axis): Use Rule for rule and grid lines to simplify implementation and support passing full props (#252)
feat(Labels): Add value accessor 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 0 unless using 'pointer' mode (only changes data mode default) (#252)
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 tickLength when 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 Date data as new 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)
label prop to key and add new label prop (775102657e8dd54d504e468d61e98603d0fdc5f4)fix(Brush): Fix pointer padding offset (missing parens) (b9ed17f5d6eb9ed3adf4494687102615acfcea86)
fix: Respect series label (if defined) for simplified chart legends (AreaChart, BarChart, ScatterChart) (e20576536e4510b248fb4d5d6f52c1702bf49311)
seriesExpand series layout using percentRound by default (337e68396307319a0b99602a447f5e62f672993d)breaking: Only show 0 baseline by default instead of always drawing axis line for simplified charts (LineChart, etc) (#248)
feat: Add stackExpand and stackDiverging series 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 orientation prop (#248)
feat(Axis): Support passing class and classes (root/label) (#248)
feat(Legend): Add variant prop with ramp (default) and swatches (#248)
fix(BarChart): Fix groupPadding not exposed on $Props (c01a9f597037f9f812c49ceb41c8752438537532)
fix: Remove use of SvelteComponent which is not compatible with Svelte 5 (#248)
fix(PieChart): Pass series props to underlying Arcs (#248)
axis="x" or axis="y" for all simplified charts (e50889679a48a7581a7b118d7b4408f51537c51f)fix(AreaChart): Fix passing line stroke-width overriding series color (b60cb6f4217d4f180497bab44d6fc2bae529b9a9)
feat(AreaChart): Support passing line props directly (instead of via area.line) (b60cb6f4217d4f180497bab44d6fc2bae529b9a9)