$(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: [[1359676800000,1.45669],[1359763200000,1.46828],[1359849600000,1.46828],[1359936000000,1.46828],[1360022400000,1.45838],[1360108800000,1.45942],[1360195200000,1.45549],[1360281600000,1.45626],[1360368000000,1.44633],[1360454400000,1.44633],[1360540800000,1.44633],[1360627200000,1.45043],[1360713600000,1.45404],[1360800000000,1.46175],[1360886400000,1.44722],[1360972800000,1.44035],[1361059200000,1.44035],[1361145600000,1.44035],[1361232000000,1.44083],[1361318400000,1.43857],[1361404800000,1.44287],[1361491200000,1.40988],[1361577600000,1.41149],[1361664000000,1.41149],[1361750400000,1.41149],[1361836800000,1.42402],[1361923200000,1.40123],[1362009600000,1.40196]], 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: [[1359676800000, 1.456693],[1359676800000, 1.456693],[1359763200000, 1.468280],[1359849600000, 1.468280],[1359936000000, 1.468280],[1360022400000, 1.458379],[1360108800000, 1.459418],[1360195200000, 1.455495],[1360281600000, 1.456263],[1360368000000, 1.446332],[1360454400000, 1.446332],[1360540800000, 1.446332],[1360627200000, 1.450427],[1360713600000, 1.454040],[1360800000000, 1.461751],[1360886400000, 1.447221],[1360972800000, 1.440351],[1361059200000, 1.440351],[1361145600000, 1.440351],[1361232000000, 1.440833],[1361318400000, 1.438568],[1361404800000, 1.442873],[1361491200000, 1.409882],[1361577600000, 1.411487],[1361664000000, 1.411487],[1361750400000, 1.411487],[1361836800000, 1.424022],[1361923200000, 1.401226],[1362009600000, 1.401960]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });