Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Plotly JS - Changing the baseline value of the axes in a scatter plot

I am having trouble in setting the baseline of the plotly (js) 2D scatter plot. Instead of axes passing through (0,0), i want them to pass through (2, -10) because some of my data values are either having x coordinate as ‘0’ or y-coordinate as ‘0’. So, its not visually appealing if those points are not that clearly visible.

Is there a way to change the baseline, so that the axes are not drawn from (0,0)?

We don’t allow that at the moment.

You can customising the axis tick labels to mock your desired behavior. See Custom labels in Y-Axis for an example.

1 Like

Thanks for your suggestion. I was able to get the desired results. It took some level of calculations, but its totally worth it!

1 Like