$(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: [[1049155200000,8.42798],[1049241600000,8.41026],[1049328000000,8.33063],[1049414400000,8.35562],[1049500800000,8.35562],[1049587200000,8.35562],[1049673600000,8.35562],[1049760000000,8.27437],[1049846400000,8.30163],[1049932800000,8.35273],[1050019200000,8.36897],[1050105600000,8.36897],[1050192000000,8.36897],[1050278400000,8.38892],[1050364800000,8.38878],[1050451200000,8.38878],[1050537600000,8.40471],[1050624000000,8.42073],[1050710400000,8.42073],[1050796800000,8.42073],[1050883200000,8.42073],[1050969600000,8.40658],[1051056000000,8.40658],[1051142400000,8.41718],[1051228800000,8.46511],[1051315200000,8.46511],[1051401600000,8.46511],[1051488000000,8.46511],[1051574400000,8.46511],[1051660800000,8.51769]], 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: [[1049155200000, 8.427980],[1049155200000, 8.427980],[1049241600000, 8.410260],[1049328000000, 8.330630],[1049414400000, 8.355620],[1049500800000, 8.355620],[1049587200000, 8.355620],[1049673600000, 8.355620],[1049760000000, 8.274370],[1049846400000, 8.301630],[1049932800000, 8.352730],[1050019200000, 8.368970],[1050105600000, 8.368970],[1050192000000, 8.368970],[1050278400000, 8.388920],[1050364800000, 8.388780],[1050451200000, 8.388780],[1050537600000, 8.404710],[1050624000000, 8.420730],[1050710400000, 8.420730],[1050796800000, 8.420730],[1050883200000, 8.420730],[1050969600000, 8.406580],[1051056000000, 8.406580],[1051142400000, 8.417180],[1051228800000, 8.465110],[1051315200000, 8.465110],[1051401600000, 8.465110],[1051488000000, 8.465110],[1051574400000, 8.465110],[1051660800000, 8.517690]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });