1/**
2 * This is a sample chart export config file. It is provided as a reference on
3 * how miscelaneous items in export menu can be used and set up.
4 *
5 * You do not need to use this file. It contains default export menu options
6 * that will be shown if you do not provide any "menu" in your export config.
7 *
8 * Please refer to README.md for more information.
9 */
10
11
12/**
13 * PDF-specfic configuration
14 */
15AmCharts.exportPDF = {
16	"format": "PDF",
17	"content": [ "Saved from:", window.location.href, {
18		"image": "reference",
19		"fit": [ 523.28, 769.89 ] // fit image to A4
20	} ]
21};
22
23/**
24 * Print-specfic configuration
25 */
26AmCharts.exportPrint = {
27	"format": "PRINT",
28	"label": "Print"
29};
30
31/**
32 * Define main universal config
33 */
34AmCharts.exportCFG = {
35	"enabled": true,
36	"menu": [ {
37		"class": "export-main",
38		"label": "Export",
39		"menu": [ {
40			"label": "Download as ...",
41			"menu": [ "PNG", "JPG", "SVG", AmCharts.exportPDF ]
42		}, {
43			"label": "Save data ...",
44			"menu": [ "CSV", "XLSX", "JSON" ]
45		}, {
46			"label": "Annotate",
47			"action": "draw"
48		}, AmCharts.exportPrint ]
49	} ],
50
51	"drawing": {
52		"menu": [ {
53			"class": "export-drawing",
54			"menu": [ {
55				"label": "Add ...",
56				"menu": [ {
57					"label": "Shape ...",
58					"action": "draw.shapes"
59				}, {
60					"label": "Text",
61					"action": "text"
62				} ]
63			}, {
64				"label": "Change ...",
65				"menu": [ {
66					"label": "Mode ...",
67					"action": "draw.modes"
68				}, {
69					"label": "Color ...",
70					"action": "draw.colors"
71				}, {
72					"label": "Size ...",
73					"action": "draw.widths"
74				}, {
75					"label": "Opactiy ...",
76					"action": "draw.opacities"
77				}, "UNDO", "REDO" ]
78			}, {
79				"label": "Download as...",
80				"menu": [ "PNG", "JPG", "SVG", "PDF" ]
81			}, "PRINT", "CANCEL" ]
82		} ]
83	}
84};