score:5

Accepted answer

A pie chart does not use axis, so setting its type to logarithmic will not work. What you can do is transforming your data and preserving the "real" value so it can be displayed in a tooltip, data labels, etc.

    var data = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512],
        logData = data.map(function (value) {
        return {
            y: Math.log(value) / Math.LN10, 
            realY: value // store a pure value
          };
      });


    // later in chart options
    tooltip: {
     pointFormat: 'x = {point.x}, y = {point.realY}' // access the pure value in a tooltip
    }

Comparison pie charts with transformed data and with "pure" data: http://jsfiddle.net/rz9899j8/


Related Query

More Query from same tag