$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1067644800000,6.19662],[1067731200000,6.19662],[1067817600000,6.19662],[1067904000000,6.17914],[1067990400000,6.11451],[1068076800000,6.10461],[1068163200000,6.09128],[1068249600000,6.09128],[1068336000000,6.09128],[1068422400000,6.09128],[1068508800000,6.12274],[1068595200000,6.1302],[1068681600000,6.18512],[1068768000000,6.22778],[1068854400000,6.2731],[1068940800000,6.2731],[1069027200000,6.2731],[1069113600000,6.29283],[1069200000000,6.28003],[1069286400000,6.35041],[1069372800000,6.34443],[1069459200000,6.34443],[1069545600000,6.34443],[1069632000000,6.34443],[1069718400000,6.27363],[1069804800000,6.27363],[1069891200000,6.30669],[1069977600000,6.3952],[1070064000000,6.3952],[1070150400000,6.3952]], 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: [[1067644800000, 6.196620],[1067644800000, 6.196620],[1067731200000, 6.196620],[1067817600000, 6.196620],[1067904000000, 6.179140],[1067990400000, 6.114510],[1068076800000, 6.104610],[1068163200000, 6.091280],[1068249600000, 6.091280],[1068336000000, 6.091280],[1068422400000, 6.091280],[1068508800000, 6.122740],[1068595200000, 6.130200],[1068681600000, 6.185120],[1068768000000, 6.227780],[1068854400000, 6.273100],[1068940800000, 6.273100],[1069027200000, 6.273100],[1069113600000, 6.292830],[1069200000000, 6.280030],[1069286400000, 6.350410],[1069372800000, 6.344430],[1069459200000, 6.344430],[1069545600000, 6.344430],[1069632000000, 6.344430],[1069718400000, 6.273630],[1069804800000, 6.273630],[1069891200000, 6.306690],[1069977600000, 6.395200],[1070064000000, 6.395200],[1070150400000, 6.395200]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });