Wrong tickFormat applied to the value labels #1387
Labels
:annotation
Annotation (line, rect, text) related issue
:axis
Axis related issue
bug
Something isn't working
Impact:High
released
Issue released publicly
:xy
Bar/Line/Area chart related
Describe the bug
When rendering dataValues on a bar chart, the
tickFormat
is only applied with no rotation is applied.When a rotation is applied, the
tickFormat
is not considered and the values are rendered without a formatter.To Reproduce
Steps to reproduce the behavior:
tickFormat
is applied to the left axis, but it still be applied also if the chart is rotated and the driving format axis should be the bottom one (without formatting in the current code)Expected behaviour
The value label should be formatted with the
displayValueSettings.valueFormatter
or, as a fallback, the relative Y axis.Screenshots
Version (please complete the following information):
Additional context
Looks like the
getAxesSpecForSpecId
doesn't take in consideration the chart rotationErrors in browser console
n/a
Kibana Cross Issues
elastic/eui#4845 (comment)
The text was updated successfully, but these errors were encountered: