OptionalidUnique identifier for the chart. Used as the MAIDR id.
OptionaltitleChart title displayed in text descriptions.
OptionalsubtitleChart subtitle.
OptionalcaptionChart caption.
OptionalaxesAxis configuration. Each axis may be provided as either a plain string
(shorthand for { label: value }) or a full AxisConfig object
(for per-axis format, or grid navigation on scatter).
For heatmaps and segmented bar charts, use fill for the color/category
axis; the binder maps it to the canonical z axis in the MAIDR schema.
Optionalx?: D3AxisInputOptionaly?: D3AxisInputOptionalfill?: D3AxisInputFill/color axis for heatmaps and segmented bars. Maps to z internally.
OptionalformatOptional formatting configuration applied to axes that do not specify
their own format. Per-axis format on AxisConfig takes precedence.
OptionalautoWhen true (the default), the binder writes the generated MAIDR schema
to the SVG as a maidr-data attribute so vanilla-JS users don't need
to call svg.setAttribute(...) themselves. The returned result is
unchanged either way.
Set to false if you are driving MAIDR yourself — e.g. passing the
returned schema to <Maidr data={...}> or persisting it elsewhere.
The React adapter (useD3Adapter, MaidrD3) forces this
to false internally so it can stay in control of the schema.
CSS selector for the point elements (e.g., 'circle', 'circle.dot').
OptionalxAccessor for the x-axis value.
OptionalyAccessor for the y-axis value.
OptionallabelAccessor for what each point is — a SNP id, a probe, a marker.
OptionalgroupAccessor for the region a point belongs to — its chromosome.
OptionalsignificanceThe significance cutoff on the y axis, on the axis the chart is drawn
against — 7.3 for genome-wide significance on a -log10(p) axis.
There is deliberately no default: the conventions differ by field and by software, and a guessed line would sort every point onto the wrong side silently. Omit it and the trace simply reports no findings.
OptionalsignificanceWhich side of significance is the significant one. 'above' (the
default) suits the transformed axes these charts usually carry; a raw p
axis runs the other way and needs 'below'.
OptionaleffectThe effect-size cutoff on the x axis, applied to its magnitude — a volcano is symmetric, and a fold change of -2 is as large an effect as one of +2.
Like significance, there is no default: the conventions differ by field,
and a guessed line would sort every gene onto the wrong side silently.
Configuration for binding a D3 volcano plot.
Extends D3ManhattanConfig because the two are the same chart read the same way:
labelnames the gene the way it names the SNP, andsignificanceis the same cutoff on the same axis. What a volcano adds is the second cutoff — the x axis is an effect size rather than a position, so a point is a finding only when it clears both.Example