Skip to content

Commit 4355d7a

Browse files
committed
update chart schema to move axis title object descriptions into inner fields
1 parent fb251ac commit 4355d7a

File tree

1 file changed

+91
-91
lines changed

1 file changed

+91
-91
lines changed

analyzer_templates/image_chart.json

Lines changed: 91 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,93 @@
11
{
2-
"description": "Extract detailed structured information from charts and diagrams.",
3-
"baseAnalyzerId": "prebuilt-imageAnalyzer",
4-
"config": {
5-
"returnDetails": false
6-
},
7-
"fieldSchema": {
8-
"name": "ChartAndDiagram",
9-
"description": "Structured information from charts and diagrams.",
10-
"fields": {
11-
"Title": {
12-
"type": "string",
13-
"method": "generate",
14-
"description": "Verbatim title of the chart."
15-
},
16-
"ChartType": {
17-
"type": "string",
18-
"method": "classify",
19-
"description": "The type of chart.",
20-
"enum": [
21-
"area",
22-
"bar",
23-
"box",
24-
"bubble",
25-
"candlestick",
26-
"funnel",
27-
"heatmap",
28-
"histogram",
29-
"line",
30-
"pie",
31-
"radar",
32-
"rings",
33-
"rose",
34-
"treemap"
35-
],
36-
"enumDescriptions": {
37-
"histogram": "Continuous values on the x-axis, which distinguishes it from bar.",
38-
"rose": "In contrast to pie charts, the sectors are of equal angles and differ in how far each sector extends from the center of the circle."
39-
}
40-
},
41-
"TopicKeywords": {
42-
"type": "array",
43-
"method": "generate",
44-
"description": "Relevant topics associated with the chart, used for tagging.",
45-
"items": {
46-
"type": "string",
47-
"method": "generate",
48-
"examples": [
49-
"Business and finance",
50-
"Arts and culture",
51-
"Education and academics"
52-
]
53-
}
54-
},
55-
"DetailedDescription": {
56-
"type": "string",
57-
"method": "generate",
58-
"description": "Detailed description of the chart or diagram, not leaving out any key information. Include numbers, trends, and other details."
59-
},
60-
"Summary": {
61-
"type": "string",
62-
"method": "generate",
63-
"description": "Detailed summary of the chart, including highlights and takeaways."
64-
},
65-
"MarkdownDataTable": {
66-
"type": "string",
67-
"method": "generate",
68-
"description": "Underlying data of the chart in tabular markdown format. Give markdown output with valid syntax and accurate numbers, and fill any uncertain values with empty cells. If not applicable, output an empty string."
69-
},
70-
"AxisTitles": {
71-
"type": "object",
72-
"method": "generate",
73-
"description": "Titles of the x and y axes.",
74-
"properties": {
75-
"xAxisTitle": {
76-
"type": "string",
77-
"method": "generate"
78-
},
79-
"yAxisTitle": {
80-
"type": "string",
81-
"method": "generate"
82-
}
83-
}
84-
},
85-
"FootnotesAndAnnotations": {
86-
"type": "string",
87-
"method": "generate",
88-
"description": "All footnotes and textual annotations in the chart or diagram."
89-
}
90-
},
91-
"definitions": {}
92-
}
2+
"description": "Extract detailed structured information from charts and diagrams.",
3+
"baseAnalyzerId": "prebuilt-imageAnalyzer",
4+
"config": {
5+
"returnDetails": false
6+
},
7+
"fieldSchema": {
8+
"name": "ChartAndDiagram",
9+
"description": "Structured information from charts and diagrams.",
10+
"fields": {
11+
"Title": {
12+
"type": "string",
13+
"method": "generate",
14+
"description": "Verbatim title of the chart."
15+
},
16+
"ChartType": {
17+
"type": "string",
18+
"method": "classify",
19+
"description": "The type of chart.",
20+
"enum": [
21+
"area",
22+
"bar",
23+
"box",
24+
"bubble",
25+
"candlestick",
26+
"funnel",
27+
"heatmap",
28+
"histogram",
29+
"line",
30+
"pie",
31+
"radar",
32+
"rings",
33+
"rose",
34+
"treemap"
35+
],
36+
"enumDescriptions": {
37+
"histogram": "Continuous values on the x-axis, which distinguishes it from bar.",
38+
"rose": "In contrast to pie charts, the sectors are of equal angles and differ in how far each sector extends from the center of the circle."
39+
}
40+
},
41+
"TopicKeywords": {
42+
"type": "array",
43+
"method": "generate",
44+
"description": "Relevant topics associated with the chart, used for tagging.",
45+
"items": {
46+
"type": "string",
47+
"method": "generate",
48+
"examples": [
49+
"Business and finance",
50+
"Arts and culture",
51+
"Education and academics"
52+
]
53+
}
54+
},
55+
"DetailedDescription": {
56+
"type": "string",
57+
"method": "generate",
58+
"description": "Detailed description of the chart or diagram, not leaving out any key information. Include numbers, trends, and other details."
59+
},
60+
"Summary": {
61+
"type": "string",
62+
"method": "generate",
63+
"description": "Detailed summary of the chart, including highlights and takeaways."
64+
},
65+
"MarkdownDataTable": {
66+
"type": "string",
67+
"method": "generate",
68+
"description": "Underlying data of the chart in tabular markdown format. Give markdown output with valid syntax and accurate numbers, and fill any uncertain values with empty cells. If not applicable, output an empty string."
69+
},
70+
"AxisTitles": {
71+
"type": "object",
72+
"method": "generate",
73+
"properties": {
74+
"xAxisTitle": {
75+
"type": "string",
76+
"method": "generate",
77+
"description": "Title of the x axis."
78+
},
79+
"yAxisTitle": {
80+
"type": "string",
81+
"method": "generate",
82+
"description": "Title of the y axis."
83+
}
84+
}
85+
},
86+
"FootnotesAndAnnotations": {
87+
"type": "string",
88+
"method": "generate",
89+
"description": "All footnotes and textual annotations in the chart or diagram."
90+
}
91+
}
92+
}
9393
}

0 commit comments

Comments
 (0)