XYチャート設定スキーマ
https://mermaid.dokyumento.jp/schemas/config.schema.json#/$defs/XYChartConfigこのオブジェクトには、XYチャートに固有の設定が含まれています。
| 概要 | 拡張可能 | ステータス | 識別可能 | カスタムプロパティ | 追加プロパティ | アクセス制限 | 定義場所 |
|---|---|---|---|---|---|---|---|
| インスタンス化可能 | いいえ | 不明なステータス | いいえ | 禁止 | 許可 | なし | config.schema.json* |
XYChartConfig型
object (XYチャート設定)
すべて
XYChartConfigプロパティ
| プロパティ | 型 | 必須 | NULL許容 | 定義元 |
|---|---|---|---|---|
| 幅 (width) | 数値 | 必須 | NULL不可 | Mermaid設定 |
| 高さ (height) | 数値 | 必須 | NULL不可 | Mermaid設定 |
| タイトルフォントサイズ (titleFontSize) | 数値 | 必須 | NULL不可 | Mermaid設定 |
| タイトルパディング (titlePadding) | 数値 | 必須 | NULL不可 | Mermaid設定 |
| タイトル表示 (showTitle) | ブール値 | 必須 | NULL不可 | Mermaid設定 |
| X軸 (xAxis) | オブジェクト | 必須 | NULL不可 | Mermaid設定 |
| Y軸 (yAxis) | オブジェクト | 必須 | NULL不可 | Mermaid設定 |
| チャート方向 (chartOrientation) | 未指定 | 必須 | NULL不可 | Mermaid設定 |
| プロット予約スペースパーセント (plotReservedSpacePercent) | 数値 | 必須 | NULL不可 | Mermaid設定 |
幅 (width)
チャートの幅
幅 (width)
必須
型:
numberNULL不可
定義元: Mermaid設定
幅 (width) 型
数値
幅 (width) 制約
最小値: この数値は1以上である必要があります。
幅 (width) デフォルト値
デフォルト値は
700高さ (height)
チャートの高さ
高さ (height)
必須
型:
numberNULL不可
定義元: Mermaid設定
高さ (height) 型
数値
高さ (height) 制約
最小値: この数値は1以上である必要があります。
高さ (height) デフォルト値
デフォルト値は
500タイトルフォントサイズ (titleFontSize)
チャートタイトルのフォントサイズ
タイトルフォントサイズ (titleFontSize)
必須
型:
numberNULL不可
定義元: Mermaid設定
タイトルフォントサイズ (titleFontSize) 型
数値
タイトルフォントサイズ (titleFontSize) 制約
最小値: この数値は1以上である必要があります。
タイトルフォントサイズ (titleFontSize) デフォルト値
デフォルト値は
20タイトルパディング (titlePadding)
チャートタイトルの上下スペース
タイトルパディング (titlePadding)
必須
型:
numberNULL不可
定義元: Mermaid設定
タイトルパディング (titlePadding) 型
数値
タイトルパディング (titlePadding) 制約
最小値: この数値は0以上である必要があります。
タイトルパディング (titlePadding) デフォルト値
デフォルト値は
10タイトル表示 (showTitle)
チャートタイトルを表示するかどうか
タイトル表示 (showTitle)
必須
型:
booleanNULL不可
定義元: Mermaid設定
タイトル表示 (showTitle) 型
ブール値
タイトル表示 (showTitle) デフォルト値
デフォルト値は
trueX軸 (xAxis)
このオブジェクトには、XYチャートの軸設定が含まれています。
X軸 (xAxis)
X軸 (xAxis) 型
object (XYチャート軸設定)
X軸 (xAxis) デフォルト値
デフォルト値は
{
"$ref": "#/$defs/XYChartAxisConfig",
"title": "XYChart axis config",
"description": "This object contains configuration for XYChart axis config",
"type": "object",
"unevaluatedProperties": true,
"required": [
"showLabel",
"labelFontSize",
"labelPadding",
"showTitle",
"titleFontSize",
"titlePadding",
"showTick",
"tickLength",
"tickWidth",
"showAxisLine",
"axisLineWidth"
],
"properties": {
"showLabel": {
"description": "Should show the axis labels (tick text)",
"type": "boolean",
"default": true
},
"labelFontSize": {
"description": "font size of the axis labels (tick text)",
"type": "number",
"default": 14,
"minimum": 1
},
"labelPadding": {
"description": "top and bottom space from axis label (tick text)",
"type": "number",
"default": 5,
"minimum": 0
},
"showTitle": {
"description": "Should show the axis title",
"type": "boolean",
"default": true
},
"titleFontSize": {
"description": "font size of the axis title",
"type": "number",
"default": 16,
"minimum": 1
},
"titlePadding": {
"description": "top and bottom space from axis title",
"type": "number",
"default": 5,
"minimum": 0
},
"showTick": {
"description": "Should show the axis tick lines",
"type": "boolean",
"default": true
},
"tickLength": {
"description": "length of the axis tick lines",
"type": "number",
"default": 5,
"minimum": 1
},
"tickWidth": {
"description": "width of the axis tick lines",
"type": "number",
"default": 2,
"minimum": 1
},
"showAxisLine": {
"description": "Show line across the axis",
"type": "boolean",
"default": true
},
"axisLineWidth": {
"description": "Width of the axis line",
"type": "number",
"default": 2,
"minimum": 1
}
}
}Y軸 (yAxis)
このオブジェクトには、XYチャートの軸設定が含まれています。
Y軸 (yAxis)
Y軸 (yAxis) 型
object (XYチャート軸設定)
Y軸 (yAxis) デフォルト値
デフォルト値は
{
"$ref": "#/$defs/XYChartAxisConfig",
"title": "XYChart axis config",
"description": "This object contains configuration for XYChart axis config",
"type": "object",
"unevaluatedProperties": true,
"required": [
"showLabel",
"labelFontSize",
"labelPadding",
"showTitle",
"titleFontSize",
"titlePadding",
"showTick",
"tickLength",
"tickWidth",
"showAxisLine",
"axisLineWidth"
],
"properties": {
"showLabel": {
"description": "Should show the axis labels (tick text)",
"type": "boolean",
"default": true
},
"labelFontSize": {
"description": "font size of the axis labels (tick text)",
"type": "number",
"default": 14,
"minimum": 1
},
"labelPadding": {
"description": "top and bottom space from axis label (tick text)",
"type": "number",
"default": 5,
"minimum": 0
},
"showTitle": {
"description": "Should show the axis title",
"type": "boolean",
"default": true
},
"titleFontSize": {
"description": "font size of the axis title",
"type": "number",
"default": 16,
"minimum": 1
},
"titlePadding": {
"description": "top and bottom space from axis title",
"type": "number",
"default": 5,
"minimum": 0
},
"showTick": {
"description": "Should show the axis tick lines",
"type": "boolean",
"default": true
},
"tickLength": {
"description": "length of the axis tick lines",
"type": "number",
"default": 5,
"minimum": 1
},
"tickWidth": {
"description": "width of the axis tick lines",
"type": "number",
"default": 2,
"minimum": 1
},
"showAxisLine": {
"description": "Show line across the axis",
"type": "boolean",
"default": true
},
"axisLineWidth": {
"description": "Width of the axis line",
"type": "number",
"default": 2,
"minimum": 1
}
}
}チャート方向 (chartOrientation)
プロットの描画方法(水平または垂直)
チャート方向 (chartOrientation)
必須
型: 未知
NULL不可
定義元: Mermaid設定
tsType:
"vertical" | "horizontal"
チャート方向 (chartOrientation) 型
未知
チャート方向 (chartOrientation) デフォルト値
デフォルト値は
"vertical"プロット予約スペースパーセント (plotReservedSpacePercent)
チャートのプロットが占めるスペースの最小パーセンテージ
プロット予約スペースパーセント (plotReservedSpacePercent)
必須
型:
numberNULL不可
定義元: Mermaid設定
プロット予約スペースパーセント (plotReservedSpacePercent) 型
数値
プロット予約スペースパーセント (plotReservedSpacePercent) 制約
最小値: この数値は30以上である必要があります。
プロット予約スペースパーセント (plotReservedSpacePercent) デフォルト値
デフォルト値は
50