final chart 1

author(s): Torstein Hønsi

by Brooke Henderson

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
  chart: {
    type: 'column'
  },
  title: {
    text: 'Comparison of Top Three Countries Recieving U.S. Funding '
  },
  subtitle: {
    text: 'Top categories of aid recieved in 2015 '
  },
  xAxis: {
    categories: [
      'Conflict, peace, and security',
      'Emergency response',
      'Post secondary education',
      'Disaster prevention and preparedness',
      'General environment protection'
    ],
    crosshair: true
  },
  yAxis: {
     min: 20000,
     max: 10000000000,
    type: 'logarithmic',
    title: {
      text: 'Dollar amount given from U.S.'
    }
  },
  tooltip: {
    footerFormat: '</table>',
    shared: true,
    useHTML: true
  },
  plotOptions: {
    column: {
      pointPadding: 0.2,
      borderWidth: 0
    }
  },
  series: [{
    name: 'Israel',
    data: [3282902911, 10000000, 1413927, 470000, 25000]

  }, {
    name: 'Egypt',
    data: [4627994852,13397389,10513322,20000,695000]

  }, {
    name: 'Iran',
    data: [1160435944,142083714,22077448,1383975,3774044]

  }]
});