$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1235865600000,6.56012],[1235952000000,6.56012],[1236038400000,6.54934],[1236124800000,6.5517],[1236211200000,6.53995],[1236297600000,6.54748],[1236384000000,6.65892],[1236470400000,6.65892],[1236556800000,6.65892],[1236643200000,6.65892],[1236729600000,null],[1236816000000,6.66479],[1236902400000,6.46446],[1236988800000,6.4693],[1237075200000,6.4693],[1237161600000,6.4693],[1237248000000,6.51212],[1237334400000,6.50182],[1237420800000,6.59412],[1237507200000,6.84216],[1237593600000,6.82279],[1237680000000,6.82279],[1237766400000,6.82279],[1237852800000,6.82286],[1237939200000,6.81233],[1238025600000,6.82231],[1238112000000,6.86322],[1238198400000,6.73984],[1238284800000,6.73984],[1238371200000,6.73984],[1238457600000,6.70137]], 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, 6.560124],[1235865600000, 6.560124],[1235952000000, 6.560124],[1236038400000, 6.549342],[1236124800000, 6.551700],[1236211200000, 6.539947],[1236297600000, 6.547477],[1236384000000, 6.658919],[1236470400000, 6.658919],[1236556800000, 6.658919],[1236643200000, 6.658919],[1236816000000, 6.664785],[1236902400000, 6.464460],[1236988800000, 6.469303],[1237075200000, 6.469303],[1237161600000, 6.469303],[1237248000000, 6.512120],[1237334400000, 6.501820],[1237420800000, 6.594117],[1237507200000, 6.842164],[1237593600000, 6.822791],[1237680000000, 6.822791],[1237766400000, 6.822791],[1237852800000, 6.822861],[1237939200000, 6.812334],[1238025600000, 6.822311],[1238112000000, 6.863219],[1238198400000, 6.739845],[1238284800000, 6.739845],[1238371200000, 6.739845],[1238457600000, 6.701372]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });