$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1404864000000,15.9193],[1404950400000,15.8422],[1405036800000,null],[1405123200000,15.9083],[1405209600000,15.9083],[1405296000000,15.9083],[1405382400000,15.901],[1405468800000,15.9534],[1405555200000,15.9518],[1405641600000,15.8591],[1405728000000,15.7554],[1405814400000,null],[1405900800000,null],[1405987200000,15.7642],[1406073600000,15.7755],[1406160000000,15.6978],[1406246400000,15.731],[1406332800000,15.8334],[1406419200000,15.8334],[1406505600000,15.8334],[1406592000000,15.9377],[1406678400000,16.1031],[1406764800000,16.1191]], 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: [[1404864000000, 15.919347],[1404864000000, 15.919347],[1404950400000, 15.842233],[1405123200000, 15.908265],[1405209600000, 15.908265],[1405296000000, 15.908265],[1405382400000, 15.901049],[1405468800000, 15.953366],[1405555200000, 15.951811],[1405641600000, 15.859110],[1405728000000, 15.755416],[1405987200000, 15.764188],[1406073600000, 15.775545],[1406160000000, 15.697782],[1406246400000, 15.730980],[1406332800000, 15.833368],[1406419200000, 15.833368],[1406505600000, 15.833368],[1406592000000, 15.937667],[1406678400000, 16.103069],[1406764800000, 16.119081]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });