plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

Allow dot tick markers on the axes type: feature

Open ricazhang opened this issue 9 years ago • 3 comments

For example: dot tick marks

ricazhang avatar Oct 02 '17 22:10 ricazhang

@ricazhang interesting, not a style I've ever seen before, what's the motivation for it?

We would happily accept a pull request adding this feature.

alexcjohnson avatar Oct 06 '17 19:10 alexcjohnson

@ricazhang here's a hacky way to get the effect you want, using unicode symbols. As tick marks are supposed to guide the eye along a line to data points, and circles subvert that goal, I might be inclined to leave it at this hack.

Plotly.newPlot(gd, [{x:[2010, 2013, 2016, 2019], y: [0, 5, 2, 7]}], {
    xaxis: {tickprefix: '\u25cf<br>', color: '#888'},
    yaxis: {ticksuffix: ' \u25cf', color: '#888'},
    width: 600, height: 400
})

screen shot 2017-10-08 at 12 13 34 am

alexcjohnson avatar Oct 08 '17 04:10 alexcjohnson

Awesome, thanks for the suggestion!

ricazhang avatar Oct 08 '17 08:10 ricazhang