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.scatter([
3
{x: 1, value: 0.2},
4
{x: 2, value: 48},
5
{x: 3, value: 4},
6
{x: 4, value: 90}
7
]);
8
9
// Set scale type.
10
chart.yScale('log');
11
12
chart.title('Set scale type');
13
chart.container('container');
14
chart.draw();
15
});