layerchart@0.58.4
Patch Changes
- fix(Area): Improve initial tweened transition (matching Spline) (
13c1ce5)
13c1ce5)0 out of visible range and improve custom curve tweening (0b06ee0)tweened transition (ddddb7e)user-select by default for a better mobile experience (6806cc6)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)