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 2018/07/03 06:24:35 UTC

[GitHub] ekangal opened a new issue #8631: DRAG RECALCULATE not work echarts new version

ekangal opened a new issue #8631: DRAG RECALCULATE not work echarts new version
URL: https://github.com/apache/incubator-echarts/issues/8631
 
 
   Hello there,
   
   I can not use the new version (3.x / 4.x) of the drag calculation feature that I use Echarts 2.x pie chart. Does the new version support this feature? Does the calculable option work on newer versions? If you are supportive, I can rejoice if you can help me to do what I need to do.
   
   Thank you.
   
   
   var option = {
           title: {
               text: result.Baslik,
               subtext: result.AltBaslik,
               x: 'center'
           },
           toolbox: {
               show: true,
               feature: {
                   magicType: {
                       show: true,
                       type: ['pie']
                   },
                   restore: {
                       show: true
                   },
                   saveAsImage: {
                       show: true
                   }
   
               }
           },
           calculable: true,
           tooltip: {
               trigger: 'item',
               formatter: "{a} <br/>{b} : {c} " + result.BirimAdi + " ({d}%)"
           },
           legend: {
               orient: 'vertical',
               x: 'left',
               data: (function () {
                   var res = [];
                   var len = result.Veri.length;
                   for (var i = 0, size = len; i < size; i++) {
                       res.push({
                           name: result.Veri[i].Ad
                       });
                   }
                   return res;
               })()
           },
           series: [
               {
                   name: 'Grafik',
                   type: 'pie',
                   radius: '55%',
                   center: ['50%', '60%'],
                   data: (function () {
                       var res = [];
                       var len = result.Veri.length;
                       for (var i = 0, size = len; i < size; i++) {
                           res.push({
                               name: result.Veri[i].Ad,
                               value: result.Veri[i].Deger
                           });
                       }
                       return res;
                   })(),
                   itemStyle: {
                       emphasis: {
                           shadowBlur: 10,
                           shadowOffsetX: 0,
                           shadowColor: 'rgba(0, 0, 0, 0.5)'
                       }
                   }
               }
           ]
       };
   
   
   

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