I’m trying to upload data to a custom graph but it doesn’t work. The graph is created.
try {
Metrics metrics = new Metrics(Sponge.getGame(), this);
Metrics.Graph graph = metrics.createGraph("Plugins installed");
graph.addPlotter(new Metrics.Plotter("Plugin v1.0") {
@Override
public int getValue() {
return 1;
}
});
graph.addPlotter(new Metrics.Plotter("Plugin v0.2.3") {
@Override
public int getValue() {
return 1;
}
});
metrics.start();
} catch (IOException e) {
e.printStackTrace();
}