timeplot = Timeplot.create(document.getElementById("my-timeplot"), plotInfo); timeplot.loadText("data.txt", ",", eventSource); timeplots.loadXML("events.xml", eventSource2);