cndonovan commented on issue #20430:
URL: https://github.com/apache/echarts/issues/20430#issuecomment-2420475185

   I edited my original message, but I'll comment here too:
   
   # Edit
   I'd actually benefit more from knowing the tick interval (i.e. the 
difference between consecutive tick lines). 
   
   ```
   formatter: (value, index, tickInterval) => {
      // Use tickInterval to decide how to format value
   }
   ```
   
   Like I said, my goal is: if the y-axis values are [1, 0.98, 0.96, 0.94, 
0.92, 0.9], then I want to format as [1.00, 0.98, 0.96, 0.94, 0.92, .090]. 
   
   If I know that the `tickInteval` is .02, then I can choose to format with 
two decimal places. 


-- 
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