$(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: [[1425168000000,43.0345],[1425254400000,43.0345],[1425340800000,41.4791],[1425427200000,38.2042],[1425513600000,36.4867],[1425600000000,35.385],[1425686400000,34.9534],[1425772800000,34.9534],[1425859200000,34.9534],[1425945600000,34.9534],[1426032000000,32.8486],[1426118400000,32.4685],[1426204800000,32.4067],[1426291200000,32.3525],[1426377600000,32.3525],[1426464000000,32.3525],[1426550400000,32.1785],[1426636800000,32.9351],[1426723200000,34.4137],[1426809600000,34.2724],[1426896000000,34.4711],[1426982400000,34.4711],[1427068800000,34.4711],[1427155200000,34.385],[1427241600000,34.7249],[1427328000000,35.1238],[1427414400000,35.0518],[1427500800000,35.0032],[1427587200000,35.0032],[1427673600000,35.0032],[1427760000000,34.8716]], 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: [[1425168000000, 43.034547],[1425168000000, 43.034547],[1425254400000, 43.034547],[1425340800000, 41.479143],[1425427200000, 38.204213],[1425513600000, 36.486732],[1425600000000, 35.384961],[1425686400000, 34.953440],[1425772800000, 34.953440],[1425859200000, 34.953440],[1425945600000, 34.953440],[1426032000000, 32.848568],[1426118400000, 32.468494],[1426204800000, 32.406717],[1426291200000, 32.352452],[1426377600000, 32.352452],[1426464000000, 32.352452],[1426550400000, 32.178465],[1426636800000, 32.935095],[1426723200000, 34.413686],[1426809600000, 34.272429],[1426896000000, 34.471137],[1426982400000, 34.471137],[1427068800000, 34.471137],[1427155200000, 34.384980],[1427241600000, 34.724919],[1427328000000, 35.123826],[1427414400000, 35.051769],[1427500800000, 35.003176],[1427587200000, 35.003176],[1427673600000, 35.003176],[1427760000000, 34.871627]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });