plotly-sharp icon indicating copy to clipboard operation
plotly-sharp copied to clipboard

Unable to render two y-axes associated with a single x-axis

Open nielsbosma opened this issue 4 years ago • 0 comments

I'm not a plotly expert but I believe that in Plotly.Yaxis.Overlaying:

public static Box<IYaxisProperty> y(int anchorId)
{
	return Interop.mkYaxisAttr("overlaying", (anchorId > 1) ? $"y{anchorId}" : "");
}

anchorId > 1 needs to be anchor > 0.

To reproduce examples like: https://codepen.io/mdnasirfardoush/pen/WyMMdg?editors=1010

I had to give both yaxises and id > 1 to get it to work.

nielsbosma avatar Jan 19 '21 12:01 nielsbosma