Display devices and there status
This commit is contained in:
4
graph.py
4
graph.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user