$(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: [[1454284800000,36.5215],[1454371200000,36.3969],[1454457600000,37.2403],[1454544000000,37.2973],[1454630400000,37.8815],[1454716800000,37.7106],[1454803200000,37.7106],[1454889600000,37.7106],[1454976000000,37.1912],[1455062400000,37.3998],[1455148800000,37.7638],[1455235200000,37.5884],[1455321600000,37.9253],[1455408000000,37.9253],[1455494400000,37.9253],[1455580800000,38.8376],[1455667200000,38.8893],[1455753600000,38.2341],[1455840000000,38.0213],[1455926400000,38.3441],[1456012800000,38.3441],[1456099200000,38.3441],[1456185600000,38.0688],[1456272000000,38.4211],[1456358400000,37.865],[1456444800000,38.0728],[1456531200000,37.8133],[1456617600000,37.8133],[1456704000000,37.8133]], 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: [[1454284800000, 36.521518],[1454284800000, 36.521518],[1454371200000, 36.396864],[1454457600000, 37.240261],[1454544000000, 37.297270],[1454630400000, 37.881493],[1454716800000, 37.710602],[1454803200000, 37.710602],[1454889600000, 37.710602],[1454976000000, 37.191220],[1455062400000, 37.399807],[1455148800000, 37.763794],[1455235200000, 37.588441],[1455321600000, 37.925294],[1455408000000, 37.925294],[1455494400000, 37.925294],[1455580800000, 38.837582],[1455667200000, 38.889284],[1455753600000, 38.234114],[1455840000000, 38.021287],[1455926400000, 38.344147],[1456012800000, 38.344147],[1456099200000, 38.344147],[1456185600000, 38.068831],[1456272000000, 38.421095],[1456358400000, 37.865050],[1456444800000, 38.072830],[1456531200000, 37.813271],[1456617600000, 37.813271],[1456704000000, 37.813271]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });