Sets fonts, axis styling, hover-label colors, legend position, and an
accessible categorical colorway. Targets WCAG 2.1 contrast (1.4.3,
1.4.6, 1.4.11) and resizability (1.4.4). Font sizes are package
defaults, not WCAG-mandated minimums. Returns the plotly object so it
can stay in a |> chain.
Arguments
- p
A plotly object (from
plotly::plot_lyorplotly::ggplotly).- level
"AA"or"AAA".- palette
Discrete palette name applied as plotly's
colorway. Seea11y_palette_list(). PassNULLto leave plotly's default colors unchanged.