Possible to make a scatter plot with margin histograms?

Yes, I see your issue. This post by @AIMPED is also, strictly speaking a plotly Python one, but I wonder if it might give you a way forward: