AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.exports Improve this Doc

The anychart.exports namespace contains export functions.

Functions Overview

clientside()Client side export configuration.
facebook()Facebook sharing settings
filename()Setter and getter for the file name for exported files.
image()Getter for dimensions for exported images and PDFs.
linkedin()LinkedIn sharing settings
pinterest()Pinterest sharing settings
server()Setter for an address export server script, which is used to export to an image or PDF.
twitter()Twitter sharing settings

Typedefs Overview

anychart.exports.ClientsideConfigurationType definition of client side configuration.

Functions Description

clientside

Getter for the client side exporting configuration.

Returns:

anychart.exports.ClientsideConfiguration - Client side export configuration.
Setter for the client side exporting configuration.

Params:

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

Returns:

anychart.core.utils.Exports - Itself for method chaining.

facebook

Getter for Facebook sharing settings.

Returns:

Object - Sharing settings.
See listing
var settings = anychart.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
fileNamestringNew file name.

Returns:

string - Returns file name.

image

Getter for dimensions for exported images and PDFs.

Returns:

Object - The image dimensions.
See listing
var dimensions = anychart.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 settings = anychart.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 settings = anychart.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.

server

Setter for an address export server script, which is used to export to an image or PDF.
See:
  • anychart.graphics.vector.Stage#saveAsPdf
  • anychart.graphics.vector.Stage#saveAsPng
  • anychart.graphics.vector.Stage#saveAsJpg
  • anychart.graphics.vector.Stage#saveAsSvg
  • Params:

    NameTypeDescription
    addressstringExport server script URL.

    Returns:

    string - Export server script URL.

    twitter

    Getter for Twitter sharing settings.

    Returns:

    Object - Sharing settings.
    See listing
    var settings = anychart.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.