Offset two child-charts within a VictoryChart

187 Views Asked by At

I have a boxplot and a scatterplot within a VictoryChart and want them shifted a number of pixels in the non-domain axis.

My current code and resulting chart are here: https://codesandbox.io/s/beautiful-violet-opclp?file=/index.js

Now I want the red triangle to be placed a bit higher, so about 15 pixels in the y-direction upwards. I tried padding, domainPadding, dx, dy, but nothing works really.

Any hints are appreciated!

1

There are 1 best solutions below

0
On

By creating a custom point, the actual position can be set. See https://codesandbox.io/s/focused-lederberg-i8ddx?file=/index.js