AnyChart
API Reference
Still have questions?
Contact support
Top

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.

Params:

NameTypeDescription
configurationanychart.exports.ClientsideConfigurationNew image or PDF width. Or object with options.

Returns:

anychart.core.utils.Exports - Self for the method chaining.

facebook

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:

NameTypeDescription
captionOrOptionsstring | ObjectCaption for the main link or object with options.
linkstringThe URL is attached to the publication.
namestringThe title for the attached link.
descriptionstringDescription for the attached link.
widthstringImage width.
heightstringImage height.
appIdstringFacebook application id.

Returns:

Object - Sharing settings.

filename

Setter and getter for the file name for exported files.

Params:

NameTypeDescription
namestringNew file name.

Returns:

string - File name.

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:

NameTypeDescription
widthOrOptionsstring | ObjectNew image or PDF width. Or object with options.
heightstringNew image or PDF height.

Returns:

Object - The image dimensions.

linkedin

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:

NameTypeDescription
captionOrOptionsstring | ObjectCaption for publication or object with options.
descriptionstringDescription.
widthstringImage width.
heightstringImage height.

Returns:

Object - Sharing settings.

pinterest

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:

NameTypeDescription
linkOrOptionsstring | ObjectAttached link or object with options.
descriptionstringDescription.
widthstringImage width.
heightstringImage height.

Returns:

Object - Sharing settings.

twitter

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:

NameTypeDescription
urlOrOptionsstring | ObjectTwitter sharing application export server URL or object with options.
widthstringImage width.
heightstringImage height.

Returns:

Object - Sharing settings.