Skip to content
Margo v0.0.22

Goshtoso chart schemas

#

The Goshtoso Charts extension validates each goshtosochart fence against a versioned schema. The chart families are bar, line, pie/doughnut, and scatter; all require schemaVersion: 1 and a title.

Source example

yaml
schemaVersion: 1
type: bar
renderer: static
title: Weekly output
categories: [Mon, Tue, Wed]
series:
  - name: Pages
    values: [3, 5, 4]

Schema options

Every family accepts renderer: static or renderer: interactive where the target supports it. Shared styling includes a palette, custom class, and color list. Bar and line charts use categories plus numeric values; pie charts use non-negative slices; scatter charts use points or matrix values.

Bar schema

Goshtoso bar chart

  • categoriesarray*
  • renderervalue

    enum=["static","interactive"]

  • schemaVersionvalue*

    const=1

  • seriesarray*
  • titlestring*
  • typevalue*

    const="bar"

Line schema

Goshtoso line chart

  • categoriesarray*
  • renderervalue

    enum=["static","interactive"]

  • schemaVersionvalue*

    const=1

  • seriesarray*
  • titlestring*
  • typevalue*

    const="line"

Pie and doughnut schema

Goshtoso pie chart

  • renderervalue

    enum=["static","interactive"]

  • schemaVersionvalue*

    const=1

  • slicesarray*
  • titlestring*
  • typevalue*

    enum=["pie","doughnut"]

Scatter schema

Goshtoso scatter chart

  • categoriesarray*
  • renderervalue

    enum=["static","interactive"]

  • schemaVersionvalue*

    const=1

  • seriesarray*
  • titlestring*
  • typevalue*

    const="scatter"

The canonical schema sources live with the extension: