I need to add 2, 3, 4, 5, 6, 7, 8, 9.... ticks on the y-axis. My chart is very tall, so I have enough room to do this. How can I do this?
var trace1 = {
x: [7, 8],
y: [1, 10000000000],
type: 'scatter'
};
var data = [trace1];
var layout = {
width: 500,
height: 800,
xaxis: {
autorange: true
},
yaxis: {
type: 'log',
dtick: 1,
autorange: true
}
};
Plotly.newPlot('myDiv', data, layout);
<head>
<!-- Load plotly.js into the DOM -->
<script src='https://cdn.plot.ly/plotly-latest.min.js'></script>
</head>
<body>
<div id='myDiv'><!-- Plotly chart will be drawn inside this DIV --></div>
</body>