Top
You are looking at an outdated 7.13.0 version of this document. Switch to the 7.14.0 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:

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

Try it:

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:

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 settings = anychart.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 settings = anychart.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:

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:

    Name Type Description
    address string Export server script URL.

    Returns:

    string - Export server script URL.

    Try it:

    twitter

    Getter for Twitter sharing settings.

    Returns:

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