LayerChart

Releases (247)

layerchart@2.8.0

layerchart@2.8.0

Minor Changes

  • feat(AnnotationLine|AnnotationPoint|AnnotationRange): Accept a label snippet and a mark snippet (line, circle, rect) to render custom markup (#946)

  • feat(Tooltip): By default place above a finger or pen instead of below, and expose tooltip.pointerType (#927)

Patch Changes

  • fix(Tooltip): Fix tooltip pointer location when pinch-zoomed, or when wider than the chart (#927)

layerchart@2.7.0

layerchart@2.7.0

Minor Changes

  • feat(Axis): Add domain to label the chart's scale in other units, such as a secondary axis (#941)

  • feat(TooltipItem): Add seriesKey to simplify setting the label, color, and value from a series (#941)

Patch Changes

  • fix(Axis): Only drop the last tick of an xInterval / yInterval axis when it falls on the domain's end (#941)

  • fix(Axis): Label scaleUtc() ticks in UTC when no format is given (#941)

  • fix(BarChart): Place a grouped series in its own sub-band when its value is an accessor or a field other than its key (#941)

  • fix(AreaChart|BarChart|LineChart|ScatterChart|PieChart|ArcChart|Layer): Render server-side with ssr instead of overflowing the stack (#940) (#943)

layerchart@2.6.1

layerchart@2.6.1

Patch Changes

  • fix(TransformContext): Don't click what a pan, rotate, or pinch is released over (#936)

  • fix(Chart): Don't ease an isometric view's angles while dragging (#936)

  • fix(Chart): Ease an isometric view added after the chart was created, starting it at its own angles (#936)

layerchart@2.6.0

layerchart@2.6.0

Minor Changes

  • feat(Contour): Stroke unfilled contours in the bands' colors when no stroke is given (#934)

  • feat(Frame|Grid|Axis|Highlight): Draw an isometric chart's back walls, their gridlines (<Grid z>), a height axis (<Axis placement="back">), and highlights at a point's height (#934)

  • feat: Support z heights on an isometric chart — boxes (Rect, Cell, Calendar, Bars with valueAxis="z"), floating Circle, Text, Labels and ArcLabel, Line stems, and extruded Polygon, Path, GeoPath, Contour, Pie, Area and Spline (#934)

  • breaking(Chart|Spline|Area): Rename the z grouping channel to g (ex. <Spline g="id">), freeing z for a third position (#934)

  • feat(TransformContext): Switch mode without remounting the chart (#934)

  • feat(Chart): Support view={isometric} to draw the plot area as a floor seen at an angle, turned with isometric({ rotate, tilt }) or by dragging (transform={{ drag: 'rotate' }}), with viewport text facing the viewer (#934)

  • feat(Ellipse): Support rotate to turn the ellipse about its center (#934)

Patch Changes

  • fix(TransformContext): Zoom in / out about the middle of the plot area, and center a canvas zoom without resetting its scale (#934)

  • fix(GeoPath): Start a tweened map shape as itself rather than rising from a baseline (#934)

  • fix(Axis): Size an angle axis' ticks by its circle rather than the chart's width, so a continuous angle scale's tick count no longer changes with width (square charts get more ticks) (#934)

  • fix(Link): Draw links whose ends share an x or y (#934)

  • fix(BrushContext): Draw and measure the brush through a canvas pan / zoom (#934)

  • fix(TooltipContext): Account for transform.mode: 'canvas' pan / zoom in bisect modes and 'data' tooltip placement (#934)

layerchart@2.5.2

layerchart@2.5.2

Patch Changes

  • fix(ArcChart|AreaChart|BarChart|LineChart|PieChart|ScatterChart): Support bind:ref, and bind:context on the .svg / .canvas variants (#930) (#931)

layerchart@2.5.1

layerchart@2.5.1

Patch Changes

  • fix(Tooltip): Keep a flipped tooltip inside the container (or window) when flipping overflows the other edge (ex. a start-aligned tooltip wider than half a narrow chart opened past its left edge) (#924)

  • fix(TooltipContext): Keep a tooltip locked from onclick on touch (a tap's pointerleave precedes click, and its pending hide cleared the data under the lock), and hide it once unlocked if the pointer left while locked (#924)

layerchart@2.5.0

layerchart@2.5.0

Minor Changes

  • feat(Group|Hull|Rule): Support seriesKey prop to fade the mark while another series is highlighted and remove it while the legend has that series hidden (#917)

layerchart@2.4.1

layerchart@2.4.1

Patch Changes

  • fix(deps): Bump @layerstack/* dependencies to fix Package subpath is not defined by exports when bundling without Vite (issue #913) (#915)

  • fix(Spline): Render startContent, endContent, markerStart, and markerEnd once per line rather than once per style-split segment (#914)

  • fix(Spline): Keep the line's color on segments split by a class, opacity, or fill function (#914)

  • fix(Spline): Animate segments split by a style function, which motion previously skipped (#914)

layerchart@2.4.0

layerchart@2.4.0

Minor Changes

  • feat(Axis): Add tickOcclusion to drop ticks whose labels would overlap, measured at the size they render (including rotation), with priority of 'end' (default), 'start', or 'start-end' to choose which survive (#909)

  • feat(utils): Add rotate and multiline support to getTextRect, so a rotated or stacked <Text> can be measured for occlude without the caller reproducing <Text>'s pivot (#909)

Patch Changes

  • fix(Area): Apply mask, filter, and clip-path to the line path as well as the fill (unless overrideden by line={{...}}) (#909)

  • fix(Calendar): Adjust month labels after recent Text verticalAnchor improvements (#909)

  • fix(Calendar): Size cells to fit monthPath, which can extend past the last cell when the range ends mid-month (#909)

  • perf(Chart): Measure the container before building the subtree, so marks are only built once (#909)

  • fix(downloadImage, downloadSvg): Inline stop-color/stop-opacity so gradients don't export as solid black (#909)

  • fix(Chart): Return undefined from xGet/yGet when that axis has no accessor, instead of throwing accessor is not a function (#909)

  • fix(Spline, Area): Animate each path when the mark is split by z, which motion previously skipped — segments split by a style function are still redrawn outright (#909)

  • fix(Path, Spline): Render endContent without a draw transition (#909)

layerchart@2.3.1

layerchart@2.3.1

Patch Changes

  • perf(Chart): Resolve a plain-key accessor (x="date") directly instead of re-parsing the path string (#906)

  • fix(Chart): Treat an explicit but empty series array as authoritative, rather than deriving implicit series from marks (#906)

  • perf(Chart): Keep the value domain off the mark registry, so mounting a chart no longer rebuilds its scales — and every path drawn from them — once per mark registered (#906)

  • fix(Highlight): Fix crash highlighting c-grouped points over nested chart data (#906)

  • fix(Highlight): Mark only the hovered row in quadtree / voronoi tooltips, rather than every row sharing its position (#906)

  • feat(Chart): Take the color channel from a mark's own fill / stroke (<Circle fill="island">) when no c is declared (#906)

  • fix(Tooltip): Center on internal when data snapping (instead of on its leading edge) (#906)

  • fix(Tooltip): Fix persistent tooltip when rendered outside Chart container and pointerEvents is enabled (#906)

Previous
Page 1 of 25
Next