$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1235865600000,2.07014],[1235952000000,2.07014],[1236038400000,2.04188],[1236124800000,2.05144],[1236211200000,2.05077],[1236297600000,2.04708],[1236384000000,2.06013],[1236470400000,2.06013],[1236556800000,2.06013],[1236643200000,2.06013],[1236729600000,null],[1236816000000,2.14469],[1236902400000,2.13774],[1236988800000,2.21286],[1237075200000,2.21286],[1237161600000,2.21286],[1237248000000,2.26536],[1237334400000,2.21945],[1237420800000,2.22557],[1237507200000,2.31814],[1237593600000,2.28477],[1237680000000,2.28477],[1237766400000,2.28477],[1237852800000,2.28424],[1237939200000,2.2856],[1238025600000,2.27859],[1238112000000,2.2939],[1238198400000,2.20234],[1238284800000,2.20234],[1238371200000,2.20234],[1238457600000,2.14952]], 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: [[1235865600000, 2.070142],[1235865600000, 2.070142],[1235952000000, 2.070142],[1236038400000, 2.041878],[1236124800000, 2.051436],[1236211200000, 2.050774],[1236297600000, 2.047083],[1236384000000, 2.060126],[1236470400000, 2.060126],[1236556800000, 2.060126],[1236643200000, 2.060126],[1236816000000, 2.144694],[1236902400000, 2.137737],[1236988800000, 2.212860],[1237075200000, 2.212860],[1237161600000, 2.212860],[1237248000000, 2.265360],[1237334400000, 2.219452],[1237420800000, 2.225571],[1237507200000, 2.318139],[1237593600000, 2.284773],[1237680000000, 2.284773],[1237766400000, 2.284773],[1237852800000, 2.284240],[1237939200000, 2.285599],[1238025600000, 2.278592],[1238112000000, 2.293900],[1238198400000, 2.202343],[1238284800000, 2.202343],[1238371200000, 2.202343],[1238457600000, 2.149515]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });