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
// Get the radius of the rounded corners.
14
var radius = axis.cornersRounding();
15
16
chart.title('Radius for the rounding of axis corners is ' + radius);
17
chart.container('container');
18
chart.draw();
19
});