First, create a function inside the "new Highcharts.Chart", as this:
Code: Select all
function logFunc(x) {
return Math.log(x) / Math.log(10);
};
Code: Select all
labels: {
formatter: function() {
return Math.ceil(Math.pow(10,this.value));
}
}
Code: Select all
tooltip: {
formatter: function() {
return '<b>'+ this.series.name +'</b><br/>'+
(Math.pow(10,this.x)).toFixed(3) + 'X-data' + ': ' + (Math.pow(10,this.y)).toFixed(3) + 'Y-data';
}
}
Code: Select all
series: [{
name: 'MyData',
data: [[logFunc(10),logFunc(20)], [logFunc(11),logFunc(22)]]
}]
Two more things to add:
1) grid theme with dotted lines
2) this.series.point.value
Hopefully they will be implemented soon on a new version!