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.

class anychart.core.TagCloudStateSettings Improve this Doc

Extends: anychart.core.Base

Tag cloud state settings class.

Methods Overview

Coloring
fill()Fill settings.
Text Settings
fontFamily()Font family setting.
fontSize()Font size settings.
fontStyle()Font style settings.
fontVariant()Font variant settings.
fontWeight()Text font weight settings.

Methods Description

fill

Getter for the state fill.

Returns:

anychart.graphics.vector.SolidFill | string | function - The fill color.
See listing
var state = chart.normal();
var fill = state.fill();
Setter for the state fill.

Params:

NameTypeDescription
valueanychart.graphics.vector.SolidFill | string | functionColor to set.

Returns:

anychart.core.TagCloudStateSettings - Self instance for method chaining.

fontFamily

Getter for the font family of text.

Returns:

string - Font family.
See listing
var state = chart.normal();
var fontFamily = state.fontFamily();
Setter for the font family of text.

Params:

NameTypeDefaultDescription
valuestring
"Verdana, Helvetica, Arial, sans-serif"
Font family.

Returns:

anychart.core.TagCloudStateSettings - Self instance for method chaining.

fontSize

Getter for font size settings.

Returns:

number - Font size settings.
See listing
var state = chart.normal();
var fontSize = state.fontSize();
Setter for font size settings.

Params:

NameTypeDescription
valuenumber | stringValue to set.

Returns:

anychart.core.TagCloudStateSettings - Self instance for method chaining.

fontStyle

Getter for the text font style.

Returns:

anychart.graphics.vector.Text.FontStyle | string - Font style.
See listing
var state = chart.normal();
var fontStyle = state.fontStyle();
Setter for the text font style.

Params:

NameTypeDescription
valueanychart.graphics.vector.Text.FontStyle | stringValue to set.

Returns:

anychart.core.TagCloudStateSettings - Self instance for method chaining.

fontVariant

Getter for the text font variant.

Returns:

anychart.graphics.vector.Text.FontVariant | string - Font variant.
See listing
var state = chart.normal();
var fontVariant = state.fontVariant();
Setter for the text font variant.

Params:

NameTypeDescription
valueanychart.graphics.vector.Text.FontVariant | stringValue to set.

Returns:

anychart.core.TagCloudStateSettings - Self instance for method chaining.

fontWeight

Getter for the text font weight.

Returns:

string | number - Font weight.
See listing
var state = chart.normal();
var fontWeight = state.fontWeight();

Params:

NameTypeDescription
valuestring | numberValue to set.

Returns:

anychart.core.TagCloudStateSettings - Self instance for method chaining.