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.line([
3
{x: 'January', value: 2},
4
{x: 'February', value: 5},
5
{x: 'March', value: 3},
6
{x: 'April', value: 9},
7
{x: 'May', value: 4}
8
]);
9
10
var yScale = chart.yScale();
11
yScale.softMinimum(0.6);
12
13
// Get soft minimum.
14
var softMinimum = yScale.softMinimum();
15
16
chart.title('Soft minimum is ' + softMinimum);
17
chart.container('container');
18
chart.draw();
19
});