Nahor commented on issue #21335:
URL: https://github.com/apache/echarts/issues/21335#issuecomment-5472770814

   I was looking for a similar feature as well. My data has a mix of small and 
big values. A linear scale crunches the small values too much, but log scale 
has the reverse problem, it's the big values that are crunched too much. Using 
a power scale gave me a nice middle ground (`x^0.4` to be precise).
   
   The [plotters](https://docs.rs/plotters/latest/plotters/) Rust library has a 
[`Ranged`](https://docs.rs/plotters/latest/plotters/coord/ranged1d/trait.Ranged.html)
 trait to do that.
   It has a function to map the data to a graph coordinate (e.g. `log(x)` for 
the log scale), as well as a function to specify where the ticks are (e.g. 
`[..., 0.1, 1, 10, 100, ...]` for the log scale)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to