Skip to content

Commit

Permalink
Update fork link and y0 in example code
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanwijk committed Apr 10, 2018
1 parent 361c7c8 commit d4bf127
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# d3-area-chunked

**:warning: This is a fork of [pbeshai/d3-line-chunked](pbeshai/d3-line-chunked)**
**This is a fork of [pbeshai/d3-line-chunked](https://github.com/pbeshai/d3-line-chunked)**

[![npm version](https://badge.fury.io/js/d3-area-chunked.svg)](https://badge.fury.io/js/d3-area-chunked)

Expand All @@ -17,7 +17,7 @@ Demo: http://frankvanwijk.nl/datavis/d3-area-chunked/
```js
var areaChunked = d3.areaChunked()
.x(function (d) { return xScale(d.x); })
.y0(function (d) { return yScale.range()[0]; })
.y0(function (d) { return yScale(0); })
.y1(function (d) { return yScale(d.y); })
.curve(d3.curveLinear)
.defined(function (d) { return d.y != null; })
Expand All @@ -38,7 +38,7 @@ d3.select('svg')
```js
var areaChunked = d3.areaChunked()
.x(function (d) { return xScale(d.x); })
.y0(function (d) { return yScale.range()[0]; })
.y0(function (d) { return yScale(0); })
.y1(function (d) { return yScale(d.y); })
.defined(function (d) { return d.y != null; })
.areaStyles({
Expand Down
2 changes: 1 addition & 1 deletion src/areaChunked.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { extent, max } from 'd3-array';
import { extent } from 'd3-array';
import { select } from 'd3-selection';
import { curveLinear, area as d3Area } from 'd3-shape';
import { interpolatePath } from 'd3-interpolate-path'; // only needed if using transitions
Expand Down

0 comments on commit d4bf127

Please sign in to comment.