Top

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:

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
value 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:

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:

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:

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:

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:

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:

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: