helgasoft commented on issue #21226:
URL: https://github.com/apache/echarts/issues/21226#issuecomment-3513351680

   OP has written in Min. Repro:
   <i>Expected behavior: customValues should work with formatter for time axis
    Actual behavior: Error - "can't access property 'level', tick.time is 
undefined"
    
   The issue occurs because when customValues is used with a time axis, the 
tick objects created don't have the 'time' property that the TimeScale 
formatter expects, causing getFormattedLabel to fail.</i>
   
   Most probably bug pops on this line in v.6 :
   
https://github.com/apache/echarts/blob/6f305b497adc47fa2987a450d892d09741342c56/src/util/time.ts#L346
   The corresponding line in v.5 is this one:
   
https://github.com/apache/echarts/blob/fe42bc1ea3a8d2ef7864cfe303de34f480149d09/src/util/time.ts#L177
   Indeed, looks like function _leveledFormat_ has been rewritten in v.6 and 
new _tick.time_ is not properly set.
   
   Who could help? According to recent activity, maybe @Srajan-Sanjay-Saxena...?


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