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.column();
3
4
var series = chart.column([
5
{x: 0, value: 4},
6
{x: 2, value: 2},
7
{x: 3, value: 7},
8
{x: 4, value: 1},
9
{x: 5, value: 10},
10
{x: 6, value: 6},
11
{x: 7, value: 8},
12
{x: 8, value: 4},
13
{x: 9, value: 6},
14
{x: 10, value: 3}
15
]);
16
series.excludePoint([0, 2, 4, 6, 9]);
17
18
// Get exclude points.
19
var points = series.getExcludedPoints();
20
21
chart.column([points[0].get('value'), points[1].get('value'), points[2].get('value'), points[3].get('value'), points[4].get('value')]);
22
chart.title('Get and use the excluded points');
23
chart.container('container');
24
chart.draw();
25
});