Skip to content

Commit

Permalink
docs: simplify usage a bit (uber#1094)
Browse files Browse the repository at this point in the history
A Twitter thread showed this wording, and the consensus there was that this was an overly complicated way of phrasing. I simplified that text a bit, it seems just as clear to me (even after looking up what "to wit" means).
  • Loading branch information
Haroenv authored and mcnuttandrew committed Jan 23, 2019
1 parent ae096ec commit c4153e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/xy-plot.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Not all properties can be visualized in each series. Here's a short comparison o

### A note on ordering

XYPlot is pretty flexible, and can accept most kinds of things DOM, SVG, really whatever react can build. As far as XYPlot is concerned there are two types of components in the world: those that can be rendered as part of an SVG tree and those that can't. It separates it's children into these two groups, and clusters the SVG elements under a root svg tag in order and then presents each of the remaining children in order. To wit, given a react configuration like:
XYPlot is pretty flexible, and can accept most kinds of things DOM, SVG, really whatever react can build. As far as XYPlot is concerned there are two types of components in the world: those that can be rendered as part of an SVG tree and those that can't. It separates it's children into these two groups, and clusters the SVG elements under a root svg tag in order and then presents each of the remaining children in order. With a react configuration like:

```javascript
<XYPlot>
Expand Down Expand Up @@ -190,7 +190,7 @@ CSS properties that will affect this wrapper component. Those will be applied to
</XYPlot>
```

*NOTE* in order to stack properly react-vis expects each x value in each series to be present (assuming stackBy: 'x', the same applies to stackBy 'y', just transposed). To wit, if our data looks like
*NOTE* in order to stack properly react-vis expects each x value in each series to be present (assuming stackBy: 'x', the same applies to stackBy 'y', just transposed). If our data looks like
```
const seriesOne = [
{x: 1, y: 10},
Expand Down

0 comments on commit c4153e5

Please sign in to comment.