Skip to content

Commit 4581d90

Browse files
committed
Add Vega visualization schema and language
1 parent 2ab2429 commit 4581d90

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/jsonid/registry_data.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,32 @@
978978
{"KEY": "assets", "ISTYPE": list},
979979
],
980980
),
981+
# Vega: Ref: https://vega.github.io/vega/docs/specification/
982+
registry_class.RegistryEntry(
983+
identifier="jrid:0084",
984+
name=[{"@en": "Vega visualization specification language schema"}],
985+
markers=[
986+
{"KEY": "$schema", "CONTAINS": "json-schema.org"},
987+
{"KEY": "$schema", "CONTAINS": "/schema"},
988+
{"KEY": "title", "CONTAINS": "Vega Visualization Specification Language"},
989+
{"GOTO": "definitions", "KEY": "autosize", "ISTYPE": dict},
990+
{"GOTO": "definitions", "KEY": "axis", "ISTYPE": dict},
991+
{"GOTO": "definitions", "KEY": "labelOverlap", "ISTYPE": dict},
992+
{"GOTO": "definitions", "KEY": "tickBand", "ISTYPE": dict},
993+
{"GOTO": "definitions", "KEY": "tickCount", "ISTYPE": dict},
994+
{"GOTO": "definitions", "KEY": "background", "ISTYPE": dict},
995+
],
996+
),
997+
registry_class.RegistryEntry(
998+
identifier="jrid:0085",
999+
name=[{"@en": "Vega visualization definition"}],
1000+
markers=[
1001+
{"KEY": "$schema", "CONTAINS": "/schema/vega/"},
1002+
{"KEY": "autosize", "EXISTS": None},
1003+
{"KEY": "data", "ISTYPE": list},
1004+
{"KEY": "marks", "ISTYPE": list},
1005+
],
1006+
),
9811007
]
9821008

9831009

0 commit comments

Comments
 (0)