$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1404864000000,2.13505],[1404950400000,2.12488],[1405036800000,null],[1405123200000,2.13382],[1405209600000,2.13382],[1405296000000,2.13382],[1405382400000,2.13274],[1405468800000,2.13944],[1405555200000,2.13926],[1405641600000,2.12685],[1405728000000,2.11286],[1405814400000,null],[1405900800000,null],[1405987200000,2.11401],[1406073600000,2.11562],[1406160000000,2.10519],[1406246400000,2.10959],[1406332800000,2.1232],[1406419200000,2.1232],[1406505600000,2.1232],[1406592000000,2.13733],[1406678400000,2.1596],[1406764800000,2.16166]], 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, 2.135048],[1404864000000, 2.135048],[1404950400000, 2.124877],[1405123200000, 2.133820],[1405209600000, 2.133820],[1405296000000, 2.133820],[1405382400000, 2.132737],[1405468800000, 2.139439],[1405555200000, 2.139259],[1405641600000, 2.126855],[1405728000000, 2.112864],[1405987200000, 2.114012],[1406073600000, 2.115620],[1406160000000, 2.105192],[1406246400000, 2.109587],[1406332800000, 2.123204],[1406419200000, 2.123204],[1406505600000, 2.123204],[1406592000000, 2.137333],[1406678400000, 2.159602],[1406764800000, 2.161662]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });