<head>
  <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
  <link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
</head>
<body>
  <div id="graph"></div>
</body>
Plotly.plot('graph', [{
  y: [2,1,2],
  line: { shape: 'spline' }
}], {
  title: 'Graph with custom font',
  font: {
    // found on http://fontcdn.org/
    family: "'Oswald', sans-serif"
  }
})
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.