Reputation: 644
I am trying to set some tick values on the x-axis but I can't seem to find any documentation on how to do it.
Example of what I would like to achieve
1'''''100'''''1000
The '
represents ticks in between our xvalues of interest. Any idea how this can be achieved?
Upvotes: 0
Views: 555
Reputation: 3038
var layout = {
xaxis: {
tickvals: [1, 10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 1000],
ticktext: ["1", "tick", "tick", "tick", "tick", "tick", "100", "tick", "tick", "tick", "tick", "1000"]
}
}
Plotly.newPlot("myDiv", [{x:[1, 10, 1000], y: [1, 1, 1]}], layout);
It is not clear what you're asking for; here's an example of manual ticks, which are explained in the documentation
Upvotes: 2