Srajan-Sanjay-Saxena commented on issue #21226: URL: https://github.com/apache/echarts/issues/21226#issuecomment-3513371747
> OP has written in Min. Repro: 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. > > Most probably bug pops on this line in v.6 : > > [echarts/src/util/time.ts](https://github.com/apache/echarts/blob/6f305b497adc47fa2987a450d892d09741342c56/src/util/time.ts#L346) > > Line 346 in [6f305b4](/apache/echarts/commit/6f305b497adc47fa2987a450d892d09741342c56) > > level: tick.time.level, > > The corresponding line in v.5 is this one: > [echarts/src/util/time.ts](https://github.com/apache/echarts/blob/fe42bc1ea3a8d2ef7864cfe303de34f480149d09/src/util/time.ts#L177) > > Line 177 in [fe42bc1](/apache/echarts/commit/fe42bc1ea3a8d2ef7864cfe303de34f480149d09) > > level: tick.level > > 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](https://github.com/Srajan-Sanjay-Saxena)...? Sure i will help to resolve the issue -- 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]
