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([25]);
3
chart.marker({radius: 95});
4
5
var axis = chart.axis();
6
axis.sweepAngle(180);
7
axis.startAngle(-90);
8
axis.scale().minimum(0);
9
axis.scale().maximum(40);
10
axis.width(8);
11
axis.ticks(false);
12
13
// Set the rounding of corners.
14
axis.cornersRounding('51%');
15
16
chart.title('Set radius for the rounding of axis corners');
17
chart.container('container');
18
chart.draw();
19
});