{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-excel/json-schema/microsoft-excel-microsoft-graph-workbook-chart-axis-schema.json",
  "title": "microsoft.graph.workbookChartAxis",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-excel-openapi.yml#/components/schemas/microsoft.graph.workbookChartAxis",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "workbookChartAxis",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "majorUnit": {
          "description": "Represents the interval between two major tick marks. Can be set to a numeric value or an empty string.  The returned value is always a number."
        },
        "maximum": {
          "description": "Represents the maximum value on the value axis.  Can be set to a numeric value or an empty string (for automatic axis values).  The returned value is always a number."
        },
        "minimum": {
          "description": "Represents the minimum value on the value axis. Can be set to a numeric value or an empty string (for automatic axis values).  The returned value is always a number."
        },
        "minorUnit": {
          "description": "Represents the interval between two minor tick marks. 'Can be set to a numeric value or an empty string (for automatic axis values). The returned value is always a number."
        },
        "format": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.workbookChartAxisFormat"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Represents the formatting of a chart object, which includes line and font formatting. Read-only.",
          "x-ms-navigationProperty": true
        },
        "majorGridlines": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.workbookChartGridlines"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Returns a gridlines object that represents the major gridlines for the specified axis. Read-only.",
          "x-ms-navigationProperty": true
        },
        "minorGridlines": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.workbookChartGridlines"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only.",
          "x-ms-navigationProperty": true
        },
        "title": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.workbookChartAxisTitle"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Represents the axis title. Read-only.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.workbookChartAxis",
  "$defs": {
    "ReferenceNumeric": {
      "enum": [
        "-INF",
        "INF",
        "NaN"
      ],
      "type": [
        "string",
        "null"
      ]
    },
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.workbookChartAxisFormat": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "workbookChartAxisFormat",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "font": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.workbookChartFont"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only.",
              "x-ms-navigationProperty": true
            },
            "line": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.workbookChartLineFormat"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Represents chart line formatting. Read-only.",
              "x-ms-navigationProperty": true
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.workbookChartAxisFormat"
    },
    "microsoft.graph.workbookChartAxisTitle": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "workbookChartAxisTitle",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "text": {
              "type": [
                "string",
                "null"
              ],
              "description": "Represents the axis title."
            },
            "visible": {
              "type": "boolean",
              "description": "A Boolean that specifies the visibility of an axis title."
            },
            "format": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.workbookChartAxisTitleFormat"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Represents the formatting of chart axis title. Read-only.",
              "x-ms-navigationProperty": true
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.workbookChartAxisTitle"
    },
    "microsoft.graph.workbookChartAxisTitleFormat": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "workbookChartAxisTitleFormat",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "font": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.workbookChartFont"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only.",
              "x-ms-navigationProperty": true
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.workbookChartAxisTitleFormat"
    },
    "microsoft.graph.workbookChartFont": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "workbookChartFont",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "bold": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "Indicates whether the fond is bold."
            },
            "color": {
              "type": [
                "string",
                "null"
              ],
              "description": "The HTML color code representation of the text color. For example #FF0000 represents Red."
            },
            "italic": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "Indicates whether the fond is italic."
            },
            "name": {
              "type": [
                "string",
                "null"
              ],
              "description": "The font name. For example 'Calibri'."
            },
            "size": {
              "oneOf": [
                {
                  "type": [
                    "number",
                    "null"
                  ],
                  "format": "double"
                },
                {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                {
                  "$ref": "#/$defs/ReferenceNumeric"
                }
              ],
              "description": "The size of the font. For example,  11."
            },
            "underline": {
              "type": [
                "string",
                "null"
              ],
              "description": "The type of underlining applied to the font. The possible values are: None, Single."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.workbookChartFont"
    },
    "microsoft.graph.workbookChartGridlines": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "workbookChartGridlines",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "visible": {
              "type": "boolean",
              "description": "Indicates whether the axis gridlines are visible."
            },
            "format": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.workbookChartGridlinesFormat"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Represents the formatting of chart gridlines. Read-only.",
              "x-ms-navigationProperty": true
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.workbookChartGridlines"
    },
    "microsoft.graph.workbookChartGridlinesFormat": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "workbookChartGridlinesFormat",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "line": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.workbookChartLineFormat"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Represents chart line formatting. Read-only.",
              "x-ms-navigationProperty": true
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.workbookChartGridlinesFormat"
    },
    "microsoft.graph.workbookChartLineFormat": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "workbookChartLineFormat",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "color": {
              "type": [
                "string",
                "null"
              ],
              "description": "The HTML color code that represents the color of lines in the chart."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.workbookChartLineFormat"
    }
  }
}