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([10]);
3
chart.marker({radius: 95});
4
5
var axis = chart.axis();
6
7
// Set fill as a linear gradient.
8
axis.fill(['#EAECC6', '#2BC0E4'], 90, true, 0.6);
9
10
chart.title('Set axis fill as a linear gradient');
11
chart.container('container');
12
chart.draw();
13
});