Skip to content

Quadrant Chart Config Schema ​

txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/QuadrantChartConfig
AbstractExtensibleStatusIdentifiableCustom PropertiesAdditional PropertiesAccess RestrictionsDefined In
Can be instantiatedNoUnknown statusNoForbiddenAllowednoneconfig.schema.json*

QuadrantChartConfig Type ​

object (Quadrant Chart Config)

all of

QuadrantChartConfig Properties ​

PropertyTypeRequiredNullableDefined by
chartWidthnumberRequiredcannot be nullMermaid Config
chartHeightnumberRequiredcannot be nullMermaid Config
titleFontSizenumberRequiredcannot be nullMermaid Config
titlePaddingnumberRequiredcannot be nullMermaid Config
quadrantPaddingnumberRequiredcannot be nullMermaid Config
xAxisLabelPaddingnumberRequiredcannot be nullMermaid Config
yAxisLabelPaddingnumberRequiredcannot be nullMermaid Config
xAxisLabelFontSizenumberRequiredcannot be nullMermaid Config
yAxisLabelFontSizenumberRequiredcannot be nullMermaid Config
quadrantLabelFontSizenumberRequiredcannot be nullMermaid Config
quadrantTextTopPaddingnumberRequiredcannot be nullMermaid Config
pointTextPaddingnumberRequiredcannot be nullMermaid Config
pointLabelFontSizenumberRequiredcannot be nullMermaid Config
pointRadiusnumberRequiredcannot be nullMermaid Config
xAxisPositionstringRequiredcannot be nullMermaid Config
yAxisPositionstringRequiredcannot be nullMermaid Config
quadrantInternalBorderStrokeWidthnumberRequiredcannot be nullMermaid Config
quadrantExternalBorderStrokeWidthnumberRequiredcannot be nullMermaid Config

chartWidth ​

图表宽度

chartWidth

chartWidth Type ​

number

chartWidth Constraints ​

minimum: the value of this number must greater than or equal to: 0

chartWidth Default Value ​

The default value is:

json
500

chartHeight ​

图表高度

chartHeight

chartHeight Type ​

number

chartHeight Constraints ​

minimum: the value of this number must greater than or equal to: 0

chartHeight Default Value ​

The default value is:

json
500

titleFontSize ​

图表标题顶部和底部填充

titleFontSize

titleFontSize Type ​

number

titleFontSize Constraints ​

minimum: the value of this number must greater than or equal to: 0

titleFontSize Default Value ​

The default value is:

json
20

titlePadding ​

象限正方形周围的填充

titlePadding

titlePadding Type ​

number

titlePadding Constraints ​

minimum: the value of this number must greater than or equal to: 0

titlePadding Default Value ​

The default value is:

json
10

quadrantPadding ​

如果象限在顶部渲染,则象限标题从顶部填充

quadrantPadding

quadrantPadding Type ​

number

quadrantPadding Constraints ​

minimum: the value of this number must greater than or equal to: 0

quadrantPadding Default Value ​

The default value is:

json
5

xAxisLabelPadding ​

x 轴标签周围的填充

xAxisLabelPadding

xAxisLabelPadding Type ​

number

xAxisLabelPadding Constraints ​

minimum: the value of this number must greater than or equal to: 0

xAxisLabelPadding Default Value ​

The default value is:

json
5

yAxisLabelPadding ​

y 轴标签周围的填充

yAxisLabelPadding

yAxisLabelPadding Type ​

number

yAxisLabelPadding Constraints ​

minimum: the value of this number must greater than or equal to: 0

yAxisLabelPadding Default Value ​

The default value is:

json
5

xAxisLabelFontSize ​

x 轴标签字体大小

xAxisLabelFontSize

xAxisLabelFontSize Type ​

number

xAxisLabelFontSize Constraints ​

minimum: the value of this number must greater than or equal to: 0

xAxisLabelFontSize Default Value ​

The default value is:

json
16

yAxisLabelFontSize ​

y 轴标签字体大小

yAxisLabelFontSize

yAxisLabelFontSize Type ​

number

yAxisLabelFontSize Constraints ​

minimum: the value of this number must greater than or equal to: 0

yAxisLabelFontSize Default Value ​

The default value is:

json
16

quadrantLabelFontSize ​

象限标题字体大小

quadrantLabelFontSize

quadrantLabelFontSize Type ​

number

quadrantLabelFontSize Constraints ​

minimum: the value of this number must greater than or equal to: 0

quadrantLabelFontSize Default Value ​

The default value is:

json
16

quadrantTextTopPadding ​

如果象限在顶部渲染,则象限标题从顶部填充

quadrantTextTopPadding

quadrantTextTopPadding Type ​

number

quadrantTextTopPadding Constraints ​

minimum: the value of this number must greater than or equal to: 0

quadrantTextTopPadding Default Value ​

The default value is:

json
5

pointTextPadding ​

点和点标签之间的填充

pointTextPadding

pointTextPadding Type ​

number

pointTextPadding Constraints ​

minimum: the value of this number must greater than or equal to: 0

pointTextPadding Default Value ​

The default value is:

json
5

pointLabelFontSize ​

点标题字体大小

pointLabelFontSize

pointLabelFontSize Type ​

number

pointLabelFontSize Constraints ​

minimum: the value of this number must greater than or equal to: 0

pointLabelFontSize Default Value ​

The default value is:

json
12

pointRadius ​

要绘制的点的半径

pointRadius

pointRadius Type ​

number

pointRadius Constraints ​

minimum: the value of this number must greater than or equal to: 0

pointRadius Default Value ​

The default value is:

json
5

xAxisPosition ​

x 轴标签的位置

xAxisPosition

xAxisPosition Type ​

string

xAxisPosition Constraints ​

enum: the value of this property must be equal to one of the following values:

ValueExplanation
"top"
"bottom"

xAxisPosition Default Value ​

The default value is:

json
"top"

yAxisPosition ​

y 轴标签的位置

yAxisPosition

yAxisPosition Type ​

string

yAxisPosition Constraints ​

enum: the value of this property must be equal to one of the following values:

ValueExplanation
"left"
"right"

yAxisPosition Default Value ​

The default value is:

json
"left"

quadrantInternalBorderStrokeWidth ​

象限内的框边缘的描边宽度

quadrantInternalBorderStrokeWidth

quadrantInternalBorderStrokeWidth Type ​

number

quadrantInternalBorderStrokeWidth Constraints ​

minimum: the value of this number must greater than or equal to: 0

quadrantInternalBorderStrokeWidth Default Value ​

The default value is:

json
1

quadrantExternalBorderStrokeWidth ​

象限外的框边缘的描边宽度

quadrantExternalBorderStrokeWidth

quadrantExternalBorderStrokeWidth Type ​

number

quadrantExternalBorderStrokeWidth Constraints ​

minimum: the value of this number must greater than or equal to: 0

quadrantExternalBorderStrokeWidth Default Value ​

The default value is:

json
2
Opens in mermaid.ai