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!

Log Axis Format

Hi

I am starting to dabble with Plotly Js. So far I made a scatter plot with a log axis.
Example input & layout are below.

Question concerning the format: I am not particularly fond of the display of the log axis, for a range of two values (20, 281) it shows the y axis as 2, 3, 4, 5, 6, 7, 8, 9, 100, 2, 3 etc
Is it possible to get it to render the proper numbers instead but still use the log type? Eg; expecting: 20, 30, 40, 50, 60, 70, 80, 90, 100, 200, 300

The current format seems very confusing for external parties…

const trace1 = {
type: ‘scatter’,
mode: ‘markers’,
hoverinfo : ‘none’,
x: [1502977773119, 1502977777018],
y: [20, 281],
marker: {
color: ‘#C8A2C8’,
symbol : ‘star’,
size : 12
}
};

const layout = {
  // title: 'Auto-Resize',
  yaxis : {
    type : 'log',
    autorange : true
  },
  showlegend: false,
  font: {
    size: 16
  }
}

try setting xaxis.exponentformat: 'power'