SettingsSpec
@elastic/charts • Exports
@elastic/charts / SettingsSpec
Interface: SettingsSpec
The Spec used for Chart settings
Contents
- Extends
- Properties
- allowBrushingLastHistogramBin
- animateData
- ariaDescribedBy?
- ariaDescription?
- ariaLabel?
- ariaLabelHeadingLevel
- ariaLabelledBy?
- ariaTableCaption?
- ariaUseDefaultSummary
- baseTheme?
- brushAxis?
- chartType
- customLegend?
- debug
- debugState?
- dow
- externalPointerEvents
- flatLegend?
- id
- legendAction?
- legendActionOnHover?
- legendColorPicker?
- legendLayout?
- legendMaxDepth
- legendPosition
- legendSize
- legendSort?
- legendStrategy?
- legendTitle?
- legendValues
- locale
- minBrushDelta?
- noResults?
- onAnnotationClick?
- onBrushEnd?
- onElementClick?
- onElementOut?
- onElementOver?
- onLegendItemClick?
- onLegendItemMinusClick?
- onLegendItemOut?
- onLegendItemOver?
- onLegendItemPlusClick?
- onPointerUpdate?
- onProjectionAreaChange?
- onProjectionClick?
- onRenderChange?
- onResize?
- onWillRender?
- orderOrdinalBinsBy?
- pointBuffer
- pointerUpdateDebounce?
- pointerUpdateTrigger
- rendering
- renderingSort?
resizeDebounce?- rotation
- roundHistogramBrushValues?
- showLegend
- specType
- theme?
- xDomain?
Extends
Properties
allowBrushingLastHistogramBin
allowBrushingLastHistogramBin:
boolean
Boolean to allow brushing on last bucket even when outside domain or limit to end of domain. Should apply only for histogram charts e.g. A brush selection range of [1.23, 3.6] with a domain of [1, 2, 3]
- when true returns [1.23, 3.6]
- when false returns [1.23, 3]
Default Value
true
Source
packages/charts/src/specs/settings.tsx:639
animateData
animateData:
boolean
Source
packages/charts/src/specs/settings.tsx:538
ariaDescribedBy?
ariaDescribedBy?:
string
- An DOM element ID for the chart description. If provided, it will override the ariaDescription prop.
Source
packages/charts/src/specs/settings.tsx:674
ariaDescription?
ariaDescription?:
string
A description about the chart.
Source
packages/charts/src/specs/settings.tsx:670
ariaLabel?
ariaLabel?:
string
A text to label the chart
Source
packages/charts/src/specs/settings.tsx:662
ariaLabelHeadingLevel
ariaLabelHeadingLevel:
"h1"|"h2"|"h3"|"h4"|"h5"|"h6"|"p"
User can specify the heading level for the label
Default Value
'p'
Source
packages/charts/src/specs/settings.tsx:658
ariaLabelledBy?
ariaLabelledBy?:
string
An DOM element ID for the chart label. If provided, it will override the ariaLabel prop.
Source
packages/charts/src/specs/settings.tsx:666
ariaTableCaption?
ariaTableCaption?:
string
User can provide a table description of the data
Source
packages/charts/src/specs/settings.tsx:683
ariaUseDefaultSummary
ariaUseDefaultSummary:
boolean
Renders an autogenerated summary of the chart
Default Value
true
Source
packages/charts/src/specs/settings.tsx:679
baseTheme?
baseTheme?:
Theme
Full default theme to use as base
Default Value
LIGHT_THEME
Source
packages/charts/src/specs/settings.tsx:535
brushAxis?
brushAxis?:
BrushAxis
Defines which axes are able to be brushed.
Default Value
x (BrushAxis:type) | BrushAxis.X
Source
packages/charts/src/specs/settings.tsx:609
chartType
chartType:
ChartType
Chart type define the type of chart that use this spec
Inherited from
Source
packages/charts/src/specs/spec_type.ts:31
customLegend?
customLegend?:
CustomLegend
Override the legend with a custom component.
Inherited from
Source
packages/charts/src/specs/settings.tsx:507
debug
debug:
boolean
Show debug shadow elements on chart
Source
packages/charts/src/specs/settings.tsx:548
debugState?
debugState?:
boolean
Show debug render state on ChartStatus component
Source
packages/charts/src/specs/settings.tsx:553
dow
dow:
number
Refers to the first day of the week as an index.
Expressed according to ISO 8601
where 1 is Monday, 2 is Tuesday, ..., 6 is Saturday and 7 is Sunday
Default Value
1 (i.e. Monday)
Source
packages/charts/src/specs/settings.tsx:697
externalPointerEvents
externalPointerEvents:
ExternalPointerEventsSettings
The settings for handling external events. TODO consider moving this to Tooltip spec
Source
packages/charts/src/specs/settings.tsx:544
flatLegend?
flatLegend?:
boolean
Display the legend as a flat list.
Default Value
false
Inherited from
Source
packages/charts/src/specs/settings.tsx:479
id
id:
string
unique Spec identifier
Inherited from
Source
packages/charts/src/specs/spec_type.ts:29
legendAction?
legendAction?:
LegendAction
Render slot to render action for legend
Inherited from
Source
packages/charts/src/specs/settings.tsx:493
legendActionOnHover?
legendActionOnHover?:
boolean
Display the legend action only on hover. When false, the action is always visible.