Skip to content

Commit cb13e3c

Browse files
muntactmcnuttandrew
authored andcommitted
Correct the rect-series docs for x & x0 to align with the code. (#1182)
Issue: 937, Reviewer: PR
1 parent b150545 commit cb13e3c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/rect-series.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Like other series, it is required that the data be an array of objects, formatte
1818

1919
```javascript
2020
const myData = [
21-
{x: 0, x0: 1, y: 10, y0: 0},
22-
{x: 1, x0: 2, y: 5, y0: 0},
23-
{x: 2, x0: 4, y: 15, y0: 0}
21+
{x: 1, x0: 0, y: 10, y0: 0},
22+
{x: 2, x0: 1, y: 5, y0: 0},
23+
{x: 4, x0: 2, y: 15, y0: 0}
2424
]
2525
```
2626

@@ -34,15 +34,15 @@ Type: `string|number|date`
3434

3535
Default: `0`
3636

37-
The value used to compute the x position of _either_ side of the rectangle.
37+
The value used to compute the x position of _the right_ side of the rectangle.
3838

3939
#### x0 (optional)
4040

4141
Type: `string|number|date`
4242

4343
Default: `0`
4444

45-
The value used to compute the x position of the other side of the rectangle.
45+
The value used to compute the x position of _the left_ side of the rectangle.
4646

4747
#### y (optional)
4848

0 commit comments

Comments
 (0)