HTMLcopy
1
<div id="container"></div>
CSScopy
6
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
JavaScriptcopy
x
1
anychart.onDocumentReady(function () {
2
var chart = anychart.gauges.circular();
3
chart.axis();
4
5
// Get cap.
6
var cap = chart.cap();
7
8
cap.enabled(true);
9
cap.fill('#1976d2');
10
11
chart.title('Get and modify cap');
12
chart.container('container');
13
chart.draw();
14
});