Credits

Overview

Credits is a single object shown as a watermark in the right bottom corner of any chart. It consists of four elements: text, tooltip (alt), URL and picture. If you want to customize any part of credits placed in your chart, you can purchase a license at AnyChart Website.

Text

Credits text can be changed by using text() method:

var credits = chart.credits();
credits.text("Company");

Playground

Tooltip

Tooltip is shown when a credits is hovered over. It can be adjusted with alt() method.

var credits = chart.credits();
credits.alt("Custom tooltip");

Playground

URL

Credits acts as a link. By default it references to AnyChart Site. You can change it using url() method.

var credits = chart.credits();
credits.url("https://www.anychart.com/buy/");

Playground

Logo picture can be adjusted as well. Use logoScr() method to set custom image.

var credits = chart.credits();
credits.logoSrc("https://static.anychart.com/images/github.png");

Playground

Position

Credits position can be adjusted only through CSS. There are three classes you can set properties to: anychart-credits to change credits position, anychart-credits-logo to change logo position and anychart-credits-text to change credits text position.

CSS code:

.anychart-credits{
  left: 10px !important;
  width: 200px !important;
}
.anychart-credits-logo{
  right: 10px;
  left: auto !important;
}
.anychart-credits-text{
  right: 25px;
  left: auto !important;
}

Disabling

To disable credits just put this in your code, but remember: it will work only if you have a license key.

var credits = chart.credits();
credits.enabled(false);

Dashboards

If you are creating dashboards using Stage-based Dashboard Layout you can configure credits for the stage instead of a chart using the same credits() method:

// create a stage 
var stage = anychart.graphics.create("container");
// configure stage credits
var credits = stage.credits();
credits.text("Dashboard");

License

When you purchase a license to AnyChart you receive an access to your customer area and a license key. AnyChart trial is fully functional, but you are limited in the ways you can use trial version and you may not remove credits from the charts. To register your copy and enable credits removal put this in your code in the very beginning:

anychart.licenseKey("YOUR-LICENSE-KEY");

You can also use Online Builder located at AnyChart Download Page to create custom AnyChart binary files with the license key built-in.

To purchase a license proceed to Buy AnyChart page.