$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1033430400000,8.3725],[1033516800000,8.3725],[1033603200000,8.37178],[1033689600000,8.35859],[1033776000000,8.35859],[1033862400000,8.35859],[1033948800000,8.34345],[1034035200000,8.33532],[1034121600000,8.33532],[1034208000000,8.3313],[1034294400000,8.31085],[1034380800000,8.31085],[1034467200000,8.31085],[1034553600000,8.32302],[1034640000000,8.28564],[1034726400000,8.28612],[1034812800000,8.30319],[1034899200000,8.25763],[1034985600000,8.25763],[1035072000000,8.25763],[1035158400000,8.24634],[1035244800000,8.24364],[1035331200000,8.25247],[1035417600000,8.24489],[1035504000000,8.27789],[1035590400000,8.27789],[1035676800000,8.27789],[1035763200000,8.2462],[1035849600000,8.2462],[1035936000000,8.2902],[1036022400000,8.2902]], 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: [[1033430400000, 8.372500],[1033430400000, 8.372500],[1033516800000, 8.372500],[1033603200000, 8.371780],[1033689600000, 8.358590],[1033776000000, 8.358590],[1033862400000, 8.358590],[1033948800000, 8.343450],[1034035200000, 8.335320],[1034121600000, 8.335320],[1034208000000, 8.331300],[1034294400000, 8.310850],[1034380800000, 8.310850],[1034467200000, 8.310850],[1034553600000, 8.323020],[1034640000000, 8.285640],[1034726400000, 8.286120],[1034812800000, 8.303190],[1034899200000, 8.257630],[1034985600000, 8.257630],[1035072000000, 8.257630],[1035158400000, 8.246340],[1035244800000, 8.243640],[1035331200000, 8.252470],[1035417600000, 8.244890],[1035504000000, 8.277890],[1035590400000, 8.277890],[1035676800000, 8.277890],[1035763200000, 8.246200],[1035849600000, 8.246200],[1035936000000, 8.290200],[1036022400000, 8.290200]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });