Skip to content

Commit bc1e447

Browse files
ziktarmauriciopoppe
authored andcommitted
fix to use the proper scale for polyline & closed graphs
1 parent a538ff8 commit bc1e447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph-types/polyline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default function polyline(chart: Chart) {
4343
.y(y)
4444
const area = d3Area()
4545
.x(function (d) {
46-
return chart.meta.yScale(d[0])
46+
return chart.meta.xScale(d[0])
4747
})
4848
.y0(chart.meta.yScale(0))
4949
.y1(y)

0 commit comments

Comments
 (0)