Skip to content

Instantly share code, notes, and snippets.

@abrambailey
Created August 31, 2012 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abrambailey/3547680 to your computer and use it in GitHub Desktop.
Save abrambailey/3547680 to your computer and use it in GitHub Desktop.
gister123
<script type="text/javascript">
(function() {
var onload = window.onload;
window.onload = function(){
if (typeof onload == "function") onload();
var options, chart;
options = { "title": { "text": "Top Brands by Score" },"legend": { "layout": "vertical","style": { },"enabled": false },"xAxis": { "categories": ["x","y","z"] },"yAxis": { "title": { "text": null },"labels": { } },"tooltip": { "enabled": true,"formatter": function() { return '<b>'+ this.x +'</b>: '+ this.y.toFixed(1) +' %'; } },"credits": { "enabled": false },"plotOptions": { "areaspline": { } },"chart": { "defaultSeriesType": "column","renderTo": "my_id","height": 230,"width": 200,"backgroundColor": "#F0F0F0" },"subtitle": { },"series": [{"data":[77.5,67.0,55.0],"dataLabels":{"formatter":"function() { return this.x; }","enabled":true,"rotation":90,"x":-3,"y":15,"color":"#FFFFFF"},"name":null}] };
chart = new Highcharts.Chart(options);
};
})()
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment