layerchart@2.9.1
Patch Changes
- fix(Chart): Facet a series' own
dataso each panel shows only its rows (#964)
data so each panel shows only its rows (#964)feat(Bin): Add Bin mark grouping points into hexagon, square, or triangle cells (#953)
feat(GeoBin): Add GeoBin mark grouping points into hexagon, square, or triangle cells tiling the sphere (#953)
feat(Image): Add z to raise images off an isometric floor (#953)
feat(Chart): Add backToFront(items, at) to the chart context, ordering items for drawing on an isometric floor (#953)
feat: Add z to Ellipse, Points, Group, and AnnotationPoint, z1 / z2 to Link, and z to Circle in pixel mode, to raise them off an isometric floor (#953)
feat(Layer): Clip SVG and HTML layers by default when the chart has a transform, as panning and zooming carry content past its edges (#953)
fix(Image): Share loaded images across canvas Images, so one remounted or given a loaded URL draws it at once instead of flickering (#953)
fix(Rect): Shade isometric box sides by how far they turn, rather than snapping between two shades (#953)
fix(Chart): Measure xPadding / yPadding on an isometric chart against the floor laid flat, so padding stays the same share of the floor as the view turns (#953)
fix(Legend): Label a threshold scale's ramp with its thresholds, and give its swatches one per color labelled with the range it covers (#953)
fix(Chart): Start a projection transform where the projection's rotate, scale, translate, or fit place it, rather than jumping once the transform loads, and keep a globe's roll while dragging (#953)
shift + scroll zoom when the browser reports it as horizontal (deltaX) (#948)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)
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)
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)
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)
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)
bind:ref, and bind:context on the .svg / .canvas variants (#930) (#931)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)
seriesKey prop to fade the mark while another series is highlighted and remove it while the legend has that series hidden (#917)