Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import plotly.graph_objects as go
import json
import plotly.graph_objects as go
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the purpose of this PR


# Create the table
products = ["Apples", "Bananas", "Oranges"]
Expand All @@ -11,7 +11,7 @@
header=dict(values=["Product", "Quantity", "Price", "Total"]),
cells=dict(values=[products + ["Total"],
quantities + [sum(quantities)],
prices + [""],
prices + [None],
totals + [sum(totals)]])
)])

Expand All @@ -23,4 +23,4 @@
f.write(fig_json)

# Optional: print preview of JSON (first 300 characters)
print(fig_json[:300])
print("Preview of exported JSON:\n", fig_json[:300], "...")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you post the screenshot of new output