We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ab146e commit 527f15aCopy full SHA for 527f15a
6 files changed
src/marks/line.js
@@ -40,7 +40,7 @@ function LineCurve({curve = curveAuto, tension}) {
40
41
export class Line extends Mark {
42
constructor(data, options = {}) {
43
- const {x, y, z, curve, tension, halo, haloColor, haloRadius} = options;
+ const {x, y, z, halo, haloColor, haloRadius} = options;
44
super(
45
data,
46
{
@@ -52,7 +52,7 @@ export class Line extends Mark {
52
defaults
53
);
54
this.z = z;
55
- this.curve = Curve(curve, tension);
+ this.curve = LineCurve(options);
56
this.halo = maybeHalo(halo, haloColor, haloRadius);
57
markers(this, options);
58
}
@@ -67,6 +67,7 @@ export class Line extends Mark {
67
68
render(index, scales, channels, dimensions, context) {
69
const {x: X, y: Y} = channels;
70
+ const {curve} = this;
71
const g = create("svg:g", context)
72
.call(applyIndirectStyles, this, scales, dimensions)
73
.call(applyTransform, this, scales)
test/output/recession.svg
0 commit comments