<div id="bar-chart"></div>
body {
  margin: 20px auto;
  font-family: 'Lato';
  font-weight: 300;
  text-align: center;
}

#line-chart {
  margin: 0 auto;
  height: 450px;
}
var barDiv = document.getElementById('bar-chart');

var traceA = {
  x: ["Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"],
  y: [5427, 5243, 5514, 3933, 1326, 687, 1271, 1638],
  type: 'bar'
};

var data = [traceA];

var layout = {
  title:'Density of Planets (kg/m3)'
};

Plotly.plot( barDiv, data, layout );

External CSS

  1. https://fonts.googleapis.com/css?family=Lato:300

External JavaScript

  1. https://cdn.plot.ly/plotly-latest.min.js