Skip to content

Instantly share code, notes, and snippets.

@dwarfmondo
Created December 14, 2010 22:17

Revisions

  1. dwarfmondo created this gist Dec 14, 2010.
    40 changes: 40 additions & 0 deletions highcharts_init_charts.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    init_charts: function() {
    Highcharts.setOptions({
    colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
    tooltip: {
    shadow: false,
    backgroundColor: 'rgba(0, 0, 0, .85)',
    borderRadius: 3,
    borderWidth: 0,
    style: {
    padding: 5,
    fontSize: '10px',
    fontFamily: 'Tahoma, verdana, sans-serif',
    color: '#fff'
    }
    },
    plotOptions: {
    column: {
    borderWidth: 1,
    pointPadding: 0,
    groupPadding: 0,
    shadow: false
    }
    },
    xAxis: {
    lineColor: '#ccc',
    tickPosition: 'outside',
    tickmarkPlacement: 'on',
    tickColor: '#ccc'
    },
    yAxis: {
    title: {
    text: null
    },
    gridLineColor: '#eee'
    },
    credits: {
    enabled: false
    }
    });
    }