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/06/13 07:34:48 UTC

[GitHub] [incubator-echarts] DavidYangLin commented on issue #10653: 当使用toolbox将bar类型切换到stack类型之后,不能切换回来

DavidYangLin commented on issue #10653: 当使用toolbox将bar类型切换到stack类型之后,不能切换回来
URL: https://github.com/apache/incubator-echarts/issues/10653#issuecomment-501586569
 
 
   就是你们官方实例的例子,该链接访问:https://www.echartsjs.com/examples/editor.html?c=dataset-simple0,代码如下
   option = {
       legend: {},
       tooltip: {},
       toolbox: {
               show : true,
               feature : {
                   mark : {show: true},
                   dataView : {show: true, readOnly: false},
                   magicType: {show: true, type: ['stack', 'bar']},
                   restore : {show: true},
                   saveAsImage : {show: true}
               }
        },
       dataset: {
           source: [
               ['product', '2015', '2016', '2017'],
               ['Matcha Latte', 43.3, 85.8, 93.7],
               ['Milk Tea', 83.1, 73.4, 55.1],
               ['Cheese Cocoa', 86.4, 65.2, 82.5],
               ['Walnut Brownie', 72.4, 53.9, 39.1]
           ]
       },
       xAxis: {type: 'category'},
       yAxis: {},
       // Declare several bar series, each will be mapped
       // to a column of dataset.source by default.
       series: [
           {type: 'bar'},
           {type: 'bar'},
           {type: 'bar'}
       ]
   };
   

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