You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/05/13 06:38:27 UTC

[GitHub] [incubator-echarts] Coober-Ding edited a comment on issue #10440: 4.0版本 series[i]-line.symbol为Function时出现bug

Coober-Ding edited a comment on issue #10440: 4.0版本 series[i]-line.symbol为Function时出现bug
URL: https://github.com/apache/incubator-echarts/issues/10440#issuecomment-491693959
 
 
   ```java script
   option = {
       title: {
           text: 'Awesome Chart'
       },
       xAxis: {
           data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
       },
       yAxis: {},
       series: [{
           type: 'line',
           data:[220, 182, 191, 234, 290, 330, 310],
           // 文档中说symbol可以是Function,但我观察代码,发现并没有实现此功能。
           symbol: function (value) {
               if (value > 200) {
                   return 'circle'
               }
               return 'rect'
           }
       }]
   };
   ```

----------------------------------------------------------------
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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org