@barchart/chart-lib 2.201.1 → 2.201.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,60 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "title": "JSON schema for Barchart fields for HTML5 Charts",
4
+ "definitions": {
5
+ "valueType": {
6
+ "type": "string",
7
+ "enum": ["Number", "String", "Date"],
8
+ "default": "Number"
9
+ },
10
+ "fieldCategory": {
11
+ "type": "string",
12
+ "enum": ["Common", "Study", "BalanceSheet", "IncomeStatement", "Event", "Option"],
13
+ "default": "Common"
14
+ },
15
+ "fieldFormat": {
16
+ "type": "string",
17
+ "enum": ["FromMetaData", "AsInteger", "UseMetricUnit", "AsPercent"],
18
+ "default": "FromMetaData"
19
+ },
20
+ "fieldDefinition": {
21
+ "type": "object",
22
+ "additionalProperties": false,
23
+ "properties": {
24
+ "id": {
25
+ "anyOf": [
26
+ {
27
+ "$ref": "chart.schema.json#/definitions/curveField"
28
+ },
29
+ {
30
+ "$ref": "chart.schema.json#/definitions/eventField"
31
+ }
32
+ ]
33
+ },
34
+ "type": {
35
+ "$ref": "#/definitions/valueType"
36
+ },
37
+ "category": {
38
+ "$ref": "#/definitions/fieldCategory"
39
+ },
40
+ "name": {
41
+ "type": "string",
42
+ "default": null
43
+ },
44
+ "shortName": {
45
+ "type": "string",
46
+ "default": null
47
+ },
48
+ "format": {
49
+ "$ref": "#/definitions/fieldFormat"
50
+ }
51
+ },
52
+ "required": ["id"]
53
+ }
54
+ },
55
+ "type": "array",
56
+ "minItems": 1,
57
+ "items": {
58
+ "$ref": "#/definitions/fieldDefinition"
59
+ }
60
+ }
@@ -0,0 +1,103 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "title": "JSON schema for Barchart studies for HTML5 Charts",
4
+ "definitions": {
5
+ "studyMetadata": {
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "title": {
10
+ "type": "string"
11
+ },
12
+ "overlay": {
13
+ "type": "boolean",
14
+ "default": true
15
+ },
16
+ "decimals": {
17
+ "type": "number"
18
+ },
19
+ "shiftable": {
20
+ "type": "boolean"
21
+ },
22
+ "range": {
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "properties": {
26
+ "min": {
27
+ "type": "number"
28
+ },
29
+ "max": {
30
+ "type": "number"
31
+ }
32
+ }
33
+ },
34
+ "enumerations": {
35
+ "type": "array",
36
+ "minItems": 1,
37
+ "items": {
38
+ "$ref": "#/definitions/enumeration"
39
+ }
40
+ }
41
+ },
42
+ "required": ["title"]
43
+ },
44
+ "enumeration": {
45
+ "type": "object",
46
+ "additionalProperties": false,
47
+ "properties": {
48
+ "input": {
49
+ "type": "string"
50
+ },
51
+ "values": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "string"
55
+ }
56
+ }
57
+ }
58
+ },
59
+ "studyDefaults": {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "properties": {
63
+ "curves": {
64
+ "$ref": "chart.schema.json#/definitions/curves"
65
+ },
66
+ "source": {
67
+ "$ref": "chart.schema.json#/definitions/curveField"
68
+ },
69
+ "inputs": {
70
+ "$ref": "chart.schema.json#/definitions/inputs"
71
+ },
72
+ "levels": {
73
+ "$ref": "chart.schema.json#/definitions/studyLevels"
74
+ },
75
+ "bands": {
76
+ "$ref": "chart.schema.json#/definitions/studyBands"
77
+ }
78
+ },
79
+ "required": ["curves"]
80
+ },
81
+ "studyDefinition": {
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "properties": {
85
+ "id": {
86
+ "$ref": "chart.schema.json#/definitions/study"
87
+ },
88
+ "meta": {
89
+ "$ref": "#/definitions/studyMetadata"
90
+ },
91
+ "defaults": {
92
+ "$ref": "#/definitions/studyDefaults"
93
+ }
94
+ },
95
+ "required": ["id", "meta", "defaults"]
96
+ }
97
+ },
98
+ "type": "array",
99
+ "minItems": 1,
100
+ "items": {
101
+ "$ref": "#/definitions/studyDefinition"
102
+ }
103
+ }