AmCharts XY validateData bug

by Valentin Sarychev

HTML

<script src="https://cdn.rawgit.com/amcharts/amcharts3/master/amcharts/amcharts.js"></script>
<script src="https://cdn.rawgit.com/amcharts/amcharts3/master/amcharts/xy.js"></script>
<div id="example"></div>
<div id="chart"></div>
<button id="updateBtn">validateData</button>

CSS

#updateBtn {
    display: block;
    padding: 4px 8px;
}
#chart {
    display: inline-block;
    width: 350px;
    height: 300px;
    background: #eee;
    border: 1px solid #000;
}
#example {
    display: inline-block;
    width: 352px;
    height: 302px;
    background-image:...

JavaScript

var chart = AmCharts.makeChart(document.querySelector('#chart'), {
    type: 'xy',
    dataProvider: [{x: 1, y: 2}, {x: 2, y: 5}],
    valueAxes: [{
        position: 'bottom',
        id: 'x',
        title: 'Price'
    }, {
        position: 'left',
        id: 'y',
        title: 'Value'
    }],
    graphs: [{
        xField: 'x',
        yField: 'y',
    }],
    chartScrollbar: {},
    chartCursor: {},
    export: {
        enabled: false
    }
});
document.querySelector('#updateBtn').addEventListener('click', function() {
    chart.validateData();
});