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

Name Type Description
value anychart.graphics.vector.SolidFill | string | function Color 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:

Name Type Default Description
value string
"Verdana, Helvetica, Arial, sans-serif"
Font family.

Returns:

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

Try it:

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:

Name Type Description
value number | string Value to set.

Returns:

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

Try it:

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:

Name Type Description
value anychart.graphics.vector.Text.FontStyle | string Value to set.

Returns:

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

Try it:

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:

Name Type Description
value anychart.graphics.vector.Text.FontVariant | string Value to set.

Returns:

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

Try it:

fontWeight

Getter for the text font weight.

Returns:

string number - Font weight.
See listing
var state = chart.normal();
var fontWeight = state.fontWeight();
Setter for the text font weight. https://www.w3schools.com/cssref/pr_font_weight.asp

Params:

Name Type Description
value string | number Value to set.

Returns:

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

Try it: