Skip to content

Commit c696076

Browse files
committed
mathematical (right-axis) domain plane rather than computer standard
1 parent 3ec4381 commit c696076

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/traces/parcoords/parcoords.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function model(layout, d, i, a) {
145145
unitToColor: unitToColorScale(d.line.colorscale, d.line.cmin, d.line.cmax, d.line.color),
146146
lines: lines,
147147
translateX: (d.domain.x[0] || 0) * layout.width,
148-
translateY: (d.domain.y[0] || 0) * layout.height,
148+
translateY: layout.height - (d.domain.y[1] || 1) * layout.height,
149149
pad: pad,
150150
canvasWidth: rowContentWidth * c.canvasPixelRatio + 2 * lines.canvasOverdrag,
151151
canvasHeight: rowHeight * c.canvasPixelRatio,
23 Bytes
Loading

0 commit comments

Comments
 (0)