$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс SGD, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс SGD', data: [[1243814400000,5.27792],[1243900800000,5.2907],[1243987200000,5.29163],[1244073600000,5.28371],[1244160000000,5.25944],[1244246400000,5.2564],[1244332800000,5.2564],[1244419200000,5.2564],[1244505600000,5.2564],[1244592000000,5.21832],[1244678400000,5.25262],[1244764800000,5.23789],[1244851200000,5.24093],[1244937600000,5.24093],[1245024000000,5.24093],[1245110400000,5.22129],[1245196800000,5.22524],[1245283200000,5.22118],[1245369600000,5.22542],[1245456000000,5.23416],[1245542400000,5.23416],[1245628800000,5.23416],[1245715200000,5.21735],[1245801600000,5.22278],[1245888000000,5.24239],[1245974400000,5.22921],[1246060800000,5.24846],[1246147200000,5.24846],[1246233600000,5.24846],[1246320000000,5.24846]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1243814400000, 5.277917],[1243814400000, 5.277917],[1243900800000, 5.290702],[1243987200000, 5.291628],[1244073600000, 5.283710],[1244160000000, 5.259439],[1244246400000, 5.256401],[1244332800000, 5.256401],[1244419200000, 5.256401],[1244505600000, 5.256401],[1244592000000, 5.218322],[1244678400000, 5.252617],[1244764800000, 5.237893],[1244851200000, 5.240931],[1244937600000, 5.240931],[1245024000000, 5.240931],[1245110400000, 5.221292],[1245196800000, 5.225243],[1245283200000, 5.221180],[1245369600000, 5.225419],[1245456000000, 5.234155],[1245542400000, 5.234155],[1245628800000, 5.234155],[1245715200000, 5.217351],[1245801600000, 5.222776],[1245888000000, 5.242394],[1245974400000, 5.229214],[1246060800000, 5.248461],[1246147200000, 5.248461],[1246233600000, 5.248461],[1246320000000, 5.248461]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });