Fork me on GitHub
#portal
<
2024-02-14
>
Aziz Aldawood07:02:56

I have a weird issue not really that important. Rendering boxplot using vega-lite in portal doesn't work well (Renders as horizontal lines each line represents a data point). Same spec renders well in vega lite editor in chrome. I will provide screenshots if needed when I am at my laptop

djblue07:02:11

A screenshot and some example data would be great 🙏

Aziz Aldawood21:02:41

my data is just one column called value. I think in the viz above there are around 500 of those data points

djblue21:02:24

Do you mind posting the specific vega-lite you are generating?

Aziz Aldawood21:02:46

(tap> ^{:portal.viewer/default :portal.viewer/vega-lite}
 {:data {:values (mapv #(hash-map :value (:xirr %)) (concat sim1 sim2 sim3))}
  :mark {:type "boxplot"
         :extent 1.5
         :median {:color "red"}
         :ticks true}
  :encoding {:y {:field "value" :type "quantitative"}}})