qisuwan commented on issue #21343:
URL: https://github.com/apache/echarts/issues/21343#issuecomment-3882685282

   I also encountered this problem, the console reported an error
   `time.js:266 Uncaught TypeError: Cannot read properties of undefined 
(reading 'level')
       at leveledFormat (time.js:266:24)
       at TimeScale.getFormattedLabel (Time.js:100:25)
       at axisHelper.js:219:25
       at axisTickLabelBuilder.js:90:27
       at Array.map (<anonymous>)
       at Module.map (util.js:228:20)
       at createAxisLabels (axisTickLabelBuilder.js:85:15)
       at Axis.getViewLabels (Axis.js:184:28)
       at buildAxisLabel (AxisBuilder.js:851:21)
       at layOutAxisTickLabel (AxisBuilder.js:596:5)`
   
   The initial reason was found in axisTickLabelBuilder.js where the tick is 
undefined for the time attribute
   `labels: zrUtil.map(ticks, function (numval) {
           var tick = {
             value: numval
           };
           return {
             formattedLabel: labelFormatter_1(tick),
             rawLabel: axis.scale.getLabel(tick),
             tickValue: numval,
             time: undefined,
             "break": undefined
           };
         })`


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