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.cartesian();
3
4
var series = chart.column([
5
{x: "January", value: 1},
6
{x: "February", value: 5},
7
{x: "March", value: 1},
8
{x: "April", value: 9},
9
{x: "May", value: 4}
10
]);
11
12
chart.container("container");
13
chart.draw();
14
15
// Transforms to pixel coordinates.
16
series.transformY(2, 0.5);
17
// Returns 655.6
18
});