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.pareto();
3
chart.data([
4
["Nail polish", 14814],
5
["Eyebrow pencil", 13012],
6
["Rouge", 16624],
7
["Pomade", 8814],
8
["Eyeshadows", 12998],
9
["Eyeliner", 17321],
10
["Foundation", 10342],
11
["Lip gloss", 22998],
12
["Mascara", 19261]
13
]);
14
15
chart.yAxis(0);
16
chart.yAxis(1).scale().ticks().interval(10);
17
18
// Disables Y-axis.
19
chart.yAxis(0, false);
20
21
chart.title("Disable left yAxis by index");
22
chart.container("container");
23
chart.draw();
24
});