diff --git a/packages/vx-demo/static/docs/vx-bounds.html b/packages/vx-demo/static/docs/vx-bounds.html
index c51014bb1..8ea631275 100644
--- a/packages/vx-demo/static/docs/vx-bounds.html
+++ b/packages/vx-demo/static/docs/vx-bounds.html
@@ -35,7 +35,7 @@
@vx/bounds
npm install --save @vx/bounds
-
withBoundingRects
HOC
+
withBoundingRects
HOC
It's often useful to determine whether elements (e.g., tooltips) overflow the bounds of their parent container and adjust positioning accordingly. The withBoundingRects
higher-order component is meant to simplify this computation by passing in a component's bounding rect as well as its parent's bounding rect.
Example usage
Example usage with a <Tooltip />
component
diff --git a/packages/vx-demo/static/docs/vx-geo.html b/packages/vx-demo/static/docs/vx-geo.html
index e0f428908..a11ca644f 100644
--- a/packages/vx-demo/static/docs/vx-geo.html
+++ b/packages/vx-demo/static/docs/vx-geo.html
@@ -43,6 +43,7 @@
Installation
- Graticule
- Albers
+- EqualEarth
- Mercator
- NaturalEarth
- Orthographic
@@ -60,6 +61,9 @@ <Graticule />
<Albers />
All props pass through to <Projection projection="albers" {...props} />
+<EqualEarth />
+
+All props pass through to <Projection projection="equalEarth" {...props} />
<Mercator />
All props pass through to <Projection projection="mercator" {...props} />
diff --git a/packages/vx-demo/static/docs/vx-mock-data.html b/packages/vx-demo/static/docs/vx-mock-data.html
index 3c826e1b7..8bbb55ead 100644
--- a/packages/vx-demo/static/docs/vx-mock-data.html
+++ b/packages/vx-demo/static/docs/vx-mock-data.html
@@ -41,16 +41,16 @@ Generators
import Mock from '@vx/mock-data';
const points = Mock.genRandomNormalPoints();
-
Mock.genRandomNormalPoints()
+
Mock.genRandomNormalPoints()
Returns a series of random normal x,y points.
-
Mock.getDateValue(n)
+
Mock.getDateValue(n)
Generates n
date values an hour apart from each other starting with the current time.
Mocks
Mock are essentially a bunch of data dumps that you can use like this:
import Mock from '@vx/mock-data';
const data = Mock.cityTemperature;
-
Mock.appleStock
+
Mock.appleStock
@@ -66,7 +66,7 @@ Mock.appleStock
-
Mock.browserUsage
+
Mock.browserUsage
@@ -103,7 +103,7 @@ Mock.browserUsage
-
Mock.cityTemperature
+
Mock.cityTemperature
@@ -125,7 +125,7 @@ Mock.cityTemperature
-
Mock.groupDateValue
+
Mock.groupDateValue
@@ -144,7 +144,7 @@ Mock.groupDateValue
-
Mock.letterFrequency
+
Mock.letterFrequency
diff --git a/packages/vx-demo/static/docs/vx-pattern.html b/packages/vx-demo/static/docs/vx-pattern.html
index 03d717dce..613ed0071 100644
--- a/packages/vx-demo/static/docs/vx-pattern.html
+++ b/packages/vx-demo/static/docs/vx-pattern.html
@@ -62,15 +62,15 @@ The Definition Caveat
Like gradients, patterns are "defined." When you put down a <PatternXYZ />
, it's putting a <pattern/>
attribute in the SVG.
It's often better to think of these as variable definitions rather than true DOM elements. When you use fill="url('#pattern')"
you're referencing the pattern's id: pattern
.
Pre-Made Patterns
-PatternsCircles
+PatternsCircles
<PatternCircles id="circles" height={6} width={6} stroke={'black'} strokeWidth={1} />
-PatternsHexagons
+PatternsHexagons
<PatternHexagons id="hexagons" height={3} size={8} stroke={'red'} strokeWidth={1} />
-PatternsLines
+PatternsLines
<PatternLines
id="lines"
@@ -81,7 +81,7 @@ PatternsLines
orientation={['diagonal']}
/>
-PatternsWaves
+PatternsWaves
<PatternWaves id="waves" height={4} width={4} stroke={'blue'} strokeWidth={1} />
diff --git a/packages/vx-demo/static/docs/vx-point.html b/packages/vx-demo/static/docs/vx-point.html
index 67c6b83e3..b1e11dc1a 100644
--- a/packages/vx-demo/static/docs/vx-point.html
+++ b/packages/vx-demo/static/docs/vx-point.html
@@ -44,9 +44,9 @@ Example Usage
let array = point.toArray() // Convert point to array
Methods
-point.value()
+point.value()
Returns an {x, y}
object with the x and y coordinates.
-point.toArray()
+point.toArray()
Returns the coordinates as an array [x, y]
.
diff --git a/packages/vx-demo/static/docs/vx-responsive.html b/packages/vx-demo/static/docs/vx-responsive.html
index 59ecf550e..7930f8951 100644
--- a/packages/vx-demo/static/docs/vx-responsive.html
+++ b/packages/vx-demo/static/docs/vx-responsive.html
@@ -44,7 +44,7 @@ @vx/responsive
With Components
ParentSize
ScaleSVG
-withScreenSize
+withScreenSize
If you would like your graph to adapt to the screen size, you can use withScreenSize()
. The resulting component will pass screenWidth
and screenHeight
props to the wrapped component containing the respective screen dimensions.
Example:
import { withScreenSize } from '@vx/responsive';
@@ -56,7 +56,7 @@ Example:
// ... Render the chartToRender somewhere
-withParentSize
+withParentSize
If you would like your graph to adapt to it's parent component's size, you can use withParentSize()
. The resulting component will pass parentWidth
and parentHeight
props to the wrapped component containing the respective parent's dimensions.
Example:
import { withParentSize } from '@vx/responsive';
@@ -68,7 +68,7 @@ Example:
// ... Render the chartToRender somewhere
-ParentSize
+ParentSize
You might do the same thing using the ParentSize
component.
Example:
import { ParentSize } from '@vx/responsive';
@@ -95,7 +95,7 @@ Example:
// ... Render the chartToRender somewhere
-ScaleSVG
+ScaleSVG
You can also create a responsive chart with a specific viewBox with the ScaleSVG
component.
Example:
import { ScaleSVG } from '@vx/responsive';
diff --git a/packages/vx-demo/static/docs/vx-tooltip.html b/packages/vx-demo/static/docs/vx-tooltip.html
index 47ce5d0b1..9f61215b6 100644
--- a/packages/vx-demo/static/docs/vx-tooltip.html
+++ b/packages/vx-demo/static/docs/vx-tooltip.html
@@ -60,7 +60,7 @@ Example:
} = this.props;
return (
- // note React.Frament is only available in >= react@16.2
+ // note React.Fragment is only available in >= react@16.2
<React.Fragment>
<svg width={...} height={...}>
// Chart here...
@@ -139,7 +139,7 @@
Components
-
+
This is a simple Tooltip container component meant to be used to actually render a Tooltip. It accepts the following props, and will spread any additional props on the tooltip container div (i.e., ...restProps):
-
Note that this component is positioned using a tranform
, so overriding left
and top
via styles may have no effect.
+
Note that this component is positioned using a transform
, so overriding left
and top
via styles may have no effect.
diff --git a/packages/vx-geo/Readme.md b/packages/vx-geo/Readme.md
index 14b4228c0..f0841ea32 100644
--- a/packages/vx-geo/Readme.md
+++ b/packages/vx-geo/Readme.md
@@ -18,6 +18,7 @@ npm install --save @vx/geo
- [Graticule](#graticule-)
- [Albers](#albers-)
+ - [EqualEarth](#equalearth-)
- [Mercator](#mercator-)
- [NaturalEarth](#naturalearth-)
- [Orthographic](#orthographic-)
@@ -44,6 +45,11 @@ npm install --save @vx/geo
All props pass through to `