Skip to content

Commit

Permalink
added montoneX and monotoneY (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
aasiffaizal authored and harunhasdal committed Aug 10, 2018
1 parent 68d47b6 commit a3ad54c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/interpolate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import {
curveCardinal,
curveCardinalOpen,
curveCardinalClosed,
curveNatural
curveNatural,
curveMonotoneX,
curveMonotoneY
} from 'd3';

const interpolate = (type) => {
Expand All @@ -34,6 +36,10 @@ const interpolate = (type) => {
return curveCardinalClosed;
case 'natural':
return curveNatural;
case 'monotoneX':
return curveMonotoneX;
case 'monotoneY':
return curveMonotoneY;
default:
return curveLinear;
}
Expand Down

0 comments on commit a3ad54c

Please sign in to comment.