Able to output charts over discord now
This commit is contained in:
parent
dc98f04311
commit
900f812621
1 changed files with 1 additions and 2 deletions
|
@ -94,6 +94,5 @@ def generate_chart(ticker, history):
|
|||
labels={"Open": "Price Per Share"},
|
||||
)
|
||||
|
||||
img_bytes = io.BytesIO()
|
||||
img_bytes = plotly.io.to_image(fig, format="png")
|
||||
return img_bytes
|
||||
return io.BytesIO(img_bytes)
|
||||
|
|
Loading…
Add table
Reference in a new issue