This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-18
Channels
- # announcements (1)
- # babashka (16)
- # beginners (39)
- # calva (17)
- # cider (21)
- # cljs-dev (1)
- # clojars (2)
- # clojure (39)
- # clojure-australia (1)
- # clojure-europe (1)
- # clojure-spec (7)
- # conjure (1)
- # cursive (6)
- # datomic (2)
- # depstar (5)
- # graalvm (20)
- # instaparse (11)
- # meander (4)
- # pathom (4)
- # pedestal (3)
- # polylith (18)
- # re-frame (13)
- # reagent (4)
- # reitit (3)
- # shadow-cljs (2)
- # spacemacs (14)
- # vrac (1)
how might i handle the labelComponent
property in this example using reagent?
<VictoryBar
data={sampleData}
labels={({ datum }) => datum.y}
style={{ labels: { fill: "white" } }}
labelComponent={<VictoryLabel dy={30}/>}
/>
i get an error when i do the following, which makes sense, but i'm not sure how to resolve it
[:> VictoryBar {:labelComponent [:> VictoryLabel {:dy 30]}]
react.development.js:221 Warning: Failed prop type: Invalid prop `labelComponent` of type `array` supplied to `VictoryBar`, expected a single ReactElement.