def METHOD_NAME(self, template, dashboard=False):
    result = template.graph({
        "name": "PostgreSQL Prepared Transactions: Overview",
        "items": [{
            "key": self.key_count["key"],
            "color": self.key_count["color"],
            "yaxisside": self.key_count["yaxisside"],
            "drawtype": 2
        },
            {
                "key": self.key_prepared["key"],
                "color": self.key_prepared["color"],
                "yaxisside": self.key_prepared["yaxisside"],
                "drawtype": 2
            },
        ]
    })
    if not dashboard:
        return result
    else:
        return []