You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "francois-achache (via GitHub)" <gi...@apache.org> on 2023/06/11 09:36:29 UTC

[GitHub] [echarts] francois-achache opened a new issue, #18746: [Bug] series endLabel failed if no point on chart

francois-achache opened a new issue, #18746:
URL: https://github.com/apache/echarts/issues/18746

   ### Version
   
   5.4.1
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/s/cdy362?file=/index.js
   
   ### Steps to Reproduce
   
   Create echart without option
   option = {
     xAxis: {
       type: 'time',
     },
     yAxis: {
       type: 'value'
     },
     series: [
       {
         data: [
           [new Date('1973-11-25:00:00'), null], 
           [new Date('1973-11-25:01:00'), null], 
           [new Date('1973-11-25:02:00'), null], 
           [new Date('1973-11-25:03:00'), null], 
           [new Date('1973-11-25:04:00'), null],
           [new Date('1973-11-25:05:00'), null], 
           [new Date('1973-11-25:06:00'), 5]],
         type: 'line',
         endLabel: {show: true}
       }
     ]
   };
   Works...
   option = {
     xAxis: {
       type: 'time',
     },
     yAxis: {
       type: 'value'
     },
     series: [
       {
         data: [
           [new Date('1973-11-25:00:00'), null], 
           [new Date('1973-11-25:01:00'), null], 
           [new Date('1973-11-25:02:00'), null], 
           [new Date('1973-11-25:03:00'), null], 
           [new Date('1973-11-25:04:00'), null],
           [new Date('1973-11-25:05:00'), null], 
           [new Date('1973-11-25:06:00'), null]],
         type: 'line',
         endLabel: {show: true}
       }
     ]
   };
   Fail...
   failed to run code TypeError: uc(...).setLabelText is not a function
       at e._endLabelOnDuring (echarts.min.js:45:347602)
       at RS.l (echarts.min.js:45:339639)
       at RS (echarts.min.js:45:339942)
       at e.render (echarts.min.js:45:342029)
       at t.progress (echarts.min.js:45:166701)
       at t._doProgress (echarts.min.js:45:135208)
       at t.perform (echarts.min.js:45:134780)
       at echarts.min.js:45:215513
       at e.<anonymous> (echarts.min.js:45:116265)
       at Array.forEach (<anonymous>)
   
   
   ### Current Behavior
   
   if no only value === null in area/chart
   failed to run code TypeError: uc(...).setLabelText is not a function
       at e._endLabelOnDuring (echarts.min.js:45:347602)
       at RS.l (echarts.min.js:45:339639)
       at RS (echarts.min.js:45:339942)
       at e.render (echarts.min.js:45:342029)
       at t.progress (echarts.min.js:45:166701)
       at t._doProgress (echarts.min.js:45:135208)
       at t.perform (echarts.min.js:45:134780)
       at echarts.min.js:45:215513
       at e.<anonymous> (echarts.min.js:45:116265)
       at Array.forEach (<anonymous>)
   
   ### Expected Behavior
   
   no error
   
   ### Environment
   
   ```markdown
   - OS: Windows 11
   - Browser: Edge
   - Framework: angular
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] helgasoft commented on issue #18746: [Bug] series endLabel failed if no point on chart

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18746:
URL: https://github.com/apache/echarts/issues/18746#issuecomment-1588184871

   [endLabel](https://echarts.apache.org/en/option.html#series-line.endLabel) displays the last value. If all values are _null_, then there is no label.
   [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeBYAULWAPAgliAzgFzKxgCeIApiQOSQC2VtsAvgDTqbl6ElIcusAlQBOEKsVgBtIZlQZMSgCYBDMKpKzFSpdOhUA7rAAi6qgApaARgCcAdgDMAWmvXnAJgCsRAAwe_X1oASnZYaABXABsogF0wuV0ZA2MzMEsbBxc3Tx9fR0CQsMiY-NhE3X0jU3MrOydXd28_ABZC0NhHeIq9FJr0uqzG3L88oI6SuISdJKrU2syGnObfADZ24ui4nu6ZzApqOiiIA1owgnIGACNgKIBlCAAvGmsvTj3YKmhlABlVK6oUX4BAAFsBDCQwKIIlRBDNWEJYuhWABuIA)


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] helgasoft commented on issue #18746: [Bug] series endLabel failed if no point on chart

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18746:
URL: https://github.com/apache/echarts/issues/18746#issuecomment-1586256766

   maybe it will work with some decent dates...


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] francois-achache commented on issue #18746: [Bug] series endLabel failed if no point on chart

Posted by "francois-achache (via GitHub)" <gi...@apache.org>.
francois-achache commented on issue #18746:
URL: https://github.com/apache/echarts/issues/18746#issuecomment-1586489164

   no, just change the last value 5 or null and that's work or not
   No choice I have to disabled this feature in my graph


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] francois-achache commented on issue #18746: [Bug] series endLabel failed if no point on chart

Posted by "francois-achache (via GitHub)" <gi...@apache.org>.
francois-achache commented on issue #18746:
URL: https://github.com/apache/echarts/issues/18746#issuecomment-1595212268

   yes  for sure, but doesnt have to raise an error in jsconsole


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org