コンテンツへスキップ

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)

幅 (width) 型

数値

幅 (width) 制約

最小値: この数値は1以上である必要があります。

幅 (width) デフォルト値

デフォルト値は

JSON
700

高さ (height)

チャートの高さ

高さ (height)

高さ (height) 型

数値

高さ (height) 制約

最小値: この数値は1以上である必要があります。

高さ (height) デフォルト値

デフォルト値は

JSON
500

タイトルフォントサイズ (titleFontSize)

チャートタイトルのフォントサイズ

タイトルフォントサイズ (titleFontSize)

タイトルフォントサイズ (titleFontSize) 型

数値

タイトルフォントサイズ (titleFontSize) 制約

最小値: この数値は1以上である必要があります。

タイトルフォントサイズ (titleFontSize) デフォルト値

デフォルト値は

JSON
20

タイトルパディング (titlePadding)

チャートタイトルの上下スペース

タイトルパディング (titlePadding)

タイトルパディング (titlePadding) 型

数値

タイトルパディング (titlePadding) 制約

最小値: この数値は0以上である必要があります。

タイトルパディング (titlePadding) デフォルト値

デフォルト値は

JSON
10

タイトル表示 (showTitle)

チャートタイトルを表示するかどうか

タイトル表示 (showTitle)

タイトル表示 (showTitle) 型

ブール値

タイトル表示 (showTitle) デフォルト値

デフォルト値は

JSON
true

X軸 (xAxis)

このオブジェクトには、XYチャートの軸設定が含まれています。

X軸 (xAxis)

X軸 (xAxis) 型

object (XYチャート軸設定)

X軸 (xAxis) デフォルト値

デフォルト値は

JSON
{
  "$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) デフォルト値

デフォルト値は

JSON
{
  "$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) デフォルト値

デフォルト値は

JSON
"vertical"

プロット予約スペースパーセント (plotReservedSpacePercent)

チャートのプロットが占めるスペースの最小パーセンテージ

プロット予約スペースパーセント (plotReservedSpacePercent)

プロット予約スペースパーセント (plotReservedSpacePercent) 型

数値

プロット予約スペースパーセント (plotReservedSpacePercent) 制約

最小値: この数値は30以上である必要があります。

プロット予約スペースパーセント (plotReservedSpacePercent) デフォルト値

デフォルト値は

JSON
50