Skip to content

Commit

Permalink
feat(line): add LineChartSvg component
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Benitte committed Dec 12, 2017
1 parent d517c52 commit 42f1cfe
Show file tree
Hide file tree
Showing 15 changed files with 975 additions and 625 deletions.
4 changes: 2 additions & 2 deletions packages/nivo-line/src/compute.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ export const generateLines = (data, xScale, yScale, color) =>
points: serieData.map(d =>
Object.assign({}, d, {
value: d.y,
x: xScale(d.x),
y: yScale(d.y),
x: d.x,
y: d.y,
})
),
}
Expand Down
File renamed without changes.
363 changes: 0 additions & 363 deletions packages/nivo-line/src/legacy/_Line.js

This file was deleted.

11 changes: 0 additions & 11 deletions packages/nivo-line/src/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,8 @@ export const LinePropTypes = {
})
).isRequired,

/*
scales: scalesPropType({
ids: PropTypes.oneOfType([
PropTypes.oneOf(['*']),
PropTypes.arrayOf(PropTypes.string),
]).isRequired,
}),
*/

stacked: PropTypes.bool.isRequired,
curve: lineCurvePropType.isRequired,
areaGenerator: PropTypes.func.isRequired,
lineGenerator: PropTypes.func.isRequired,

lines: PropTypes.array.isRequired,
slices: PropTypes.array.isRequired,
Expand Down
Loading

0 comments on commit 42f1cfe

Please sign in to comment.