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 2019/10/14 12:39:30 UTC

[GitHub] [incubator-echarts] Ovilia commented on issue #11396: Bar chart data not rendered when the first data is object

Ovilia commented on issue #11396: Bar chart data not rendered when the first data is object
URL: https://github.com/apache/incubator-echarts/issues/11396#issuecomment-541653695
 
 
   Correct way:
   ```js
   // var firstData = 0; // OK
   // var firstData = '-'; // OK
   // var firstData = 100; // OK
   var firstData = [20, "1"]; // OK
   
   option = {
       "yAxis": [{
           "type": "value",
           // "show": false
       }],
       "xAxis": [{
           "type": "category",
           "data": ['1', '2', '3']
       }],
       "series": [{
           "type": "bar",
           "data": [firstData, [50, "2"], [150, "3"]],
           "encode": {
               "y": 0
           }
       }]
   }
   ```

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


With regards,
Apache Git Services

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