Enumerated values
Many config members take one of a fixed set of string values — renderer: 'bar', curve.type: 'monotoneX' — and each member's reference page lists its own. This page lists them by the TypeScript type they form. Every type here is exported from @mochart/core, so code that builds configs can name one in its own signature — function setRenderer(renderer: RendererType) — instead of indexing into a config type as SeriesConfig['renderer']. The few exported value constants (AUTO, TYPE_NUMBER, …) are on the API page.
This page is generated from the library source — the values from the constants each type is built from, the uses from the config type declarations — so it lists exactly what the shipped .d.ts accepts. Anchors are stable: link to any type as #TypeName.
ChartType
The chart family: cartesian ('xy') or pie.
- Values:
'xy','pie' - Used by:
chart.type
DataType
The data type of the category axis values.
- Values:
'string','number','date' - Used by:
categoryAxis.type
Scale
How the category axis spaces its categories.
- Values:
'ordinal','linear' - Used by:
categoryAxis.scale
AxisSide
Which side of the plot an axis is drawn on: the start (left or bottom) or the end.
- Values:
'start','end' - Used by:
categoryAxis.side,valueAxes.side
Anchor
Where a tick label is anchored relative to its tick.
- Values:
'start','end','middle' - Used by:
categoryAxis.tickLabel.anchor,valueAxes.tickLabel.anchor
ThresholdTitleSide
Which side of a threshold line its title sits on.
- Values:
'low','high' - Used by:
categoryAxis.thresholds.title.side,valueAxes.thresholds.title.side
Position
Whether the title or legend sits above or below the plot.
- Values:
'top','bottom' - Used by:
legend.position,title.position
Align
Horizontal alignment.
- Values:
'left','center','right' - Used by:
legend.align,title.align
TooltipValueAlign
Which edge of the tooltip its values are aligned to: left puts the label and value in one run of text, right floats the values to the far edge.
- Values:
'left','right' - Used by:
tooltip.valueAlign
VerticalAlign
Vertical alignment.
- Values:
'top','middle','bottom' - Used by:
title.verticalAlign
RendererType
How a series draws its values.
- Values:
'bar','line','area','none' - Used by:
series.renderer
CurveType
The interpolation curve for line and area series.
- Values:
'linear','monotoneX','monotoneY','basis','cardinal','catmullRom','natural','step','stepBefore','stepAfter' - Used by:
series.curve.type
MissingValueMode
How a line or area series treats categories with no value.
- Values:
'break','connect','base' - Used by:
series.missingValueMode
CapType
The shape of the outer end of a bar.
- Values:
'point','curve','round' - Used by:
series.cap.type,seriesStacks.outerCap.type
LabelPosition
Where a series value label sits relative to its shape.
- Values:
'inside','center','outside' - Used by:
series.label.position,series.label.aboveBase.position,series.label.belowBase.position
MarkerShape
The symbol drawn at each series value.
- Values:
'circle','cross','diamond','square','star','triangle','wye' - Used by:
series.marker.shape
MarkerSizeScale
How marker area scales with the marker size property.
- Values:
'sqrt','linear' - Used by:
series.marker.sizeScale
ColorMode
The keywords a series style color accepts in place of a CSS color, resolved against the palette.
- Values:
'series','same','seriesIndex','categoryIndex' - Used by:
series.errorBar.style.normal.strokeColor,series.errorBar.style.focused.strokeColor,series.errorBar.style.defocused.strokeColor,series.label.textStyle.normal.fillColor,series.label.textStyle.normal.strokeColor,series.label.textStyle.focused.fillColor,series.label.textStyle.focused.strokeColor,series.label.textStyle.defocused.fillColor,series.label.textStyle.defocused.strokeColor,series.shapeStyle.normal.fillColor,series.shapeStyle.normal.strokeColor,series.shapeStyle.focused.fillColor,series.shapeStyle.focused.strokeColor,series.shapeStyle.defocused.fillColor,series.shapeStyle.defocused.strokeColor,series.marker.style.normal.fillColor,series.marker.style.normal.strokeColor,series.marker.style.focused.fillColor,series.marker.style.focused.strokeColor,series.marker.style.defocused.fillColor,series.marker.style.defocused.strokeColor
ColorInterpolation
The color space a series color scale interpolates in.
- Values:
'rgb','hsl','lab','hcl' - Used by:
series.colorScale.interpolation
PatternType
The fill pattern a patterns entry draws.
- Values:
'lines','crosshatch','dots' - Used by:
patterns.type
PieLabelType
What a pie slice label shows.
- Values:
'value','percent','title','valuePercent','percentValue','titleValue','titlePercent' - Used by:
pie.label.type
PieTooltipValueType
What a pie tooltip row shows: the slice value, its percent or both, without the series title the row already carries.
- Values:
'value','percent','valuePercent','percentValue' - Used by:
pie.tooltip.valueType
DomainChange
How an axis domain change animates relative to the value change.
- Values:
'auto','combined','staged' - Used by:
animation.valueDomainChange,animation.categoryDomainChange
AnimationEasing
How an animation's progress is paced over its duration.
- Values:
'linear','sineIn','sineOut','sineInOut','quadIn','quadOut','quadInOut','cubicIn','cubicOut','cubicInOut','quintIn','quintOut','quintInOut','bounceIn','bounceOut','bounceInOut' - Used by:
animation.easing,animation.focusEasing
Auto
The 'auto' keyword, accepted by members that otherwise take a number, a format string, or another enumeration.
- Values:
'auto' - Used by:
clipIndicator.size,categoryAxis.tickLabel.anchor,categoryAxis.tickLabel.size,categoryAxis.tickLabel.format,categoryAxis.valueFormat,categoryAxis.max,categoryAxis.min,categoryAxis.tickCount,categoryAxis.title.size,legend.icon.size,pie.label.valueFormat,pie.label.percentFormat,pie.tooltip.percentFormat,pie.centerTotal.format,valueAxes.tickLabel.anchor,valueAxes.tickLabel.size,valueAxes.tickLabel.format,valueAxes.max,valueAxes.min,valueAxes.tickCount,valueAxes.title.size,series.valueFormat,series.label.format,series.label.aboveBase.position,series.label.aboveBase.offset,series.label.aboveBase.minPositionFraction,series.label.aboveBase.maxPositionFraction,series.label.belowBase.position,series.label.belowBase.offset,series.label.belowBase.minPositionFraction,series.label.belowBase.maxPositionFraction,tooltip.icon.size