$(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: [[1070236800000,9.17401],[1070323200000,9.20105],[1070409600000,9.17593],[1070496000000,9.21958],[1070582400000,9.1793],[1070668800000,9.1793],[1070755200000,9.1793],[1070841600000,9.1793],[1070928000000,9.24981],[1071014400000,9.29262],[1071100800000,9.29059],[1071187200000,9.31723],[1071273600000,9.31723],[1071360000000,9.31723],[1071446400000,9.31723],[1071532800000,9.29815],[1071619200000,9.35682],[1071705600000,9.35682],[1071792000000,9.41941],[1071878400000,9.41941],[1071964800000,9.41941],[1072051200000,9.41941],[1072137600000,9.39795],[1072224000000,9.40487],[1072310400000,9.42614],[1072396800000,9.42614],[1072483200000,9.42614],[1072569600000,9.42614],[1072656000000,9.42614],[1072742400000,9.46568],[1072828800000,9.55404]], 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: [[1070236800000, 9.174010],[1070236800000, 9.174010],[1070323200000, 9.201050],[1070409600000, 9.175930],[1070496000000, 9.219580],[1070582400000, 9.179300],[1070668800000, 9.179300],[1070755200000, 9.179300],[1070841600000, 9.179300],[1070928000000, 9.249810],[1071014400000, 9.292620],[1071100800000, 9.290590],[1071187200000, 9.317230],[1071273600000, 9.317230],[1071360000000, 9.317230],[1071446400000, 9.317230],[1071532800000, 9.298150],[1071619200000, 9.356820],[1071705600000, 9.356820],[1071792000000, 9.419410],[1071878400000, 9.419410],[1071964800000, 9.419410],[1072051200000, 9.419410],[1072137600000, 9.397950],[1072224000000, 9.404870],[1072310400000, 9.426140],[1072396800000, 9.426140],[1072483200000, 9.426140],[1072569600000, 9.426140],[1072656000000, 9.426140],[1072742400000, 9.465680],[1072828800000, 9.554040]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });