$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1448928000000,2.75572],[1449014400000,2.74652],[1449100800000,2.74547],[1449187200000,2.68564],[1449273600000,2.78736],[1449360000000,2.78736],[1449446400000,2.78736],[1449532800000,2.71783],[1449619200000,2.60445],[1449705600000,2.62654],[1449792000000,2.70975],[1449878400000,2.73909],[1449964800000,2.73909],[1450051200000,2.73909],[1450137600000,2.73288],[1450224000000,2.71452],[1450310400000,2.69098],[1450396800000,2.67721],[1450483200000,2.68578],[1450569600000,2.68578],[1450656000000,2.68578],[1450742400000,2.6745],[1450828800000,2.65644],[1450915200000,2.63502],[1451001600000,2.6429],[1451088000000,2.66281],[1451174400000,2.66281],[1451260800000,2.66281],[1451347200000,2.73619],[1451433600000,2.73938],[1451520000000,2.72703]], 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: [[1448928000000, 2.755717],[1448928000000, 2.755717],[1449014400000, 2.746515],[1449100800000, 2.745467],[1449187200000, 2.685641],[1449273600000, 2.787365],[1449360000000, 2.787365],[1449446400000, 2.787365],[1449532800000, 2.717832],[1449619200000, 2.604452],[1449705600000, 2.626542],[1449792000000, 2.709754],[1449878400000, 2.739089],[1449964800000, 2.739089],[1450051200000, 2.739089],[1450137600000, 2.732881],[1450224000000, 2.714517],[1450310400000, 2.690976],[1450396800000, 2.677215],[1450483200000, 2.685778],[1450569600000, 2.685778],[1450656000000, 2.685778],[1450742400000, 2.674502],[1450828800000, 2.656441],[1450915200000, 2.635021],[1451001600000, 2.642895],[1451088000000, 2.662806],[1451174400000, 2.662806],[1451260800000, 2.662806],[1451347200000, 2.736188],[1451433600000, 2.739378],[1451520000000, 2.727031]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });