$(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: [[1435708800000,33.0373],[1435795200000,32.885],[1435881600000,32.7347],[1435968000000,32.8384],[1436054400000,32.8384],[1436140800000,32.8384],[1436227200000,33.0643],[1436313600000,33.518],[1436400000000,33.7678],[1436486400000,33.6552],[1436572800000,34.0089],[1436659200000,34.0089],[1436745600000,34.0089],[1436832000000,34.1079],[1436918400000,34.2505],[1437004800000,34.5464],[1437091200000,34.2257],[1437177600000,34.3292],[1437264000000,34.3292],[1437350400000,34.3292],[1437436800000,34.2982],[1437523200000,34.2504],[1437609600000,34.3706],[1437696000000,34.3769],[1437782400000,34.1579],[1437868800000,34.1579],[1437955200000,34.1579],[1438041600000,34.1579],[1438128000000,34.3492],[1438214400000,34.5203],[1438300800000,33.7742]], 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: [[1435708800000, 33.037306],[1435708800000, 33.037306],[1435795200000, 32.884950],[1435881600000, 32.734685],[1435968000000, 32.838423],[1436054400000, 32.838423],[1436140800000, 32.838423],[1436227200000, 33.064265],[1436313600000, 33.517999],[1436400000000, 33.767837],[1436486400000, 33.655198],[1436572800000, 34.008860],[1436659200000, 34.008860],[1436745600000, 34.008860],[1436832000000, 34.107872],[1436918400000, 34.250515],[1437004800000, 34.546355],[1437091200000, 34.225659],[1437177600000, 34.329158],[1437264000000, 34.329158],[1437350400000, 34.329158],[1437436800000, 34.298195],[1437523200000, 34.250353],[1437609600000, 34.370646],[1437696000000, 34.376864],[1437782400000, 34.157906],[1437868800000, 34.157906],[1437955200000, 34.157906],[1438041600000, 34.157906],[1438128000000, 34.349235],[1438214400000, 34.520253],[1438300800000, 33.774179]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });