$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1231200000000,0.03915],[1231286400000,0.0384957],[1231372800000,0.0384957],[1231459200000,0.0385807],[1231545600000,0.0381584],[1231632000000,0.0381584],[1231718400000,0.0381584],[1231804800000,0.0369126],[1231891200000,0.0367686],[1231977600000,0.0365587],[1232064000000,0.0357984],[1232150400000,0.0367683],[1232236800000,null],[1232323200000,0.0367683],[1232409600000,0.0357966],[1232496000000,0.0346721],[1232582400000,0.0349311],[1232668800000,0.0353575],[1232755200000,0.0339905],[1232841600000,0.0339905],[1232928000000,0.0339905],[1233014400000,0.0350454],[1233100800000,0.035553],[1233187200000,0.0358504],[1233273600000,0.0351416],[1233360000000,0.0329956]], 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: [[1231200000000, 0.039150],[1231200000000, 0.039150],[1231286400000, 0.038496],[1231372800000, 0.038496],[1231459200000, 0.038581],[1231545600000, 0.038158],[1231632000000, 0.038158],[1231718400000, 0.038158],[1231804800000, 0.036913],[1231891200000, 0.036769],[1231977600000, 0.036559],[1232064000000, 0.035798],[1232150400000, 0.036768],[1232323200000, 0.036768],[1232409600000, 0.035797],[1232496000000, 0.034672],[1232582400000, 0.034931],[1232668800000, 0.035358],[1232755200000, 0.033990],[1232841600000, 0.033990],[1232928000000, 0.033990],[1233014400000, 0.035045],[1233100800000, 0.035553],[1233187200000, 0.035850],[1233273600000, 0.035142],[1233360000000, 0.032996]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });