Never Display The Modebar
Mix.install([
{:plotly_ex, "~> 0.3"},
{:kino, "~> 0.18"}
])
Section
config.displayModeBar: false hides the toolbar entirely — ideal for embedded
charts where the toolbar would distract or confuse end users.
alias Plotly.{Figure, Scatter}
Figure.new(
data: [Scatter.new(x: [1, 2, 3], y: [4, 5, 6], mode: "lines+markers")],
layout: %{title: "No modebar"},
config: %{displayModeBar: false}
)
|> Plotly.show()