AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.core.ui.ChartCredits Improve this Doc

Extends: anychart.core.Base

Define class Credits.
Note: Use anychart.ui#credits method to create instance of this class.
Note: You can't customize credits without a license key. See AnyChart Licensing to learn more.

Methods Overview

Specific settings
alt()Alternative text for credits.
imgAlt()Image alternative text.
logoSrc()Logo source for credits.
text()Text for credits.
url()URL for credits.
Interactivity
enabled()Credits state (enabled or disabled).

Methods Description

alt

Getter for credits alt.

Returns:

string - Credits alternative text.
Setter for credits alt.

Params:

NameTypeDescription
textstringAlternative text to set.

Returns:

anychart.core.ui.ChartCredits - Self instance for method chaining.

enabled

Getter for the credits state.

Returns:

boolean | null - Credits state.
See listing
var credits = chart.credits();
var state = credits.enabled();
Setter for the credits state.

Params:

NameTypeDescription
enabledbooleanEnabled state to set.

Returns:

anychart.core.ui.ChartCredits - Self instance for method chaining.

imgAlt

Getter for the image alternative text.

Returns:

string - Image alternative text.
See listing
var imgAlt = credits.imgAlt();
Setter for the image alternative text.

Params:

NameTypeDescription
textstringAlternative text to set.

Returns:

anychart.core.ui.ChartCredits - Self instance for method chaining.

logoSrc

Getter for credits logo source value.

Returns:

string - Credits logo source.
Setter for credits logo source value.
Note: You can't customize credits without a license key. See AnyChart Licensing to learn more.

Params:

NameTypeDescription
logoSrcstringLogo source to set.

Returns:

anychart.core.ui.ChartCredits - Self instance for method chaining.

text

Getter for credits text value.

Returns:

string - Credits text.
Setter for credits text value.

Params:

NameTypeDescription
textstringText to set.

Returns:

anychart.core.ui.ChartCredits - Self instance for method chaining.

url

Getter for the credits URL.

Returns:

string - Credits URL.
Setter for the credits URL.

Params:

NameTypeDescription
urlstringURL to set.

Returns:

anychart.core.ui.ChartCredits - Self instance for method chaining.