YiHui-Liu commented on issue #18439:
URL: https://github.com/apache/echarts/issues/18439#issuecomment-3529240840

   There is a way to achieve:
   ```js
   let processedData = rawData.map(item => {
       const safeValue = Math.max(1, item.value);
       return {
           name: item.name,
           value: Math.log10(safeValue),
           origin: safeValue
       };
   });
   ...
   tooltip: {
       formatter: function (params) {
           if (params.data && params.data.origin !== undefined)
               return params.name + ': ' + params.data.origin;
           return params.name;
       }
   },
   ...
   visualMap: {
       formatter: (value) => Math.round(Math.pow(10, value)),
   },
   ...
   series: [{
       data: processedData
   }]
   ```
   
   <img width="832" height="436" alt="Image" 
src="https://github.com/user-attachments/assets/7f2f6d68-ea67-4041-8e21-17b0fe1d7937";
 />


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