PearTree Settings Object Reference

May 30, 2026 ยท View on GitHub

Canonical reference for settings keys accepted in the settings object (URL settings=, configUrl.settings, and PearTreeEmbed.embed({ settings })).

KeyAllowed valuesDefault
axisColorCSS color string#4b4b49
axisDateAnnotationstringn/a
axisDateFormatstringyyyy-MM-dd
axisFontSizenumber or numeric string9
axisLineWidthnumber or numeric string1
axisMajorInterval'auto' | 'millennia' | 'centuries' | 'decades' | 'years' | 'quarters' | 'months' | 'weeks' | 'days'auto
axisMajorLabelFormat'off' | 'partial' | 'component' | 'full'partial
axisMinorInterval'off' | same options as axisMajorIntervaloff
axisMinorLabelFormat'off' | 'partial' | 'component' | 'full'off
axisPaddingTopnumber or numeric string3
axisShow'off' | 'forward' | 'reverse' | 'time'forward
axisTypefaceKeystringn/a
axisTypefaceStylestringn/a
baseThemeBuilt-in theme nameMonochrome
branchColorCSS color string#333231
branchLabelAnnotationstringn/a
branchLabelColorCSS color string#aaaaaa
branchLabelDecimalPlacesinteger >= 0, or null/omitted for autonull (auto)
branchLabelFontSizenumber (6..48, step 1)9
branchLabelPosition'above' | 'below'above
branchLabelSpacingnumber or numeric string4
branchLabelTypefaceKeystringn/a
branchLabelTypefaceStylestringn/a
branchShape'off' | 'rectangle' | 'ellipse'off
branchShape2ColorCSS color string#aaaaaa
branchShape3ColorCSS color string#aaaaaa
branchShape4ColorCSS color string#aaaaaa
branchShapeAlign'left' | 'center' | 'right'center
branchShapeColorCSS color string#aaaaaa
branchShapeColorBystring or 'off'off
branchShapeCountBystring or 'off'off
branchShapeFilterstring or nullnull
branchShapeHaloColorCSS color string#ffffff
branchShapeHaloSizenumber or numeric string0
branchShapeHeightPctnumber (0..100, step 1)50
branchShapeSpacingnumber or numeric string3
branchShapesExtraarray["off","off","off"]
branchShapeWidthnumber or numeric string (height factor, 0.05..5.0)1.0
branchWidthnumber or numeric string1.5
canvasBgColorCSS color string#ebe8e2
cladeHighlightColourCSS color string#ffaa00
cladeHighlightFillOpacitynumber or numeric string (typically 0..1)0.15
cladeHighlightLeftEdge'atRoot' | 'outlineNodes'outlineNodes
cladeHighlightPaddingnumber or numeric string4
cladeHighlightRadiusnumber or numeric string4
cladeHighlightRightEdge'atTips' | 'atLabels' | 'atLabelsRight' | 'outlineTips'outlineTips
cladeHighlightStrokeOpacitynumber or numeric string (typically 0..1)0.7
cladeHighlightStrokeWidthnumber or numeric string1
collapsedCladeFontSizenumber or numeric string11
collapsedCladeStrokeOpacitynumber or numeric string (typically 0..1)0.7
collapsedCladeStrokeWidthnumber or numeric string1
collapsedCladeTypefaceKeystringn/a
collapsedCladeTypefaceStylestringn/a
dataTableOpentrue | falsefalse
dataTablePinnedtrue | falsefalse
defaultThemeBuilt-in or user theme nameArtic
elbowRadiusnumber or numeric string2
tipLabelFontSizenumber (6..48, step 1)11
introAnimation'x-then-y' | 'y-then-x' | 'simultaneous' | 'from-bottom' | 'from-top' | 'none'x-then-y
tipLabelColorCSS color string#4b4b49
legend2Position'right' | 'below'right
legend3Position'right' | 'below'right
legend4Position'right' | 'below'right
legendAnnotation2stringn/a
legendAnnotation3stringn/a
legendAnnotation4stringn/a
legendFontSizenumber or numeric string11
legendSpacingnumber (0..50, step 1) or numeric string0
legendHeightPctnumber or numeric string100
legendHeightPct2number or numeric string50
legendHeightPct3number or numeric string50
legendHeightPct4number or numeric string50
legendDecimalPlacesinteger >= 0, or null/omitted for autonull (auto)
legendDecimalPlaces2integer >= 0, or null/omitted for autonull (auto)
legendDecimalPlaces3integer >= 0, or null/omitted for autonull (auto)
legendDecimalPlaces4integer >= 0, or null/omitted for autonull (auto)
legendPaddingnumber or numeric string12
legendTextColorCSS color string#4b4b49
legendTypefaceKeystringn/a
legendTypefaceStylestringn/a
nodeBarsColorCSS color string#333231
nodeBarsEnabled'off' | 'on'off
nodeBarsFillOpacitynumber or numeric string (typically 0..1)0.22
nodeBarsLine'off' | 'mean' | 'median'off
nodeBarsRange'off' | 'on'off
nodeBarsStrokeOpacitynumber or numeric string (typically 0..1)0.55
nodeBarsWidthnumber or numeric string6
nodeShapeHaloSizenumber or numeric string1
nodeHoverFillColorCSS color string#f5a700
nodeHoverFillOpacitynumber or numeric string (typically 0..1)0.5
nodeHoverGrowthFactornumber or numeric string2.5
nodeHoverMinSizenumber or numeric string6
nodeHoverStrokeColorCSS color string#f5a700
nodeHoverStrokeOpacitynumber or numeric string (typically 0..1)0
nodeHoverStrokeWidthnumber or numeric string0.5
nodeLabelAnnotationstringn/a
nodeLabelColorCSS color string#aaaaaa
nodeLabelDecimalPlacesinteger >= 0, or null/omitted for autonull (auto)
nodeLabelFontSizenumber (6..48, step 1)9
nodeLabelPosition'right' | 'above-left' | 'below-left'right
nodeLabelSpacingnumber or numeric string4
nodeLabelTypefaceKeystringn/a
nodeLabelTypefaceStylestringn/a
nodeShapeBgColorCSS color string#ebe8e2
nodeShapeColorCSS color string#4b4b49
nodeShapeSizenumber (0..30, step 1)3
paddingBottomnumber (0..100, step 1)20
paddingLeftnumber (0..100, step 1)20
paddingRightnumber (0..100, step 1)20
paddingTopnumber (0..100, step 1)20
paintColourCSS color string#ff8800
paletteOpentrue | falsefalse
palettePinnedtrue | falsefalse
rootStemPctnumber (0..20, step 1)1
rootStubLengthnumber or numeric string10
rttAspectRatio'fit' | '1:1' | '4:3' | '3:2' | '16:9'fit
rttAxisColorCSS color string#4b4b49
rttAxisFontSizenumber or numeric string9
rttAxisLineWidthnumber or numeric string1
rttAxisTypefaceKeystringn/a
rttAxisTypefaceStylestringn/a
rttDateFormatstringyyyy-MM-dd
rttGridLines'both' | 'horizontal' | 'vertical' | 'off'off
rttMajorInterval'auto' | 'millennia' | 'centuries' | 'decades' | 'years' | 'quarters' | 'months' | 'weeks' | 'days'auto
rttMajorLabelFormat'off' | 'partial' | 'component' | 'full'partial
rttMinorInterval'off' | same options as rttMajorIntervaloff
rttMinorLabelFormat'off' | 'partial' | 'component' | 'full'off
rttOpentrue | falsefalse
rttPinnedtrue | falsefalse
rttRegressionColorCSS color string#807e7c
rttRegressionStyle'dash' | 'bigdash' | 'solid'bigdash
rttRegressionWidthnumber or numeric string1.5
rttResidBandColorCSS color string#807e7c
rttResidBandFillColorCSS color string#807e7c
rttResidBandFillOpacitynumber or numeric string (typically 0..1)0.1
rttResidBandShow'off' | 'residual' | 'ci'residual
rttResidBandStyle'dash' | 'dot' | 'solid'dash
rttResidBandWidthnumber or numeric string0.5
rttStatsBgColorCSS color string#bfbcb9
rttStatsFontSizenumber or numeric string11
rttStatsTextColorCSS color string#4b4b49
rttXOrigin'data' | 'root' | 'interval'root
selectedLabelStyle'normal' | 'bold' | 'italic' | 'bold italic'bold
selectedNodeFillColorCSS color string#831100
selectedNodeFillOpacitynumber or numeric string (typically 0..1)0.5
selectedNodeGrowthFactornumber or numeric string1
selectedNodeMinSizenumber or numeric string5
selectedNodeStrokeColorCSS color string#5c0700
selectedNodeStrokeOpacitynumber or numeric string (typically 0..1)0.5
selectedNodeStrokeWidthnumber or numeric string0.5
selectedThemeBuilt-in or user theme nameArtic
selectedTipFillColorCSS color string#004d65
selectedTipFillOpacitynumber or numeric string (typically 0..1)0.5
selectedTipGrowthFactornumber or numeric string1
selectedTipMinSizenumber or numeric string5
selectedTipStrokeColorCSS color string#00364a
selectedTipStrokeOpacitynumber or numeric string (typically 0..1)0.5
selectedTipStrokeWidthnumber or numeric string1
tipShapeHaloSizenumber or numeric string1
tipHoverFillColorCSS color string#f5a700
tipHoverFillOpacitynumber or numeric string (typically 0..1)0.5
tipHoverGrowthFactornumber or numeric string2.5
tipHoverMinSizenumber or numeric string6
tipHoverStrokeColorCSS color string#f5a700
tipHoverStrokeOpacitynumber or numeric string (typically 0..1)0
tipHoverStrokeWidthnumber or numeric string0.5
tipLabelAlign'off' | 'aligned' | 'dots' | 'dashed' | 'solid'off
tipLabelDecimalPlacesinteger >= 0, or null/omitted for autonull (auto)
tipLabelShape'off' | 'square' | 'circle' | 'block'off
tipLabelShapeColorCSS color string#aaaaaa
tipLabelShapeExtraColourBysarray["user_colour","user_colour","user_colour","user_colour","user_colour","user_colour","user_colour","user_colour","user_colour"]
tipLabelShapeMarginLeftstring2
tipLabelShapesExtraarray["off","off","off","off","off","off","off","off","off"]
tipLabelShapeSizenumber or numeric string50
tipLabelShapeSpacingnumber or numeric string3
tipLabelShow'off' | 'name' | name
tipLabelSpacingnumber (0..20, step 1)3
tipLabelsExtraarray of 3 values ('off' | 'name' | )['off','off','off']
tipLabelsExtraLayoutsarray of 3 values ('append' | 'align' | 'join-space' | 'join-pipe' | 'join-slash' | 'join-underscore' | 'join-dash')['append','append','append']
tipShapeBgColorCSS color string#4b4b49
tipShapeColorCSS color string#ebe8e2
tipShapeSizenumber (0..30, step 1)3
typefacestringMonospace
typefaceStyle'Regular' | 'Bold' | 'Italic' | 'Bold Italic'Regular

Notes

  • Defaults come from DEFAULT_SETTINGS and DEFAULT_THEME in code.
  • Decimal-place keys (tipLabelDecimalPlaces, nodeLabelDecimalPlaces, branchLabelDecimalPlaces) default to auto when null/omitted.
  • Some keys accept annotation names from loaded tree metadata (for example tipLabelShow, nodeLabelAnnotation, branchLabelAnnotation).