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
Copy file name to clipboardExpand all lines: docs/chart/api/export/chart_pdf_method.md
+7-12Lines changed: 7 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,18 @@
1
1
---
2
-
sidebar_label: export.pdf()
2
+
sidebar_label: pdf()
3
3
title: JavaScript Chart - pdf Method
4
4
description: You can explore the pdf method of Chart in the documentation of the DHTMLX JavaScript UI library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Suite.
5
5
---
6
6
7
-
# export.pdf()
7
+
# pdf()
8
8
9
9
### Description
10
10
11
11
@short: Exports a chart to a PDF file
12
12
13
-
### Usage
14
-
15
-
~~~js
16
-
export.pdf(config?:object):void;
17
-
~~~
18
-
19
-
### Parameters
13
+
@signature: {'pdf(config?: object): void;'}
20
14
15
+
@params:
21
16
-`config` - (optional) an object with export settings. You can specify the following settings for export to PDF:
22
17
-`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`
23
18
-`name?: string` - (optional) the name of the exported file
- `bottom?: string | number` - (optional) defines a bottom margin, accepts values labeled with units
34
29
- `format?: string` - (optional) defines a paper format. If defined, takes priority over **width** or **height** options. The ***'Letter'*** is set by default. Read more about formatting <a href="https://github.com/puppeteer/puppeteer/blob/v16.0.0/docs/api/puppeteer.paperformat.md">here</a>
35
30
36
-
### Example
37
31
38
-
~~~js {2,5-8}
32
+
@example:
39
33
// default export
40
34
chart.export.pdf();
41
35
@@ -44,7 +38,8 @@ chart.export.pdf({
44
38
url: "https://export.dhtmlx.com/chart/pdf/8.0.0",
45
39
name:"result.pdf"
46
40
});
47
-
~~~
41
+
42
+
@descr:
48
43
49
44
**Related samples**: [Chart. Export. Export to PDF/PNG](https://snippet.dhtmlx.com/4rybsjjq)
Copy file name to clipboardExpand all lines: docs/chart/api/export/chart_png_method.md
+7-13Lines changed: 7 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,23 @@
1
1
---
2
-
sidebar_label: export.png()
2
+
sidebar_label: png()
3
3
title: JavaScript Chart - png Method
4
4
description: You can explore the png method of Chart in the documentation of the DHTMLX JavaScript UI library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Suite.
5
5
---
6
6
7
-
# export.png()
7
+
# png()
8
8
9
9
### Description
10
10
11
11
@short: Exports a chart to a PNG file
12
12
13
-
### Usage
14
-
15
-
~~~js
16
-
export.png(config?:object):void;
17
-
~~~
18
-
19
-
### Parameters
13
+
@signature: {'png(config?: object): void;'}
20
14
15
+
@params:
21
16
-`config` - (optional) an object with export settings. You can specify the following settings for export to PNG:
22
17
- `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`
23
18
- `name?: string` - (optional) the name of the exported file
24
19
25
-
### Example
26
-
27
-
~~~js {2,5-8}
20
+
@example:
28
21
// default export
29
22
chart.export.png();
30
23
@@ -33,7 +26,8 @@ chart.export.png({
33
26
url: "https://export.dhtmlx.com/chart/png/8.0.0",
34
27
name: "result.png"
35
28
});
36
-
~~~
29
+
30
+
@descr:
37
31
38
32
**Related samples**: [Chart. Export. Export to PDF/PNG](https://snippet.dhtmlx.com/4rybsjjq)
Copy file name to clipboardExpand all lines: docs/chart/features.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ In this section you can find out how to initialize different types of Charts, an
35
35
|[Pie 3D chart](../charts_overview/#pie-pie-3d-and-donut-chart)| Learn how to initialize Pie 3D chart ([Example](https://snippet.dhtmlx.com/xfce9pys)) |
36
36
|[Radar chart](../charts_overview/#radar-chart)| Learn how to initialize Radar chart ([Example](https://snippet.dhtmlx.com/6otf4h0t)) |
37
37
|[Treemap chart](../charts_overview/#treemap-chart)| Learn how to initialize Treemap chart ([Example 1](https://snippet.dhtmlx.com/p31wzm0b), [Example 2](https://snippet.dhtmlx.com/fmgnlue4)) |
38
-
|[Calendar heatmap chart](../charts_overview/##calendar-heatmap-chart)| Learn how to initialize Calendar heatmap chart |
38
+
|[Calendar heatmap chart](../charts_overview/#calendar-heatmap-chart)| Learn how to initialize Calendar heatmap chart |
39
39
|[Grid and Chart](https://snippet.dhtmlx.com/gdeqtev4)| Learn how to bind Chart to Grid |
description: You can explore the csv method of Grid in the documentation of the DHTMLX JavaScript UI library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Suite.
5
+
---
6
+
7
+
# csv()
8
+
9
+
### Description
10
+
11
+
@short: Exports data from a grid into a CSV file
12
+
13
+
@signature: {'csv(config?: object): string;'}
14
+
15
+
@params:
16
+
-`config` - (optional) an object with export settings. You can specify the following settings for export to CSV:
17
+
- `asFile?: boolean` - (optional) defines whether Grid should be exported to a file, *true* by default. To export Grid only as a CSV string, you need to set *asFile:false*
18
+
- `name?: string` - (optional) the name of the exported CSV file (if asFile is not set to *false*)
19
+
- `rowDelimiter?: string` - (optional) a newline ("\n") by default. A separator between rows, can be a tab - "\t", or any other value
20
+
- `columnDelimiter?: string` - (optional) a comma (",") by default. A separator between columns, can be a semicolon - ";", or any other value
21
+
22
+
@returns:
23
+
A CSV string with Grid data
24
+
25
+
@example:
26
+
// default export
27
+
grid.export.csv();
28
+
29
+
// export with config settings
30
+
grid.export.csv({
31
+
name:"grid_data", // grid data will be exported to a CSV file named "grid_data"
32
+
rowDelimiter: "\t", // the tab delimiter will be used to separate rows
33
+
columnDelimiter: ";" // the semicolon delimiter will be used to separate columns
34
+
});
35
+
36
+
37
+
@descr:
38
+
39
+
**Related samples**: [Grid. Export to xlsx and csv](https://snippet.dhtmlx.com/58oqij47)
description: You can explore the xlsx method of Grid in the documentation of the DHTMLX JavaScript UI library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Suite.
5
+
---
6
+
7
+
# xlsx()
8
+
9
+
### Description
10
+
11
+
@short: Exports data from a grid to an Excel file
12
+
13
+
@signature: {'xlsx(config?: object): string;'}
14
+
15
+
@params:
16
+
-`config` - (optional) an object with export settings. You can specify the following settings for export to EXCEL:
17
+
- `url?: string` - (optional) the link to the server side where export will be processed. By default, it is **"//export.dhtmlx.com/excel"**
18
+
- `name?: string` - (optional) the name of a ready Excel file
19
+
20
+
21
+
@example:
22
+
// default export
23
+
grid.export.xlsx();
24
+
25
+
// export with config settings
26
+
grid.export.xlsx({
27
+
name:"grid_data",
28
+
url: "//export.dhtmlx.com/excel"
29
+
});
30
+
31
+
32
+
@descr:
33
+
34
+
**Related samples**: [Grid. Export to xlsx and csv](https://snippet.dhtmlx.com/58oqij47)
0 commit comments