zcg8633 edited a comment on issue #15992:
URL: https://github.com/apache/echarts/issues/15992#issuecomment-962786200


   > @zcg8633 Please provide a minimum reproducible demo for the issue either 
with https://codepen.io/Ovilia/pen/dyYWXWM , 
https://www.makeapie.com/editor.html or 
https://codesandbox.io/s/mystifying-bash-2uthz.
   > 
   > _A minimum reproducible demo_ should contain as little data and components 
as possible but can still illustrate your problem. This is the best way for us 
to reproduce it and solve the problem faster.
   
   ```js
   
   var container = document.getElementById('main');
   var chart = echarts.init(container);
   const data=[];
   for(let i=0;i<360;i++){
     for(let j=0;j<5;j++){
       data.push([j,i,Math.random()])
     }
   }
   chart.setOption({
     polar: {},
     tooltip: {},
     visualMap: {
       type: 'continuous',
       min: 0,
       max: 1,
       top: 'middle',
       dimension: 2,
       calculable: true,
       color:['#000','#333']
     },
     angleAxis: {
       type: 'category',
       boundaryGap: false,
       splitLine: {
         show: true,
         lineStyle: {
           color: '#ddd',
           type: 'dashed'
         }
       },
       axisLine: {
         show: false
       }
     },
     radiusAxis: {
       type: 'category',
       z: 100
     },
     series: [
       {
         name: 'Punch Card',
         type: 'custom',
         coordinateSystem: 'polar',
         itemStyle: {
           color: '#d14a61'
         },
         renderItem: function (params, api) {
           var values = [api.value(0), api.value(1)];
           var coord = api.coord(values);
           var size = api.size([1, 1], values);
           return {
             type: 'sector',
             shape: {
               cx: params.coordSys.cx,
               cy: params.coordSys.cy,
               r0: coord[2] - size[0] / 2,
               r: coord[2] + size[0] / 2,
               startAngle: -(coord[3] + size[1] / 2),
               endAngle: -(coord[3] - size[1] / 2)
             },
             style: api.style({
               fill: api.visual('color')
             })
           };
         },
         data: data
       }
     ]
   });
   
   ```


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to