Your StatsManager instance
The graph options
const graph = new LineGraph(statsmanager, "cpu", {
height: 400,
width: 800,
time: 604800000,
color: "rgba(227, 227, 227, 0.9)",
backgroundColor: "rgba(40, 40, 40, 0.9)",
fontSize: 14
});
const buffer = graph.generate("ram");
fs.writeFileSync("ram.png", buffer);
The name of the stats to display
The data to generate the graph
Generated using TypeDoc
The LineGraph class to generate linear graphics