Series is an array of arrays containing numbers or strings. It is used to store data
1 2 3 4 5 6 7 8 910111213141516
{"$id":"core/primitive/1d-data-series","$schema":"http://json-schema.org/draft-07/schema#","title":"1 dimension data series schema","type":"array","items":{"type":"array","minItems":1,"items":{"type":["number","string"]}}}
{"$id":"core/primitive/3d-lattice","$schema":"http://json-schema.org/draft-07/schema#","title":"3 dimensional lattice schema","type":"object","properties":{"a":{"description":"length of the first lattice vector","type":"number"},"b":{"description":"length of the second lattice vector","type":"number"},"c":{"description":"length of the third lattice vector","type":"number"},"alpha":{"description":"angle between first and second lattice vector","type":"number"},"beta":{"description":"angle between second and third lattice vector","type":"number"},"gamma":{"description":"angle between first and third lattice vector","type":"number"}},"required":["a","b","c","alpha","beta","gamma"]}
Used for plotting. It has a label to describe the type of data on the axis and units to describe the units of the data.
1 2 3 4 5 6 7 8 910111213141516171819
{"$id":"core/primitive/axis","$schema":"http://json-schema.org/draft-07/schema#","title":"axis schema","type":"object","properties":{"label":{"description":"label of an axis object","type":"string"},"units":{"description":"units for an axis","type":"string"}},"required":["label"]}
{"$id":"core/abstract/2d-data","$schema":"http://json-schema.org/draft-07/schema#","title":"2 dimension data schema","type":"object","properties":{"xDataArray":{"description":"array containing values of x Axis","type":"array"},"yDataSeries":{"$ref":"../primitive/1d_data_series.json"}},"required":["xDataArray","yDataSeries"]}
{"$id":"core/abstract/2d-plot","$schema":"http://json-schema.org/draft-07/schema#","title":"2 dimension plot schema","type":"object","allOf":[{"$ref":"2d_data.json"}],"properties":{"xAxis":{"description":"x Axis object","$ref":"../primitive/axis.json"},"yAxis":{"description":"y Axis object","$ref":"../primitive/axis.json"},"legend":{"description":"Legend of y Axis data series","minItems":1,"type":"array"}},"required":["xAxis","yAxis"]}