$(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: [[1096588800000,0.0266206],[1096675200000,null],[1096761600000,null],[1096848000000,0.0267546],[1096934400000,0.0264462],[1097020800000,0.0265878],[1097107200000,0.0265203],[1097193600000,0.0265134],[1097280000000,0.0265134],[1097366400000,0.0265134],[1097452800000,0.0265484],[1097539200000,0.026783],[1097625600000,0.026529],[1097712000000,0.0263407],[1097798400000,0.0265281],[1097884800000,null],[1097971200000,0.0265795],[1098057600000,0.0265795],[1098144000000,0.0267615],[1098230400000,0.026916],[1098316800000,0.0271277],[1098403200000,0.0270946],[1098489600000,0.0270913],[1098576000000,0.0270913],[1098662400000,0.0270913],[1098748800000,0.0274654],[1098835200000,0.0273784],[1098921600000,0.0274122],[1099008000000,0.0273768],[1099094400000,0.0274707],[1099180800000,0.0274707]], 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: [[1096588800000, 0.026621],[1096588800000, 0.026621],[1096848000000, 0.026755],[1096934400000, 0.026446],[1097020800000, 0.026588],[1097107200000, 0.026520],[1097193600000, 0.026513],[1097280000000, 0.026513],[1097366400000, 0.026513],[1097452800000, 0.026548],[1097539200000, 0.026783],[1097625600000, 0.026529],[1097712000000, 0.026341],[1097798400000, 0.026528],[1097971200000, 0.026579],[1098057600000, 0.026579],[1098144000000, 0.026762],[1098230400000, 0.026916],[1098316800000, 0.027128],[1098403200000, 0.027095],[1098489600000, 0.027091],[1098576000000, 0.027091],[1098662400000, 0.027091],[1098748800000, 0.027465],[1098835200000, 0.027378],[1098921600000, 0.027412],[1099008000000, 0.027377],[1099094400000, 0.027471],[1099180800000, 0.027471]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });