You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Combining customValues with a custom formatter function on a time axis. The internal time formatter expects tick objects with a time property, but customValues creates simpler tick objects without this property. #21226
changed the title [-][Bug] Combining customValues with a custom formatter function on a time axis. The internal time formatter expects tick objects with a time property, but customValues creates simpler tick objects without this property.[/-][+][Bug] Combining customValues with a custom formatter function on a time axis. The internal time formatter expects tick objects with a time property, but customValues creates simpler tick objects without this property.[/+]on Aug 26, 2025
Hi, any updates on this?
Is there any workaround or some way we can help fix it?
I ran into the same issue and it's stopping me from upgrading to version 6.
Thanks 🙂
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.
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.
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...?
Activity
[-][Bug] Combining customValues with a custom formatter function on a time axis. The internal time formatter expects tick objects with a time property, but customValues creates simpler tick objects without this property.[/-][+][Bug] Combining customValues with a custom formatter function on a time axis. The internal time formatter expects tick objects with a time property, but customValues creates simpler tick objects without this property.[/+]helgasoft commentedon Aug 27, 2025
yes, works in 5, but not in 6.
jorinvo commentedon Nov 9, 2025
Hi, any updates on this?
Is there any workaround or some way we can help fix it?
I ran into the same issue and it's stopping me from upgrading to version 6.
Thanks 🙂
helgasoft commentedon Nov 10, 2025
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
Line 346 in 6f305b4
The corresponding line in v.5 is this one:
echarts/src/util/time.ts
Line 177 in fe42bc1
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...?
Srajan-Sanjay-Saxena commentedon Nov 10, 2025
Sure i will help to resolve the issue
Srajan-Sanjay-Saxena commentedon Nov 10, 2025
@helgasoft solved the issue in pr #21352
jorinvo commentedon Nov 11, 2025
Wow that was fast 🚀 Thank you both!
HansDenFlammenwerfer commentedon Nov 14, 2025