From 22372fa444ecbcb83896a50e0970c43308998c57 Mon Sep 17 00:00:00 2001 From: JeffDotPng Date: Mon, 28 Aug 2023 22:41:34 -0400 Subject: [PATCH] remove hack --- flojoy/plotly_utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/flojoy/plotly_utils.py b/flojoy/plotly_utils.py index c55d901..b49075d 100644 --- a/flojoy/plotly_utils.py +++ b/flojoy/plotly_utils.py @@ -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"}, )