Closed timothypratley closed 1 month ago
Hi @timothypratley, thanks for reporting this issue.
I feel like https://github.com/djblue/portal/commit/dc33869fef516195290c2cc35e901bbf07208fb0 should fix this issue. Did you want to give it a try locally?
Hi @djblue
Yes that fixed it.
Confirmed locally with steps:
in portal directory bb jar
clj -Spom
then in my deps djblue/portal {:local/root "../portal"}
renders the chart correctly.
Thankyou!
Thanks for verifying this, I should get a release out within the next week.
TableCloth is a popular way to work with datasets. Visualizing with VegaLite via Portal is very convenient.
Sadly, the most natural way to assign the data of the visualization:
Produces exactly the right thing, but because the maps are actually
tech.v3.datatype.FastStruct
, Portal serialization produces the wrong output:These "objects" should be serialized as "maps".
There are several workarounds including using a CSV string instead or manually making (non-record) plain maps. But it seems like maybe an easy thing to fix in the way the json is serialized.