Your StatsManager instance
options for the graph
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
Data to generate the graph
Generated using TypeDoc
Class that generate Douhnout graph