Plotly.js: Inside Bar Text Automatically Rotates

Created on 17 Oct 2018  路  3Comments  路  Source: plotly/plotly.js

With a stacked bar chart, when a part of the stack becomes too small, inside positioned text automatically rotates 90 degrees. It would be useful to be able to control whether or not the text rotates.

feature

Most helpful comment

@archmoj no _need_ to do this for 1.48.0, but if you find the time ... go for it :ok_hand:

All 3 comments

good idea. Presumably a textangle attribute... that at least for outside text could be anything:
barchart_showlabelrotation
inside text might only support multiples of 90 degrees. Would default to 'auto' to use the current behavior.

would be useful in upcoming funnel traces too (cc https://github.com/plotly/plotly.js/issues/3504)

@archmoj no _need_ to do this for 1.48.0, but if you find the time ... go for it :ok_hand:

Was this page helpful?
0 / 5 - 0 ratings