Skip to content

Releases: airbnb/visx

v1.6.0

18 Feb 22:22
Compare
Choose a tag to compare

πŸš€ Enhancements

  • [xychart] add x/y0Accessor functions to support AreaSeries bands #1071

πŸ› Bug Fix

  • [xychart] make AnnotationLabel's make dataKey optional #1072
  • [annotation] account for fontFamily in Label styles so Text uses it in its size calculations #1072

v1.5.0

12 Feb 23:55
Compare
Choose a tag to compare

πŸš€ Enhancements

  • [grid] add GridPolar, GridAngle, and GridRadial #1007
  • [mock-data] add stable randomness #1033
  • [xychart] add AreaStack #1019 closes #994
  • [visx/visx] export @visx/xychart package #1043 closes #974
  • [axis] pass all tick values in tickLabelProps signature #1044

πŸ› Bug Fix

  • [xychart] improve Tooltip positioning with missing data #1068 closes #1054
  • [xychart] make Tooltip postion robust to container changes #1045 closes #983
  • [xychart] fix scales for BarStack offset #1019
  • [xychart] add SVGPathElement props to BaseAreaSeries lineProps #1046

πŸ“ Documentation

  • sync code of conduct with Airbnb #1013
  • [demo/*] respect prefersReducedMotion #1037
  • [demo/barstack] improve Tooltip positining logic #1018 closes #1018
  • [demo/xychart] add AreaStack, stackOffset control #1020
  • [in the wild] add eft.monster #1010

🏠 Internal

  • [testing] add happo for screenshot testing #1030
  • [xychart/areastack] add tests #1036
  • [CI] add package size checks + auto gallery deploy #1048

v1.4.0

11 Jan 20:50
Compare
Choose a tag to compare

πŸš€ Enhancements

  • [xychart] make event in EventHandlerParams optional #972
  • [xychart] add colorAccessor to relevant series #1005, closes #996
  • [xychart] include zero in scale domains by default #1008

πŸ› Bug Fix

  • [xychart] fix scale options not applied in XYChart #987, closes #986
  • [xychart] expose more AnnotationLineSubject types, fix strokeWidth application #991
  • [annotation] fix application of object type Label props.backgroundPadding, add default anchorLineStroke #989
  • [stats] fix handling of 0 in BoxPlot valueScale #993
  • [xychart] enable style overflow in crosshairs #997

πŸ“ Documentation

  • [xychart] add advanced usage sandbox examples #972
  • [xychart] fix missing #972
  • [annotation] add docs for Label #989

v1.3.0

15 Dec 02:05
Compare
Choose a tag to compare

πŸš€ Enhancements

  • [responsive] Add ParentSizeModern, withParentSizeModern that don't add ResizeObserver polyfill #925
  • [scale] add scaleRadial #958
  • [text] add useText hook, refactor Text to use it #946
  • [event] support FocusEvents in localPoint #956
  • [xychart] release package #965
  • [xychart] add PointerEvent handlers to XYChart, all Series #947
  • [xychart] add support for FocusEvents #959
  • [xychart] integrate Annotations #938

πŸ› Bug Fix

  • [shape] set y0 when it equals zero #955

πŸ“ Documentation

  • [xychart] add README and /docs/xychart to demo site #963
  • [demo] fix view demo hover pointer style #929
  • [tooltip] fix offsetTop documentation #970

🏠 Internal

  • [xychart] add FocusEvent tests #962
  • [xychart] add PointerEvent tests #952
  • [xychart] add Annotations tests #948

v1.2.0

25 Nov 05:13
Compare
Choose a tag to compare

πŸš€ Enhancements

  • [brush] expose updateBrush method via innerRef #934, closes #577
  • [annotation] add new Annotation components (Annotation, EditableAnnotation, Label, CircleSubject, LineSubject) #907
  • [drag] add useDrag hook #902
  • [drag] allow x,y,dx,dy overrides in useDrag + Drag #906, closes #905
  • [annotation] add canEditSubject, canEditLabel to EditableAnnotation #919
  • [xychart (unpublished)] make DataProvider optional #913
  • [xychart (unpublished)] expose curve types in BaseAreaSeries, BaseLineSeries #899
  • [xychart (unpublished)] handle rendering + tweening missing values #898
  • [xychart (unpublished)] add (Animated)GlyphSeries #885
  • [xychart (unpublished)] add AreaSeries + AnimatedAreaSeries #878
  • [xychart (unpublished)] add AnimatedLineSeries #874
  • [xychart (unpublished)] add Animated(BarSeries, BarStack, BarGroup) #873

πŸ› Bug Fix

  • [shape] conditionally render Arc without data #937

πŸ“ Documentation

  • [demo/annotation] add annotation demo #909
  • [demo] visx rebrand, move to github pages #890, fixes #850 #861
  • [in the wild] add tokenizedbtc #931

🏠 Internal

  • [deps] next@9.5.4 #915, #916
  • [ci] remove .travis.yml #891
  • [xychart (unpublished)] add Annotation tests #912
  • [xychart (unpublished)] add missing data tests #900

v1.1.0

17 Oct 00:40
Compare
Choose a tag to compare

v1.1.0

πŸš€ Enhancements

  • [scale] bump @types/d3-scale to ^3.1.0 #856 closes #855
  • [shape] set Line shapeRendering to crispEdges if rectilinear #840
  • [network] apply fill & radius to DefaultNode #859
  • [tooltip] add applyPositionStyle prop so users don't have to set absolute positioning when unstyled=true #857
  • [responsive] add initialWidth and initialHeight to withParentSize #836 closes #554
  • [responsive] add ignoreDimensions prop to optimize re-renders #834 closes #247
  • [xychart (unpublished)] add BarSeries #808
  • [xychart (unpublished)] add BarGroup #870 #871
  • [xychart (unpublished)] add BarStack #865 #866
  • [xychart (unpublished)] add EventEmitterContext, TooltipContext #825
  • [xychart (unpublished)] add Tooltip #852

πŸ› Bug Fix

  • [tooltip] fix TooltipWithBounds overlowing its parent on small screens #837 closes #466
  • [tooltip] fix TooltipWithBounds positioning when unstyled=true #828
  • [stats] don't throw when first and third quartile are equal #841 closes #427
  • [stats] update min/max to handle no outliers case #853 closes #851
  • [text] render 0 as number #814 fixes #813
  • [shape] render LinkHorizontalStep horizontally not vertically #847 closes #820
  • [axis] fix tickLabelProps when hideZero=true #818 fixes #815
  • [demo/areas] handle non-zero margins #877

🏠 Internal

  • [responsive] refactor ParentSize to function component #834
  • [text] improve test coverage #833
  • [pattern] remove code duplication #838

πŸ“ Documentation

  • [in the wild] add Wall Street Journal: Americans Familiarize Themselves with the Word β€˜Forbearance’ #843
  • [in the wild] add dollar-to-food-emoji #860
  • [in the wild] remove deadlinks, add Taiwan Real-time Air Quality Index #867
  • [project readme] fix typos #826

v1.0.0

22 Sep 04:03
Compare
Choose a tag to compare

v1.0.0

🏠 Internal

  • project renamed from vx => visx, migrated from hshoff/vx => airbnb/visx #802, #803

πŸ“ Documentation

πŸ’₯ Breaking Changes

  • [all packages] vx-... classNames are renamed to visx-... #803
  • [demo] existing codesandbox links which reference vx-demo directory structure will break #803
  • [tooltip] className="vx-tooltip-portal" => visx-tooltip (so as not to be confused with the new TooltipInPortal) #803

πŸ› Bug Fix

  • [demo] fix /axis codesandbox dependency #799

v0.0.199

09 Sep 19:58
b7fd57c
Compare
Choose a tag to compare

πŸ’₯ Breaking Changes

  • [scale] Deprecate rangeRound field in the input of scaleLinear(), scaleLog(), scalePoint(), scalePower(), scaleSqrt(), scaleTime() and scaleUtc(). #766
    Instead of
    scaleLinear({ rangeRound: xxx })
    Do this instead
    scaleLinear({ range: xxx, round: true });
  • [scale] Deprecate ticks and tickFormat in the input of scaleQuantize(). It was not really doing anything anyway as both scale.ticks() and scale.tickFormat() do not mutate the scale. #766
  • [scale] Remove scale.type field that was attached to the d3 scales. #766
  • [grid] @vx/grid components now accept D3 Scale as generic type instead of ScaleInput. Developers should not expect to specify this generic type as it can be inferred from the passed scale. #775
  • [grid] Renames GridColumnProps => GridColumnsProps (+s) to match GridRowsProps. #787
  • [legend] Update generic types for legend components. #777
  • [marker] remove old <Marker /> implementation of a Line and some Text. #783

πŸš€ Enhancements

  • [scale] new functions & New fields for the scale configs. #766
  • [scale] add meta scale types. #770
  • [scale] Add fallback overload for createScale. #791
  • [scale] add new types: AnyD3Scale, InferD3ScaleOutput, InferD3ScaleDiscreteInput, InferD3ScaleThresholdInput and ScaleInput. Add new utilities functions: getTicks, coerceNumber and toString. #773
  • [scale] add reverse field to scale config. This will reverse the range. Useful when the ranges are programmatically supplied to the scale factories such as in XYChart and developers want easy way to reverse the dynamic range. #780
  • [legend] exports @vx/legend shapes from the index for convenience / non-deep imports. #772
  • [grid] adds children prop to GridRows + GridColumns to support animated rendering. #787
  • [shape] add <BarRounded /> shape. #774
  • [shape] Create new factory functions for d3-shape and export as part of vx/shape (arc, area, line, pie, radialLine),
    similar to vx/scale has factories for d3-scale. #776
  • [shape] add SplitLinePath component to @vx/shape that allows you to create a line path split into multiple smaller line paths that can be styled independently. #778
  • [axis] consistent and compatible typings across vx/scale and vx/axis. More fields passed to child render props of Axis. #773
  • [axis] Axis is refactored to accept a ticksComponent which allows us to animate them. #779
  • [axis] adds a third argument values to tickFormat(value, index, values) so that format logic can more easily leverage all ticks (because numTicks is approximate, lib consumers do not know how many tick values exist a priori). #779
  • [marker] add new <Marker /> that matches actual SVG <marker>. #783
  • [marker] add <MarkerArrow />, <MarkerCross />, <MarkerX />, <MarkerCircle />, <MarkerLine />. #783
  • [react-spring] adds a new package @vx/react-spring that includes react-spring as a peerDep and can be a home for things that depend on react-spring. #779
  • [react-spring] Adds an <AnimatedAxis /> and <AnimatedTicksRender /> in @vx/react-spring. #779
  • [react-spring] updates the vx-demo/axis demo to use <AnimatedAxis />. #779
  • [react-spring] adds AnimatedGridRows + AnimatedGridColumns. #787
  • [react-spring] modularizes AnimatedTicks/useAnimatedTicksConfig to spring-configs/useAnimatedLineTransitionConfig so it can power both animated tick + grid lines. #787
  • [react-spring] adds animationTrajectory=outside | inside | min | max to AnimatedAxis and AnimatedGridRows/Columns. #787

πŸ› Bug Fix

  • [responsive] exclude enableDebounceLeadingCall prop being passed into div. #763
  • [responsive] fix prettier format. #764
  • [text] fix warning for NaN or invalid values are passed as x or y. #790

πŸ“ Documentation

  • [scale] Improve documentation of the fields in scale configs. #766

🏠 Internal

  • [scale] rewrite individual scale factory with composition of shared operators. This ensure order of operators and simplified code. #766
  • [scale] add 100+ unit tests to make this vx/scale package has 100% test coverage. #766
  • [stats] use updated @vx/scale types. #770
  • [legend] extract defaultDomain helper. #777
  • [demo] updated curves demo to use new <Marker>. #783
  • [demo] updates the /axis demo to include AnimatedGrid* and a animationTrajectory config. #787
  • [jest] ignore vx-demo, vx-vx code coverage. #784
  • [annotation] 100% coverage. #784
  • [bounds] 100% coverage. #784
  • [brush] add utils test. #786
  • [event] add tests. #786
  • [test] add tests for vx/grid, vx/zoom, vx/threshold, vx/shape. #793

πŸ† Contributors

 - @vx/annotation: 0.0.198 => 0.0.199
 - @vx/axis: 0.0.198 => 0.0.199
 - @vx/bounds: 0.0.198 => 0.0.199
 - @vx/brush: 0.0.198 => 0.0.199
 - @vx/chord: 0.0.198 => 0.0.199
 - @vx/clip-path: 0.0.198 => 0.0.199
 - @vx/curve: 0.0.198 => 0.0.199
 - @vx/demo: 0.0.198 => 0.0.199
 - @vx/drag: 0.0.198 => 0.0.199
 - @vx/event: 0.0.198 => 0.0.199
 - @vx/geo: 0.0.198 => 0.0.199
 - @vx/glyph: 0.0.198 => 0.0.199
 - @vx/gradient: 0.0.198 => 0.0.199
 - @vx/grid: 0.0.198 => 0.0.199
 - @vx/group: 0.0.198 => 0.0.199
 - @vx/heatmap: 0.0.198 => 0.0.199
 - @vx/hierarchy: 0.0.198 => 0.0.199
 - @vx/legend: 0.0.198 => 0.0.199
 - @vx/marker: 0.0.198 => 0.0.199
 - @vx/mock-data: 0.0.198 => 0.0.199
 - @vx/network: 0.0.198 => 0.0.199
 - @vx/pattern: 0.0.198 => 0.0.199
 - @vx/point: 0.0.198 => 0.0.199
 - @vx/react-spring: 0.0.198 => 0.0.199
 - @vx/responsive: 0.0.198 => 0.0.199
 - @vx/scale: 0.0.198 => 0.0.199
 - @vx/shape: 0.0.198 => 0.0.199
 - @vx/stats: 0.0.198 => 0.0.199
 - @vx/text: 0.0.198 => 0.0.199
 - @vx/threshold: 0.0.198 => 0.0.199
 - @vx/tooltip: 0.0.198 => 0.0.199
 - @vx/voronoi: 0.0.198 => 0.0.199
 - @vx/vx: 0.0.198 => 0.0.199
 - @vx/xychart: 0.0.0 => 0.0.199 (private)
 - @vx/zoom: 0.0.198 => 0.0.199

v0.0.198

06 Jul 21:41
Compare
Choose a tag to compare

πŸš€ Enhancements

  • feat(tooltip): add Portal and useTooltipInPortal #756
  • feat(responsive): add leading option to resize debounce #754
  • feat(axis): use numTicks when falling back on scale.domain #752
  • feat(pattern): add diagonal right to left pattern #744
  • feat(legend): add Line shape, legendLabelProps, and more props in renderShape #749

πŸ’₯ Breaking Changes

  • feat(responsive): resize debounce now defaults to true which will result in an additional render #754
  • feat(tooltip): add offsetLeft/Top to TooltipProps, making TooltipProps === TooltipWithBoundsProps, adds additional 10px of padding to Tooltip left/top #756

πŸ› Bug Fix

  • fix(responsive): remove debounced calls after unmounnt #558

🏠 Internal

  • (demo): add static export deploys #741

v0.0.197

04 Jun 19:11
Compare
Choose a tag to compare

πŸš€ Enhancements

  • feat(tooltip): add unstyled prop to TooltipWithBounds #721
  • perf(tooltip): use useCallback in useTooltip #668

πŸ› Bug Fix

  • fix(zoom): fix zoom.dragMove on touchmove event y-coord #725

πŸ“ Documentation

🏠 Internal

  • deps(root): bump yarn.lock, add @types/webpack #740
  • fix(demo/package.json): lock next.js version #740
  • fix(demo): prettier config updated so lots of minor style updates #740
  • fix(demo/next.config.js): fix invalid webpack config error #740
  • fix(demo/pages): routes are case sensitive (/Docs => /docs) #740
  • feat(demo/gallery): gallery filter persists on query param ?pkg instead of local state #740

πŸ† Contributors

Changes: 
 - @vx/annotation: 0.0.196 => 0.0.197
 - @vx/axis: 0.0.196 => 0.0.197
 - @vx/bounds: 0.0.196 => 0.0.197
 - @vx/brush: 0.0.196 => 0.0.197
 - @vx/chord: 0.0.196 => 0.0.197
 - @vx/clip-path: 0.0.196 => 0.0.197
 - @vx/curve: 0.0.196 => 0.0.197
 - @vx/demo: 0.0.196 => 0.0.197
 - @vx/drag: 0.0.196 => 0.0.197
 - @vx/event: 0.0.196 => 0.0.197
 - @vx/geo: 0.0.196 => 0.0.197
 - @vx/glyph: 0.0.196 => 0.0.197
 - @vx/gradient: 0.0.196 => 0.0.197
 - @vx/grid: 0.0.196 => 0.0.197
 - @vx/group: 0.0.196 => 0.0.197
 - @vx/heatmap: 0.0.196 => 0.0.197
 - @vx/hierarchy: 0.0.196 => 0.0.197
 - @vx/legend: 0.0.196 => 0.0.197
 - @vx/marker: 0.0.196 => 0.0.197
 - @vx/mock-data: 0.0.196 => 0.0.197
 - @vx/network: 0.0.196 => 0.0.197
 - @vx/pattern: 0.0.196 => 0.0.197
 - @vx/point: 0.0.196 => 0.0.197
 - @vx/responsive: 0.0.196 => 0.0.197
 - @vx/scale: 0.0.196 => 0.0.197
 - @vx/shape: 0.0.196 => 0.0.197
 - @vx/stats: 0.0.196 => 0.0.197
 - @vx/text: 0.0.196 => 0.0.197
 - @vx/threshold: 0.0.196 => 0.0.197
 - @vx/tooltip: 0.0.196 => 0.0.197
 - @vx/voronoi: 0.0.196 => 0.0.197
 - @vx/vx: 0.0.196 => 0.0.197
 - @vx/zoom: 0.0.16 =>  0.0.19