elastic-charts icon indicating copy to clipboard operation
elastic-charts copied to clipboard

Improve ticks formatting/count for Log scale

Open qn895 opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. Currently, setting Axis.ticks in for an AreaSeries doesn’t seem to work if the axis scale is log. It works as expected if the scale is linear.

For example, the following are with the y axis.ticks = 5. Top is linear scale and bottom is log scale. Screen Shot 2021-06-22 at 12 15 06 Screen Shot 2021-06-22 at 12 15 27

As such, it would be good to be able to either set the approximate tick counts or have a better way to show the labels without all of them look overcrowded

Kibana Cross Issues Small part of https://github.com/elastic/kibana/pull/99905 PR

Checklist

  • [x] this request is checked against already exist requests
  • [x] every related Kibana issue is listed under Kibana Cross Issues list
  • [x] kibana cross issue tag is associated to the issue if any kibana cross issue is present

qn895 avatar Jun 22 '21 19:06 qn895

Also need to find a way to account for precision in formatting...

image

Also avoid rendering 0 label when value is not actually 0 but 0.001

nickofthyme avatar Apr 11 '24 15:04 nickofthyme