Minor Changes
-
feat: Add simplified charts to streamline creating common chart types with recommended conventions and granular extensibility (AreaChart, BarChart, LineChart, PieChart, and ScatterChart) (#224)
-
feat(Svg): Add
centerto conveniently center children, useful for radial layouts without requiringGroupwrapper (#224) -
refactor: Add
@layerstack/svelte-actions,@layerstack/svelte-stores,@layerstack/tailwind, and@layerstack/utilspackages and movesvelte-uxpackage todevDependancies(components only for docs) (#224) -
breaking: Add new color
cScale(and relatedcaccessor, domain, range, etc) and replacerScaleusage (which should be used for radius, etc) (#224) -
breaking(Tooltip): Rename Tooltip to Tooltip.Root (#224)
-
breaking(Tooltip): Consolidate Tooltip components (TooltipItem, TooltipSeparator, etc) to Tooltip.Item, Tooltip.Separtor, etc (#224)
-
breaking(Tooltip): Remove default grid on Tooltip.Root and add Tooltip.List as Tooltip.Item container (#224)
-
breaking: Remove
<Tooltip.Root header={...}>and replace with<Tooltip.Header>(#224) -
breaking(Chart): Default domain sorting to
false(instead of LayerCake'strue) to simplify bandScale use cases (#224) -
breaking: Remove
AreaStackas use cases fully supported byArea(#224) -
breaking(Pie): Remove
placementprop and instead rely Svgcenteror useGroupfor positioning (#224) -
breaking(Threshold): Simplify implementation and rename
pathAbove/pathBelowslots toabove/below(#224) -
breaking(Bar/Bars): Replace groupBy/groupPadding with Chart-level x1/y1 derived scales (#224)
-
breaking: Rename
createStackData()togroupStackData(), refine returned structure to simplify tooltips and make consistent with different options combinations, and add tests (#224)
Patch Changes
-
feat(Chart): Support x1/y1 derived scales, useful for grouped bar charts (#224)
-
feat(tooltip): Update bisect-x mode to support radial coordinates (#224)
-
feat(Tooltip.Item): Support
colorprop to add swatch, support theme colors and any color viacolor="variable"(#224) -
feat(Arc): Support passing
tooltipanddataprops to simplify setting up tooltip pointer events (#224) -
feat(Points): Integrate with rScale (#224)
-
feat(Bars): Support passing
dataoverride (#224) -
feat(Chart): Expose
configas slot prop (#224) -
feat(Bar): Forward pointer events to enable individual bar tooltips (#224)
-
feat(Voronoi): Support radial coordinates. Issue #112 (#224)
-
feat(Points): Add
xValueandyValueto each point, and improve types (#224) -
feat(Highlight): Support radial coordiantes for
pointsandlines. Issue #112 (#224) -
feat(Labels): Support
centerplacement (useful with Points) (#224) -
feat(Points): Add canvas support (#224)
-
feat(Chart): Expose
x/y/z/raccessors via slot props (#224) -
fix(Highlight): Handle non-zero y values when drawing lines (ex. radial line chart with inner radius) (#224)
-
fix(Labels): Handle multiple x or y properties (stack, diverting) by leveraging Points component internally (#224)
-
fix(Spline): Handle null data via defined by default (#224)
-
fix(TooltipSeparator): Use theme color (#224)
-
fix(Area): Handle null data via defined by default (#224)
-
fix(Highlight): Handle null value points (#224)
-
fix(Voronoi): Dispatch custom
pointereventinstead of forwarding to fix console errors (#224) -
fix(Points): Remove incorrect points for null/undefined values (#224)
-
fix(Area): Pass
xoverride to internal Spline (#224) -
fix(Spline): Enable passing
fillprop (useful for Bar with single rounded edge) (#224) -
fix(cartesianToPolar): Correctly calculate angle/radians between 0 and 2π (#224)