linear",
                    title: "Battery Voltage",
                    overlaying: "y",
                    side: "right"
                }
            };

            document.getElementById("plot").innerHTML = "";

            Plotly.newPlot("plot", data, layout);

        })
    }

    drawGraph();

</script>

</html>