$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1235865600000,0.0324032],[1235952000000,0.0324032],[1236038400000,0.0315895],[1236124800000,0.0316567],[1236211200000,0.03118],[1236297600000,0.0310219],[1236384000000,0.0307951],[1236470400000,0.0307951],[1236556800000,0.0307951],[1236643200000,0.0307951],[1236729600000,null],[1236816000000,0.032789],[1236902400000,0.0325629],[1236988800000,0.0333776],[1237075200000,0.0333776],[1237161600000,0.0333776],[1237248000000,0.0339808],[1237334400000,0.0332533],[1237420800000,0.0335104],[1237507200000,0.0352652],[1237593600000,0.0349669],[1237680000000,0.0349669],[1237766400000,0.0349669],[1237852800000,0.0343241],[1237939200000,0.03457],[1238025600000,0.0346092],[1238112000000,0.0346933],[1238198400000,0.0336339],[1238284800000,0.0336339],[1238371200000,0.0336339],[1238457600000,0.032913]], 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, 0.032403],[1235865600000, 0.032403],[1235952000000, 0.032403],[1236038400000, 0.031589],[1236124800000, 0.031657],[1236211200000, 0.031180],[1236297600000, 0.031022],[1236384000000, 0.030795],[1236470400000, 0.030795],[1236556800000, 0.030795],[1236643200000, 0.030795],[1236816000000, 0.032789],[1236902400000, 0.032563],[1236988800000, 0.033378],[1237075200000, 0.033378],[1237161600000, 0.033378],[1237248000000, 0.033981],[1237334400000, 0.033253],[1237420800000, 0.033510],[1237507200000, 0.035265],[1237593600000, 0.034967],[1237680000000, 0.034967],[1237766400000, 0.034967],[1237852800000, 0.034324],[1237939200000, 0.034570],[1238025600000, 0.034609],[1238112000000, 0.034693],[1238198400000, 0.033634],[1238284800000, 0.033634],[1238371200000, 0.033634],[1238457600000, 0.032913]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });