Mcstats custom graph

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();
        }

This worked for me on Bukkit:

private void addLandProtectionUsedGraph(Metrics metrics) {
		final boolean hasLandProtection = Bukkit.getServer().getPluginManager().isPluginEnabled("MCClans_LandProtection");
		Graph landProtectionUsedGraph = metrics.createGraph("Percentage using MCClans Land Protection");

		landProtectionUsedGraph.addPlotter(new Metrics.Plotter("Yes") {

			@Override
			public int getValue() {
				return hasLandProtection ? 1 : 0;
			}
		});

		landProtectionUsedGraph.addPlotter(new Metrics.Plotter("No") {

			@Override
			public int getValue() {
				return hasLandProtection ? 0 : 1;
			}
		});
	}

Thanks, I will try tonight.