xmwgp8 opened a new issue #9104: 使用dataset时,无法设置2个Y轴各自的最大值
URL: https://github.com/apache/incubator-echarts/issues/9104
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   就在官方示例的数据调整:
   
   option = {
       legend: {},
       tooltip: {},
       dataset: {
           source: [
               ['product', '2015', '2016'],
               ['Matcha Latte', 43.3, 1185.8],
               ['Milk Tea', 83.1, 1173.4],
               ['Cheese Cocoa', 86.4, 1165.2],
               ['Walnut Brownie', 72.4, 1153.9]
           ]
       },
       xAxis: {type: 'category'},
       yAxis: [{name:'2015',
           type:'value',
           max: function(value) {
               return value.max;
           }
       },
       {name:'2016',
           type:'value',
           max: function(value) {
               return value.max ;
           }}],
       // Declare several bar series, each will be mapped
       // to a column of dataset.source by default.
       series: [
           {type: 'bar'},
           {type: 'line'}
       ]
   };
   
   ### Expected behaviour [期望结果]
   
   2个Y轴根据各自序列的最大值显示。
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to