Attributes for altering the view of your grid.
myGrid : Plot.Element (Interaction YourMsg)
myGrid =
line
[ stroke "deeppink"
, strokeWidth 2
, opacity 0.5
, customAttrs
[ Svg.Events.onClick <| Custom MyClickMsg
, Svg.Events.onMouseOver <| Custom Glow
]
]
areaDataPointsConfigure the view of the grid lines.
Adds classes to the grid container.
myGrid : Plot.Element msg
myGrid =
verticalGrid [ Grid.classes [ "my-grid" ] ]Specify a list of ticks where you want grid lines drawn.
myGrid : Plot.Element msg
myGrid =
verticalGrid [ Grid.values [ 2, 4, 6 ] ]If values are not specified with this attribute, the grid will mirror the ticks.
Add your own attributes to your gridlines. For events, see this example