HTMLcopy
1
<button onclick="chart.shareWithPinterest()">Share with Pinterest</button>
2
<div id="container"></div>
CSScopy
9
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
7
button {
8
margin: 10px 0 0 10px;
9
}
JavaScriptcopy
x
1
var chart;
2
anychart.onDocumentReady(function () {
3
chart = anychart.line([6, 48, 6, 44, 8, 29, 9, 23, 9, 17]);
4
5
chart.width('100%').height('95%');
6
chart.title('Set Pinterest sharing settings');
7
chart.container('container');
8
chart.draw();
9
10
// Set Pinterest sharing settings.
11
anychart.exports.pinterest(
12
'https://www.anychart.com/',
13
'Statistics of visits to the site',
14
'1000',
15
'500'
16
);
17
});