class anychart.core.utils.Exports Improve this Doc
Composition view that concatenates two different views.
Methods Overview
Miscellaneous | |
clientside() | Client side export configuration |
facebook() | Facebook sharing settings |
filename() | Filename settings |
image() | Image dimensions |
linkedin() | LinkedIn sharing settings |
pinterest() | Pinterest sharing settings |
twitter() | Twitter sharing settings |
Methods Description
clientside
Getter for the client side export configuration.
Returns:
anychart.exports.ClientsideConfiguration - Client side export configuration.Setter for the client side export configuration.
Detailed description
Client side configuration object has 3 fields:
Path is the base URL to the location where dependencies needed for client side export to work are placed. These dependencies are: jsPDF and canvg libraries.
Enabled sets whether client side should be used or not at all.
Fallback sets whether export should use export server if client side export fails.
Path is the base URL to the location where dependencies needed for client side export to work are placed. These dependencies are: jsPDF and canvg libraries.
Enabled sets whether client side should be used or not at all.
Fallback sets whether export should use export server if client side export fails.
Params:
Name | Type | Description |
---|---|---|
configuration | anychart.exports.ClientsideConfiguration | New image or PDF width. Or object with options. |
Returns:
anychart.core.utils.Exports - Self for the method chaining.Try it:
Getter for facebook sharing settings.
Returns:
Object - Sharing settings. See listing
var exports = chart.exports(); var settings = exports.facebook();
Setter for facebook sharing settings.
Params:
Name | Type | Description |
---|---|---|
captionOrOptions | string | Object | Caption for the main link or object with options. |
link | string | The URL is attached to the publication. |
name | string | The title for the attached link. |
description | string | Description for the attached link. |
width | string | Image width. |
height | string | Image height. |
appId | string | Facebook application id. |
Returns:
Object - Sharing settings.Try it:
filename
Setter and getter for the file name for exported files.
Params:
Name | Type | Description |
---|---|---|
name | string | New file name. |
Returns:
string - File name.Try it:
image
Getter for dimensions for exported images and PDFs.
Returns:
Object - The image dimensions. See listing
var exports = chart.exports(); var image = exports.image();
Setter for dimensions for exported images and PDFs.
Params:
Name | Type | Description |
---|---|---|
widthOrOptions | string | Object | New image or PDF width. Or object with options. |
height | string | New image or PDF height. |
Returns:
Object - The image dimensions.Try it:
Getter for LinkedIn sharing settings.
Returns:
Object - Sharing settings. See listing
var exports = chart.exports(); var settings = exports.linkedin();
Setter for LinkedIn sharing settings.
Params:
Name | Type | Description |
---|---|---|
captionOrOptions | string | Object | Caption for publication or object with options. |
description | string | Description. |
width | string | Image width. |
height | string | Image height. |
Returns:
Object - Sharing settings.Try it:
Getter for Pinterest sharing settings.
Returns:
Object - Sharing settings. See listing
var exports = chart.exports(); var settings = exports.pinterest();
Setter for Pinterest sharing settings.
Params:
Name | Type | Description |
---|---|---|
linkOrOptions | string | Object | Attached link or object with options. |
description | string | Description. |
width | string | Image width. |
height | string | Image height. |
Returns:
Object - Sharing settings.Try it:
Getter for Twitter sharing settings.
Returns:
Object - Sharing settings. See listing
var exports = chart.exports(); var settings = exports.twitter();
Setter for twitter sharing settings.
Params:
Name | Type | Description |
---|---|---|
urlOrOptions | string | Object | Twitter sharing application export server URL or object with options. |
width | string | Image width. |
height | string | Image height. |
Returns:
Object - Sharing settings.Try it: