Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
remove hack
Browse files Browse the repository at this point in the history
  • Loading branch information
39bytes authored and itsjoeoui committed Aug 29, 2023
1 parent 5479328 commit 22372fa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions flojoy/plotly_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ def data_container_to_plotly(data: DataContainer) -> dict[str, Any] | None:
case "Scalar":
fig.add_trace(
go.Indicator(
# FIXME: Remove this hack to fix the issue of
# nodes not actually returning a float for scalar values
value=data_copy.c
if isinstance(data_copy.c, float)
else data_copy.c[0],
value=data_copy.c,
domain={"y": [0, 1], "x": [0, 1]},
number={"valueformat": "f"},
)
Expand Down

0 comments on commit 22372fa

Please sign in to comment.