Closed
Description
Annotation autorange is broken if you position the annotation using the category names for positioning, rather than the category serial number.
Plotly.newPlot(gd, [{x: ['a', 'b'], y: ['c', 'd']}], {
annotations:[{x: 1, y: 1, ax: 30, ay: -30, text: 'boo!'}],
width: 300,
height: 300,
paper_bgcolor:'#ffc'
})
but if I change to category names:
Plotly.newPlot(gd, [{x: ['a', 'b'], y: ['c', 'd']}], {
annotations:[{x: 'b', y: 'd', ax: 30, ay: -30, text: 'boo!'}],
width: 300,
height: 300,
paper_bgcolor:'#ffc'
})