complete rewrite of this plugin
got graph working properly, added some styles