Plotly.Violin (plotly_ex v0.3.0)

Copy Markdown View Source

Plotly Violin trace struct. All top-level trace properties are struct fields. Unknown keys raise ArgumentError at construction time.

Nested properties (marker, line, etc.) accept plain maps or keyword lists — keyword lists are automatically normalised to maps before JSON encoding.

Fields

See the Plotly violin reference for full descriptions.

  • :alignmentgroup — string
  • :bandwidth — number, 0
  • :box — map (nested properties)
  • :customdata — data array
  • :fillcolor — color
  • :hoverinfo — flags: "x" | "y" | "z" | "text" | "name" | "all" | "none" | "skip"

  • :hoverlabel — map (nested properties)
  • :hoveron — flags: "violins" | "points" | "kde" | "all"

  • :hovertemplate — string
  • :hovertemplatefallback — any
  • :hovertext — string
  • :ids — data array
  • :jitter — number, 0–1
  • :legend — string (subplot id)
  • :legendgroup — string
  • :legendgrouptitle — map (nested properties)
  • :legendrank — number
  • :legendwidth — number, 0
  • :line — map (nested properties)
  • :marker — map (nested properties)
  • :meanline — map (nested properties)
  • :meta — any
  • :name — string
  • :offsetgroup — string
  • :opacity — number, 0–1
  • :orientation — one of: "v" | "h"

  • :pointpos — number, -2–2
  • :points — one of: "all" | "outliers" | "suspectedoutliers" | false

  • :quartilemethod — one of: "linear" | "exclusive" | "inclusive"

  • :scalegroup — string
  • :scalemode — one of: "width" | "count"

  • :selected — map (nested properties)
  • :selectedpoints — any
  • :showlegend — boolean
  • :side — one of: "both" | "positive" | "negative"

  • :span — any
  • :spanmode — one of: "soft" | "hard" | "manual"

  • :text — string
  • :uid — string
  • :uirevision — any
  • :unselected — map (nested properties)
  • :visible — one of: true | false | "legendonly"

  • :width — number, 0
  • :x — data array
  • :x0 — any
  • :xaxis — string (subplot id)
  • :xhoverformat — string
  • :y — data array
  • :y0 — any
  • :yaxis — string (subplot id)
  • :yhoverformat — string
  • :zorder — integer

Summary

Functions

Violin plot combining box plot with kernel density estimate. Construct a Violin trace. Raises ArgumentError on unknown keys.

Functions

new(opts \\ [])

Violin plot combining box plot with kernel density estimate. Construct a Violin trace. Raises ArgumentError on unknown keys.