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: 90});
4
5
var axis = chart.axis();
6
7
var ticksSettings = axis.ticks();
8
ticksSettings.length(7);
9
ticksSettings.fill('#F8FFAE');
10
ticksSettings.type('pentagon');
11
12
// Set stroke.
13
ticksSettings.stroke({color: '#43C6AC', thickness: 2, dash: '5 5', lineCap: 'round'});
14
15
chart.title('Set stroke parameter as an object');
16
chart.container('container');
17
chart.draw();
18
});