$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1372636800000,10.1887],[1372723200000,10.1887],[1372809600000,10.1887],[1372896000000,10.19],[1372982400000,10.19],[1373068800000,10.19],[1373155200000,10.19],[1373241600000,10.19],[1373328000000,10.19],[1373414400000,10.19],[1373500800000,10.19],[1373587200000,10.19],[1373673600000,10.1887],[1373760000000,10.1887],[1373846400000,10.1887],[1373932800000,10.1887],[1374019200000,10.19],[1374105600000,10.19],[1374192000000,10.19],[1374278400000,10.19],[1374364800000,10.19],[1374451200000,null],[1374537600000,10.19],[1374624000000,10.19],[1374710400000,10.1913],[1374796800000,10.1913],[1374883200000,10.1913],[1374969600000,10.1913],[1375056000000,10.1913],[1375142400000,10.1913],[1375228800000,10.1887]], 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: [[1372636800000, 10.188655],[1372636800000, 10.188655],[1372723200000, 10.188655],[1372809600000, 10.188655],[1372896000000, 10.189954],[1372982400000, 10.189954],[1373068800000, 10.189954],[1373155200000, 10.189954],[1373241600000, 10.189954],[1373328000000, 10.189954],[1373414400000, 10.189954],[1373500800000, 10.189954],[1373587200000, 10.189954],[1373673600000, 10.188655],[1373760000000, 10.188655],[1373846400000, 10.188655],[1373932800000, 10.188655],[1374019200000, 10.189954],[1374105600000, 10.189954],[1374192000000, 10.189954],[1374278400000, 10.189954],[1374364800000, 10.189954],[1374537600000, 10.189954],[1374624000000, 10.189954],[1374710400000, 10.191253],[1374796800000, 10.191253],[1374883200000, 10.191253],[1374969600000, 10.191253],[1375056000000, 10.191253],[1375142400000, 10.191253],[1375228800000, 10.188655]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });