Plotly overlay graph sample

by mhouser_nowmediagroup

HTML

<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<div id="myDiv">

JavaScript

var data = [
  {
    x: ['A', 'B', 'C', 'D', 'E'],
    y: [4, 9, 16, 17, 15 ],
    type: 'scatter',
    line: {shape: 'spline', color: '#ffdede'},
    fill: 'tozeroy',
    name: 'historical'
  },
  {
    x: ['A', 'B', 'C', 'D', 'E'],
    y: [3, 7, 14, 18, 16],
    type: 'scatter',
    name: 'current'
  }
];
Plotly.newPlot('myDiv', data, {}, {showSendToCloud: true});