Closed
Description
When using a colorbar
with titleside: 'right'
and a small value for len
, the colorbar tick labels can overlap with the colorbar title:
(Codepen: http://codepen.io/anon/pen/YNoOML)
var data = [ {
z: [[0, 100],
[75, 0]],
type: 'heatmap',
colorbar:{
len: 0.35,
title: 'My long label',
titleside:'right',
tickvals:[0,50,100],
tickfont: {color: 'red'}
}
}];
var layout = {};
Plotly.newPlot('myDiv', data, layout);
The workaround for avoiding this overlap given in #938 (comment) (using an invisible tickprefix
) only works for titles that are to the left of the tick labels, unfortunately.
Is there a way to avoid this overlap with titles to the right of the tick labels?