anychart.onDocumentReady(function() {
['Department Stores', 6371664],
['Discount Stores', 7216301],
['Men\'s/Women\'s Stores', 1486621],
['Juvenile Specialty Stores', 786622],
['All other outlets', 900000]
chart.container('container');
chart.title('ACME Corp. apparel sales through different retail channels');
chart.innerRadius('30%');
var domContainer = chart.container().container();
createButton("Facebook", domContainer);
createButton("Twitter", domContainer);
createButton("LinkedIn", domContainer);
createButton("Pinterest", domContainer);
function createButton(name, domContainer){
var imageSrc, clickCallback, topOffset;
imageSrc = 'https://static.anychart.com/images/fbicon.png';
clickCallback = chart.shareWithFacebook;
imageSrc = 'https://static.anychart.com/images/twicon.png';
clickCallback = chart.shareWithTwitter;
imageSrc = 'https://static.anychart.com/images/linkicon.png';
clickCallback = chart.shareWithLinkedIn;
imageSrc = 'https://static.anychart.com/images/pinicon.png';
clickCallback = chart.shareWithPinterest;
var button = $('<img/>');
button.click(function() {
clickCallback.call(chart);
button.attr("src", imageSrc);
.css('position', 'absolute')
.css("cursor", "pointer");
button.attr("width", "25");
button.attr("height", "25");