$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1404864000000,20.0533],[1404950400000,19.9562],[1405036800000,null],[1405123200000,20.0091],[1405209600000,20.0091],[1405296000000,20.0091],[1405382400000,20.024],[1405468800000,20.0268],[1405555200000,20.1132],[1405641600000,20.0672],[1405728000000,19.9209],[1405814400000,null],[1405900800000,null],[1405987200000,19.9156],[1406073600000,19.9312],[1406160000000,19.858],[1406246400000,19.8925],[1406332800000,19.9878],[1406419200000,19.9878],[1406505600000,19.9878],[1406592000000,20.1449],[1406678400000,20.3695],[1406764800000,20.3421]], 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, 20.053344],[1404864000000, 20.053344],[1404950400000, 19.956204],[1405123200000, 20.009137],[1405209600000, 20.009137],[1405296000000, 20.009137],[1405382400000, 20.023988],[1405468800000, 20.026822],[1405555200000, 20.113241],[1405641600000, 20.067203],[1405728000000, 19.920870],[1405987200000, 19.915594],[1406073600000, 19.931201],[1406160000000, 19.858042],[1406246400000, 19.892489],[1406332800000, 19.987841],[1406419200000, 19.987841],[1406505600000, 19.987841],[1406592000000, 20.144937],[1406678400000, 20.369451],[1406764800000, 20.342101]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });