You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`config` - (optional) an object with export settings. You can specify the following settings for export to PDF:
15
-
-`url?: string` - (optional) the url of the service that executes export and returns an exported file. This setting is optional, you should use it only if you need to specify the path to your local export service. The default value is `https://export.dhtmlx.com/chart/pdf/8.0.0`
18
+
-`url?: string` - (optional) the url of the service that executes export and returns an exported file. This setting is optional, you should use it only if you need to specify the path to your local export service. The default value is `https://export.dhtmlx.com/chart/pdf/9.3.0`
16
19
-`name?: string` - (optional) the name of the exported file
17
20
-`theme?: string` - (optional) the exported theme, "light" by default. For custom or overridden themes, enable the `exportStyles` option
18
21
-`exportStyles?: boolean | string[]` - (optional) defines the styles that will be sent to the export service when exporting Chart. Use *false* to prevent all styles from being sent to the export service
@@ -45,13 +48,19 @@ description: You can explore the pdf method of Chart in the documentation of the
45
48
46
49
@example:
47
50
// default export
48
-
chart.export.pdf();
51
+
chart.export.pdf()
52
+
.then(() => console.log("success"))
53
+
.catch(() => console.log("failure"))
54
+
.finally(() => console.log("finished"));
49
55
50
56
// export with config settings
51
57
chart.export.pdf({
52
-
url: "https://export.dhtmlx.com/chart/pdf/8.0.0",
53
-
name:"result.pdf"
54
-
});
58
+
url: "https://export.dhtmlx.com/chart/pdf/9.3.0",
59
+
name: "result.pdf"
60
+
})
61
+
.then(() => console.log("success"))
62
+
.catch(() => console.log("failure"))
63
+
.finally(() => console.log("finished"));
55
64
56
65
@descr:
57
66
@@ -75,11 +84,13 @@ It is necessary to set sufficient margin for correct display of `headerTemplate`
75
84
| "A5" | (5.83in x 8.27in) |
76
85
| "A6" | (4.13in x 5.83in) |
77
86
78
-
**Related samples**: [Chart. Export. Export to PDF/PNG](https://snippet.dhtmlx.com/4rybsjjq)
87
+
**Related samples**: [Chart. Export to PDF/PNG](https://snippet.dhtmlx.com/4rybsjjq)
-`config` - (optional) an object with export settings. You can specify the following settings for export to PNG:
15
-
-`url?: string` - (optional) the url of the service that executes export and returns an exported file. This setting is optional, you should use it only if you need to specify the path to your local export service. The default value is `https://export.dhtmlx.com/chart/png/8.0.0`
18
+
-`url?: string` - (optional) the url of the service that executes export and returns an exported file. This setting is optional, you should use it only if you need to specify the path to your local export service. The default value is `https://export.dhtmlx.com/chart/png/9.3.0`
16
19
-`name?: string` - (optional) the name of the exported file
17
20
-`theme?: string` - (optional) the exported theme, "light" by default. For custom or overridden themes, enable the `exportStyles` option
18
21
-`exportStyles?: boolean | string[]` - (optional) defines the styles that will be sent to the export service when exporting Chart. Use *false* to prevent all styles from being sent to the export service
@@ -21,22 +24,29 @@ description: You can explore the png method of Chart in the documentation of the
21
24
22
25
@example:
23
26
// default export
24
-
chart.export.png();
27
+
chart.export.png()
28
+
.then(() => console.log("success"))
29
+
.catch(() => console.log("failure"))
30
+
.finally(() => console.log("finished"));
25
31
26
32
// export with config settings
27
33
chart.export.png({
28
-
url: "https://export.dhtmlx.com/chart/png/8.0.0",
34
+
url: "https://export.dhtmlx.com/chart/png/9.3.0",
29
35
name: "result.png"
30
-
});
36
+
})
37
+
.then(() => console.log("success"))
38
+
.catch(() => console.log("failure"))
39
+
.finally(() => console.log("finished"));
31
40
32
41
@descr:
33
42
34
-
**Related samples**: [Chart. Export. Export to PDF/PNG](https://snippet.dhtmlx.com/4rybsjjq)
43
+
**Related samples**: [Chart. Export to PDF/PNG](https://snippet.dhtmlx.com/4rybsjjq)
|[Exporting Chart to a PDF or PNG file](category/export-methods.md)| Learn how to export Chart to PDF or PNG formats ([Example](https://snippet.dhtmlx.com/4rybsjjq)) |
124
+
|[Exporting Chart to a PDF or PNG file](../usage/#exporting-data)| Learn how to export Chart to PDF or PNG formats ([Example](https://snippet.dhtmlx.com/4rybsjjq)) |
125
125
126
126
## How to work with Chart events
127
127
@@ -150,7 +150,7 @@ In this section you will learn about common functionality of the library which c
0 commit comments