Releases: techniq/layerchart
layerchart@0.52.1
Patch Changes
- feat: Format
seriesExpand
series layout usingpercentRound
by default (337e68396307319a0b99602a447f5e62f672993d
)
layerchart@0.52.0
Minor Changes
-
breaking: Only show
0
baseline by default instead of always drawing axis line for simplified charts (LineChart, etc) (#248) -
feat: Add
stackExpand
andstackDiverging
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
andclasses
(root/label) (#248) -
feat(Legend): Add
variant
prop withramp
(default) andswatches
(#248)
Patch Changes
-
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)
layerchart@0.51.2
Patch Changes
- feat: Support convenient single-axis display using
axis="x"
oraxis="y"
for all simplified charts (e50889679a48a7581a7b118d7b4408f51537c51f
)
layerchart@0.51.1
Patch Changes
-
fix(AreaChart): Fix passing line stroke-width overriding series color (
b60cb6f4217d4f180497bab44d6fc2bae529b9a9
) -
feat(AreaChart): Support passing
line
props directly (instead of viaarea.line
) (b60cb6f4217d4f180497bab44d6fc2bae529b9a9
)
layerchart@0.51.0
Minor Changes
- breaking: Remove
TransformControls
from top-level exports after demotion of Svelte UX todevDependencies
(b60356d59bd4e21593a73625182304e481b648f4
)
Patch Changes
-
fix(ChartContext): Incorrect createScale import path (
fcf4262ef153b11622da72e4ef3d5c2a29e743ea
) -
fix: Use
unique()
from@layerstack/utils
instead ofsvelte-ux
(b64e078fc83a75076facd7c14b5c35acf30e9ab5
) -
fix: Use typeGuards from
@layerstack/utils
instead ofsvelte-ux
(1e7778f8496d61a44bdf6ef018eb016047159e42
)
layerchart@0.50.0
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
center
to conveniently center children, useful for radial layouts without requiringGroup
wrapper (#224) -
refactor: Add
@layerstack/svelte-actions
,@layerstack/svelte-stores
,@layerstack/tailwind
, and@layerstack/utils
packages and movesvelte-ux
package todevDependancies
(components only for docs) (#224) -
breaking: Add new color
cScale
(and relatedc
accessor, domain, range, etc) and replacerScale
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'strue
) to simplify bandScale use cases (#224) -
breaking: Remove
AreaStack
as use cases fully supported byArea
(#224) -
breaking(Pie): Remove
placement
prop and instead rely Svgcenter
or useGroup
for positioning (#224) -
breaking(Threshold): Simplify implementation and rename
pathAbove
/pathBelow
slots 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
color
prop to add swatch, support theme colors and any color viacolor="variable"
(#224) -
feat(Arc): Support passing
tooltip
anddata
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
andyValue
to each point, and improve types (#224) -
feat(Highlight): Support radial coordiantes for
points
andlines
. 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)
layerchart@0.44.0
Minor Changes
- Add 'on:resize' (
{ width: number, height: number}
) event toChart
andChartContext
(#231)
layerchart@0.43.8
Patch Changes
-
Update dependencies. Remove node 18.x from CI workflows (
84a98153cdf28f78db23ad42a3f6cf3e3a54010c
) -
[Highlight] Fix usage with Histogram (
67fbd8ded184549ffd202bb9f07869a40e85679f
)
layerchart@0.43.7
Patch Changes
-
Update dependencies (
b380b3603277e6cb9e9e29921e862a8e88549c2d
) -
[Area] Support string accessors overrides for
x
,y0
, andy0
(b7e5fb2ee583649eea26ce1f956460a42b6ada33
) -
[Threshold] Support string accessors overrides for
x
,y0
, andy0
(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
andy`` ([
b7e5fb2`](b7e5fb2))
layerchart@0.43.6
Patch Changes
- Improve
scaleBandInvert()
padding handling, which improvestooltip: { mode: bisect-x }
when using band scales (bar charts) (837becc499c7ef77c1de719b7a7aec5c88cd5844
)