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 2020/09/25 16:59:41 UTC

[GitHub] [incubator-echarts] czzonet opened a new issue #13347: area-category--dimension 0: Cannot read property 'coord' of undefined...at getVisualGradient (LineView.js?f17f:228)||折线面积图用类别报错和无法渲染面积的颜色

czzonet opened a new issue #13347:
URL: https://github.com/apache/incubator-echarts/issues/13347


   ### Version
   4.9.0
   
   ### Steps to reproduce
   [Examples - Apache ECharts (incubating)](https://echarts.apache.org/examples/zh/editor.html?c=area-pieces)
   
   Error when using dimension: 0 in area-category: undefined coord.Other dimension no error.
   
   But both can not draw area, just draw symbol.
   
   ```js
   
   option = {
             dataset: {
       source:[
     ["x", "y", "z", "t"],
     ["2019-10-10", 200, 700, "a"],
     ["2019-10-11", 400, 600, "a"],
     ["2019-10-12", 650, 500, "a"],
     ["2019-10-13", 500, 400, "a"],
     ["2019-10-14", 250, 300, "a"],
     ["2019-10-15", 300, 200, "a"],
     ["2019-10-16", 450, 300, "b"],
     ["2019-10-17", 300, 400, "a"],
     ["2019-10-18", 100, 500, "a"],
   ],
   },
       xAxis: {
           type: 'category',
       },
       yAxis: {
           type: 'value',
       },
       visualMap: {
     
               type: "piecewise",
               top: 10,
               left: 10,
             //            dimension: 3,
      dimension: 0,
               seriesIndex: 0,
               show: true,
                //   categories: ["a", "b"],
            categories: ["1", "2"],
            //    categories: ["2019-10-10", "2019-10-11"],
               inRange: {
                 color: ["blue", "gold"],
               },
               outOfRange: {
                 color: "red",
               },
     
       },
       series: [
           {
               type: 'line',
               smooth: 0.6,
               lineStyle: {
                   color: 'green',
                   width: 5
               },
               areaStyle: {},
                  encode: {
                 x: 0,
                 y: 1,
               },
           }
       ]
   };
   
   ```
   
   ### What is expected?
   draw area with color
   
   ### What is actually happening?
   undefined error, and just draw symbol
   
   ---
   In LineView.js, `visualMeta.stops` is empty when  using dimension: 0.
   
   But, pieces draw well.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


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

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] [incubator-echarts] Ovilia commented on issue #13347: area-category--dimension 0: Cannot read property 'coord' of undefined...at getVisualGradient (LineView.js?f17f:228)||折线面积图用类别报错和无法渲染面积的颜色

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #13347:
URL: https://github.com/apache/incubator-echarts/issues/13347#issuecomment-699577406


   It seems to be a bug.


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

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] [incubator-echarts] echarts-bot[bot] commented on issue #13347: area-category--dimension 0: Cannot read property 'coord' of undefined...at getVisualGradient (LineView.js?f17f:228)||折线面积图用类别报错和无法渲染面积的颜色

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


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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

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] [incubator-echarts] echarts-bot[bot] commented on issue #13347: area-category--dimension 0: Cannot read property 'coord' of undefined...at getVisualGradient (LineView.js?f17f:228)||折线面积图用类别报错和无法渲染面积的颜色

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


   This issue is labeled with `difficulty: easy`.
   @czzonet If you are interested in fixing it by yourself, which is a quicker way to get your problem fixed, please have a look at [How to debug ECharts](https://github.com/apache/incubator-echarts/blob/master/CONTRIBUTING.md#how-to-debug-echarts) if you'd like to give a try. Or you may wait for the community to fix.


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

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