Skip to content

Instantly share code, notes, and snippets.

@straps
Created January 2, 2012 13:37
Show Gist options
  • Save straps/1550706 to your computer and use it in GitHub Desktop.
Save straps/1550706 to your computer and use it in GitHub Desktop.
charterTooltipFormatt
!!{
chart:{zoomType: 'x', type:'area'},
navigator:{
xAxis:{
labels:{
formatter:function(){return this.value*2;}
},
ordinal:false
}
},
xAxis:{labels:{formatter:function(){return this.value*2;}},ordinal:false},
tooltip:{
formatter:function(){
var rv='Freq: <b>'+(this.x*2)+'</b>';
_.each(this.points,function(p){
rv+='<br/><span style="color:'+p.series.color+'">'+p.series.name+'</span>: <b>'+p.y.toFixed(2)+'</b>';
});
return rv;
}
},
legend: {
enabled: true, layout: 'vertical',
floating: true, align: 'right',
verticalAlign: 'top',
itemStyle:{'font-size':'11px'}
},
credits:{enabled:false},
rangeSelector:{buttons:[{type: 'all', text:'All'}], selected:0, inputEnabled:false},
plotOptions: {series: {shadow: false, lineWidth: 1}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment