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

namespace anychart.exports Improve this Doc

Namespace anychart.exports

Functions Overview

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

Functions Description

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

Returns:

string - Current 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.