AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 8.1.0 version of this document. Switch to the 8.4.0 version to see the up to date information.

class anychart.core.utils.Exports Improve this Doc

Composition view, that concatenates two different views.

Methods Overview

Miscellaneous
facebook()Facebook sharing settings
filename()Filename settings
image()Image dimensions
linkedin()LinkedIn sharing settings
pinterest()Pinterest sharing settings
twitter()Twitter sharing settings

Methods Description

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
valuestringNew 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.