Attributes for altering the view of your bars serie.
myBarsSerie : Plot.Element (Interaction YourMsg)
myBarsSerie =
pile
[]
[ Pile.bars
[ Bars.fill "pink"
, Bars.opacity 0.5
]
data
]Set the opacity.
Set the fill color.
Use your own view for your label on top of bar. Will be passed the y value as an argument!
myBarSeries : Pile.Element msg
myBarSeries =
Pile.bars
[ Bars.label (\_ -> Svg.text_ [] [ Svg.text "my bar" ])
]
dataAdd your own attributes. For events, see this example