layerchart@0.51.2
Patch Changes
- feat: Support convenient single-axis display using
axis="x"oraxis="y"for all simplified charts (e50889679a48a7581a7b118d7b4408f51537c51f)
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)
TransformControls from top-level exports after demotion of Svelte UX to devDependencies (b60356d59bd4e21593a73625182304e481b648f4)fix(ChartContext): Incorrect createScale import path (fcf4262ef153b11622da72e4ef3d5c2a29e743ea)
fix: Use unique() from @layerstack/utils instead of svelte-ux (b64e078fc83a75076facd7c14b5c35acf30e9ab5)
fix: Use typeGuards from @layerstack/utils instead of svelte-ux (1e7778f8496d61a44bdf6ef018eb016047159e42)
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 center to conveniently center children, useful for radial layouts without requiring Group wrapper (#224)
refactor: Add @layerstack/svelte-actions, @layerstack/svelte-stores, @layerstack/tailwind, and @layerstack/utils packages and move svelte-ux package to devDependancies (components only for docs) (#224)
breaking: Add new color cScale (and related c accessor, domain, range, etc) and replace rScale usage (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's true) to simplify bandScale use cases (#224)
breaking: Remove AreaStack as use cases fully supported by Area (#224)
breaking(Pie): Remove placement prop and instead rely Svg center or use Group for positioning (#224)
breaking(Threshold): Simplify implementation and rename pathAbove/pathBelow slots to above/below (#224)
breaking(Bar/Bars): Replace groupBy/groupPadding with Chart-level x1/y1 derived scales (#224)
breaking: Rename createStackData() to groupStackData(), refine returned structure to simplify tooltips and make consistent with different options combinations, and add tests (#224)
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 color prop to add swatch, support theme colors and any color via color="variable" (#224)
feat(Arc): Support passing tooltip and data props to simplify setting up tooltip pointer events (#224)
feat(Points): Integrate with rScale (#224)
feat(Bars): Support passing data override (#224)
feat(Chart): Expose config as 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 xValue and yValue to each point, and improve types (#224)
feat(Highlight): Support radial coordiantes for points and lines. Issue #112 (#224)
feat(Labels): Support center placement (useful with Points) (#224)
feat(Points): Add canvas support (#224)
feat(Chart): Expose x/y/z/r accessors 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 pointerevent instead of forwarding to fix console errors (#224)
fix(Points): Remove incorrect points for null/undefined values (#224)
fix(Area): Pass x override to internal Spline (#224)
fix(Spline): Enable passing fill prop (useful for Bar with single rounded edge) (#224)
fix(cartesianToPolar): Correctly calculate angle/radians between 0 and 2π (#224)
{ width: number, height: number}) event to Chart and ChartContext (#231)Update dependencies. Remove node 18.x from CI workflows (84a98153cdf28f78db23ad42a3f6cf3e3a54010c)
[Highlight] Fix usage with Histogram (67fbd8ded184549ffd202bb9f07869a40e85679f)
Update dependencies (b380b3603277e6cb9e9e29921e862a8e88549c2d)
[Area] Support string accessors overrides for x, y0, and y0 (b7e5fb2ee583649eea26ce1f956460a42b6ada33)
[Threshold] Support string accessors overrides for x, y0, and y0 (b7e5fb2ee583649eea26ce1f956460a42b6ada33)
[Spline] Support scaleBand() by shifting 1/2 bandwidth (f67967af27378bdcd5afd5a32b47d8c8c898f508)
[Area] Support scaleBand() by shifting 1/2 bandwidth (f67967af27378bdcd5afd5a32b47d8c8c898f508)
[Spline] Support string accessors overrides for x and y`` ([b7e5fb2ee583649eea26ce1f956460a42b6ada33`](https://github.com/techniq/layerchart/commit/b7e5fb2ee583649eea26ce1f956460a42b6ada33))
scaleBandInvert() padding handling, which improves tooltip: { mode: bisect-x } when using band scales (bar charts) (837becc499c7ef77c1de719b7a7aec5c88cd5844)[Highlight] Fix coloring points with primary color by default (cad5382e69e8ecb782f2935c2babcac70387be05)
[Chart] Relax DomainType typing to be more forgiving (1ab9d85f61053e714e734ea1df6bf98333255acd)
x and y accessor overrides (useful with area series via overrides). (377c544bed4372aff1f99e49c4aae42ca2e7e0ba)