You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/08/19 03:38:27 UTC

[GitHub] [echarts] 1006569910 opened a new issue, #17531: 当鼠标滑过折线图后报错Uncaught TypeError: Cannot read properties of undefined (reading 'length')

1006569910 opened a new issue, #17531:
URL: https://github.com/apache/echarts/issues/17531

   ### Version
   
   5.3.3
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   var y = [30,2,60,300,188,168,68]
           var x = ['2020-11','2021-1','2021-3','2021-3','2021-3','2021-3','2021-3'];
           this.registeredChart = echarts.init(
             document.getElementById("registered")
           );
           var options = {
             grid: {
               top: "10%",
               left: "7.5%",
               right: "1%",
               bottom: "12%",
             },
             tooltip: {
               trigger: "axis",
             },
             xAxis: {
               type: "category",
               data: x,
               axisLabel: {
                 textStyle: {
                   color: "#3FDDFF",
                 },
               },
               show:false, // 不显示坐标轴线、坐标轴刻度线和坐标轴上的文字
             },
             yAxis: {
               type: "value",
               splitLine: {
                 how: true,
                 lineStyle:{
                   color: ['#2d2e4850'],
                   width: 1,
                   type: 'solid'
                 }
               },
               axisLabel: {
                 textStyle: {
                   color: "#3FDDFF",
                 },
               },
               show:false, // 不显示坐标轴线、坐标轴刻度线和坐标轴上的文字
             },
             series: [
               {
                 data: y,
                 type: "line",
                 symbol: "none",
                 smooth: true,
                 itemStyle: {
                   normal: {
                     lineStyle: {
                       color: "#80DEFF",
                     },
                   },
                 },
                 areaStyle: {
                   color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                     {
                       offset: 0,
                       color: "rgb(128, 222, 255, 1)",
                     },
                     {
                       offset: 1,
                       color: "rgb(128, 222, 255, 0.3)",
                     },
                   ]),
                 },
               },
             ],
           };
           this.registeredChart.setOption(options);
   
   ### Current Behavior
   
   当鼠标滑过折线图后报错Uncaught TypeError: Cannot read properties of undefined (reading 'length'),报错文件Animator.js,函数为interpolate1DArray,并且报错一直循环累加
   
   ### Expected Behavior
   
   希望找出BUG原因
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### 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] echarts-bot[bot] commented on issue #17531: 当鼠标滑过折线图后报错Uncaught TypeError: Cannot read properties of undefined (reading 'length')

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #17531:
URL: https://github.com/apache/echarts/issues/17531#issuecomment-1220212013

   @1006569910 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   Uncaught TypeError: Cannot read properties of undefined (reading 'length') is reported when the mouse rolls over the line chart
   
   **BODY**
   
   ### Version
   
   5.3.3
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   var y = [30,2,60,300,188,168,68]
           var x = ['2020-11','2021-1','2021-3','2021-3','2021-3','2021-3','2021-3'];
           this.registeredChart = echarts.init(
             document.getElementById("registered")
           );
           var options = {
             grid: {
               top: "10%",
               left: "7.5%",
               right: "1%",
               bottom: "12%",
             },
             tooltip: {
               trigger: "axis",
             },
             xAxis: {
               type: "category",
               data: x,
               axisLabel: {
                 textStyle: {
                   color: "#3FDDFF",
                 },
               },
               show:false, // don't show the axis, axis tick marks and text on the axis
             },
             yAxis: {
               type: "value",
               splitLine: {
                 how: true,
                 lineStyle:{
                   color: ['#2d2e4850'],
                   width: 1,
                   type: 'solid'
                 }
               },
               axisLabel: {
                 textStyle: {
                   color: "#3FDDFF",
                 },
               },
               show:false, // don't show the axis, axis tick marks and text on the axis
             },
             series: [
               {
                 data: y,
                 type: "line",
                 symbol: "none",
                 smooth: true,
                 itemStyle: {
                   normal: {
                     lineStyle: {
                       color: "#80DEFF",
                     },
                   },
                 },
                 areaStyle: {
                   color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                     {
                       offset: 0,
                       color: "rgb(128, 222, 255, 1)",
                     },
                     {
                       offset: 1,
                       color: "rgb(128, 222, 255, 0.3)",
                     },
                   ]),
                 },
               },
             ],
           };
           this.registeredChart.setOption(options);
   
   ### Current Behavior
   
   When the mouse slides over the line chart, the error Uncaught TypeError: Cannot read properties of undefined (reading 'length') is reported, the error file Animator.js is reported, the function is interpolate1DArray, and the error is continuously accumulated.
   
   ### Expected Behavior
   
   Hope to find out the cause of the bug
   
   ### Environment
   
   ````markdown
   - OS:
   - Browser:
   - Framework:
   ````
   
   
   ### Any additional comments?
   
   _No response_
   </details>


-- 
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] plainheart commented on issue #17531: 当鼠标滑过折线图后报错Uncaught TypeError: Cannot read properties of undefined (reading 'length')

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #17531:
URL: https://github.com/apache/echarts/issues/17531#issuecomment-1220270613

   `rgb(128, 222, 255, 1)` -> `rgba(128, 222, 255, 1)`
   `rgb(128, 222, 255, 0.3)` -> `rgba(128, 222, 255, 0.3)`


-- 
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] plainheart closed issue #17531: 当鼠标滑过折线图后报错Uncaught TypeError: Cannot read properties of undefined (reading 'length')

Posted by GitBox <gi...@apache.org>.
plainheart closed issue #17531: 当鼠标滑过折线图后报错Uncaught TypeError: Cannot read properties of undefined (reading 'length')
URL: https://github.com/apache/echarts/issues/17531


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