Display devices and there status

This commit is contained in:
Peter Stockings
2023-01-24 20:16:12 +11:00
parent a0969c63db
commit 5dc2b866f4
5 changed files with 52 additions and 0 deletions

View File

@@ -14,6 +14,10 @@ custom_style = Style(
def generate_graph(x_labels, data, style=custom_style):
"""
Generate SVG line graph using pygal
example usage: generate_graph([1,2,3], [("RPM", [1,2,3]),("Power", [2,4,6])])
"""
graph = pygal.Line(show_y_guides=False,
show_legend=False, style=style)
graph.x_labels = x_labels