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.linear([
3
{value: 15},
4
{value: 20},
5
{value: 25},
6
{value: 30},
7
{value: 44}
8
]);
9
chart.bar(4);
10
chart.bar(3);
11
chart.bar(2);
12
chart.bar(1);
13
chart.bar(0);
14
15
// Get tooltip.
16
var tooltip = chart.tooltip();
17
18
tooltip.fontColor('#ffd700');
19
20
chart.title('Get and modify tooltip');
21
chart.container('container');
22
chart.draw();
23
});