jarben commented on issue #8935: Stacked Bar with dataZoom regression (4.1.0)
URL: 
https://github.com/apache/incubator-echarts/issues/8935#issuecomment-418725389
 
 
   Perhaps another instance of this bug: 
   
![image](https://user-images.githubusercontent.com/561365/45095241-e5a89a00-b11d-11e8-9bc5-ee566a265bed.png)
   Code:
   ```
   
   myChart.showLoading();
   
   $.get('data/asset/data/obama_budget_proposal_2012.list.json', function 
(obama_budget_2012) {
       myChart.hideLoading();
   
       option = {
           tooltip : {
               trigger: 'axis',
               axisPointer: {
                   type: 'shadow',
                   label: {
                       show: true
                   }
               }
           },
           toolbox: {
               show : true,
               feature : {
                   mark : {show: true},
                   dataView : {show: true, readOnly: false},
                   magicType: {show: true, type: ['line', 'bar']},
                   restore : {show: true},
                   saveAsImage : {show: true}
               }
           },
           calculable : true,
           legend: {
               data:['Growth', 'Budget 2011', 'Budget 2012'],
               itemGap: 5
           },
           grid: {
               top: '12%',
               left: '1%',
               right: '10%',
               containLabel: true
           },
           yAxis: [
               {
                   type : 'category',
                   data : obama_budget_2012.names
               }
           ],
           xAxis: [
               {
                   type : 'value',
                   name : 'Budget (million USD)',
                   axisLabel: {
                       formatter: function (a) {
                           a = +a;
                           return isFinite(a)
                               ? echarts.format.addCommas(+a / 1000)
                               : '';
                       }
                   }
               }
           ],
           dataZoom: [
               {
                   show: true,
                   start: 5,
                   end: 20
               },
               {
                   type: 'inside',
                   start: 0,
                   end: 10
               },
               {
                   show: true,
                   yAxisIndex: 0,
                   filterMode: 'empty',
                   start:90,
                   end:100,
                   width: 30,
                   height: '80%',
                   showDataShadow: false,
                   left: '93%'
               }
           ],
           series : [
               {
                   name: 'Budget 2011',
                   type: 'bar',
                   stack:true,
                   data: obama_budget_2012.budget2011List
               },
               {
                   name: 'Budget 2012',
                   stack:true,
                   type: 'bar',
                   data: obama_budget_2012.budget2012List
               }
           ]
       };
   
       myChart.setOption(option);
   
   });
   ```
   
   

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