cfrepak commented on issue #16919:
URL: https://github.com/apache/echarts/issues/16919#issuecomment-2904173940

   uff, that was a long time ago ;-) i'll just share my unfinished code so you 
can see for yourself:
   
   ```
   // function blockZones(txm, azi, len) {
   function blockZones(data) {
     console.log("loading block zones");
   
     // const blockZonesDiv = document.createElement("div");
     // blockZonesDiv.style = "width: 90%; height: 500px"
     // document.getElementById("content").appendChild(blockZonesDiv);
   
     // var bzChart = echarts.init(blockZonesDiv, null, {
     var bzChart = echarts.init(document.getElementById("blockZones"), null, {
       renderer: "canvas",
       useDirtyRect: false
     });
   
     const block = new Array(360).fill(0);
   
     // for (i = 0; i < len; i++) {
     //   if (txm[i] == 1) {
     //     block[azi[i]]++;
     //   }
     // }
     // // because logarithmic scale is not working: see radiusAxis
     // for (i = 0; i <= 360; i++) {
     //   if (block[i] >= 1) {
     //     block[i] = Math.log10(block[i]);
     //   }
     // }
   
   
     data.map((d) => {
       if (d.txm == 1) {
         block[d.azi]++;
       }
     });
   
     block.map((b, i) => {
       if (b >= 1) {
         block[i] = Math.log10(b);
       }
     });
   
     var option = {
       angleAxis: {
         type: "category",
         // not working with category:
         // data: ["0", "22.5", "45", "67.5", "90", "112.5", "135", "157.5", 
"180", "202.5", "225", "247.5", "270", "292.5", "315", "337.5"],
         // interval: 22.5,
         // splitnumber: 16,
         min: 0,
         max: 359,
       },
       radiusAxis: {
         // logarithmic scale not working: 
https://github.com/apache/echarts/issues/16919
         // type: "log",
         // logBase: 10,
         min: 0,
         max: "dataMax",
         axisLine: { show: false, },
         axisTick: { show: false, },
         axisLabel: { show: false, },
       },
       polar: {
       },
       tooltip: {
         formatter: (params) => {
           return params.name + "°: " + Math.round(Math.pow(10, params.data)) + 
" TX Off events";
         }
       },
       series: {
         type: "bar",
         data: block,
         coordinateSystem: "polar",
         itemStyle: {
           color: "#bd565d",
         },
       },
     };
     bzChart.setOption(option, true);
   }
   ```
   
   


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