$(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: [[1164931200000,9.88654],[1165017600000,9.9394],[1165104000000,9.9394],[1165190400000,9.9394],[1165276800000,9.98076],[1165363200000,9.98392],[1165449600000,9.92504],[1165536000000,9.93194],[1165622400000,9.8943],[1165708800000,9.8943],[1165795200000,9.8943],[1165881600000,9.84085],[1165968000000,9.91435],[1166054400000,9.95664],[1166140800000,9.92027],[1166227200000,9.87988],[1166313600000,9.87988],[1166400000000,9.87988],[1166486400000,9.84733],[1166572800000,9.89913],[1166659200000,9.94854],[1166745600000,9.90901],[1166832000000,9.92101],[1166918400000,9.92101],[1167004800000,9.92101],[1167091200000,9.92101],[1167177600000,9.92101],[1167264000000,9.90578],[1167350400000,9.91189],[1167436800000,9.90447]], 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: [[1164931200000, 9.886541],[1164931200000, 9.886541],[1165017600000, 9.939397],[1165104000000, 9.939397],[1165190400000, 9.939397],[1165276800000, 9.980762],[1165363200000, 9.983917],[1165449600000, 9.925037],[1165536000000, 9.931941],[1165622400000, 9.894303],[1165708800000, 9.894303],[1165795200000, 9.894303],[1165881600000, 9.840853],[1165968000000, 9.914349],[1166054400000, 9.956636],[1166140800000, 9.920274],[1166227200000, 9.879878],[1166313600000, 9.879878],[1166400000000, 9.879878],[1166486400000, 9.847331],[1166572800000, 9.899128],[1166659200000, 9.948545],[1166745600000, 9.909008],[1166832000000, 9.921013],[1166918400000, 9.921013],[1167004800000, 9.921013],[1167091200000, 9.921013],[1167177600000, 9.921013],[1167264000000, 9.905784],[1167350400000, 9.911890],[1167436800000, 9.904468]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });