[Lens] Improve tick placement for binary formatter #114441
Labels
enhancement
New value added to drive a business result
Feature:Lens
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
With elastic/elastic-charts#1389 elastic-charts added the ability to render ticks taking into account whether they are formatted as binary values or not.
To leverage this functionality in Lens, it's necessary to leverage this information in the xy renderer to choose the
LinearBinary
scale type instead ofLinear
.As there are currently plans in development to rethink the formatting system in Kibana, this should be done by leveraging the mechanism we already have.
If the axis formatter has
id: 'bytes'
and theyScaleType
is"Linear"
, use"LinearBinary"
instead.The text was updated successfully, but these errors were encountered: