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");
Tooltip
Tooltip is shown when a credits is hovered. It can be adjusted with alt() method.
var credits = chart.credits();
credits.alt("Custom tooltip");
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/");
Logo
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");
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;
}
Disable
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);
License
When you purchase a license to AnyChart 7 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");
To purchase a license proceed to Buy AnyChart page.