$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1028160000000,5.329],[1028246400000,5.329],[1028332800000,5.329],[1028419200000,5.329],[1028505600000,5.3291],[1028592000000,5.329],[1028678400000,5.329],[1028764800000,5.329],[1028851200000,5.329],[1028937600000,5.329],[1029024000000,5.329],[1029110400000,5.329],[1029196800000,5.329],[1029283200000,5.329],[1029369600000,5.329],[1029456000000,5.329],[1029542400000,5.329],[1029628800000,5.329],[1029715200000,5.329],[1029801600000,5.329],[1029888000000,5.3292],[1029974400000,5.3292],[1030060800000,5.3295],[1030147200000,5.3295],[1030233600000,5.3295],[1030320000000,5.3295],[1030406400000,5.3295],[1030492800000,5.329],[1030579200000,5.329],[1030665600000,5.3293],[1030752000000,5.3293]], 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: [[1028160000000, 5.329000],[1028160000000, 5.329000],[1028246400000, 5.329000],[1028332800000, 5.329000],[1028419200000, 5.329000],[1028505600000, 5.329100],[1028592000000, 5.329000],[1028678400000, 5.329000],[1028764800000, 5.329000],[1028851200000, 5.329000],[1028937600000, 5.329000],[1029024000000, 5.329000],[1029110400000, 5.329000],[1029196800000, 5.329000],[1029283200000, 5.329000],[1029369600000, 5.329000],[1029456000000, 5.329000],[1029542400000, 5.329000],[1029628800000, 5.329000],[1029715200000, 5.329000],[1029801600000, 5.329000],[1029888000000, 5.329200],[1029974400000, 5.329200],[1030060800000, 5.329500],[1030147200000, 5.329500],[1030233600000, 5.329500],[1030320000000, 5.329500],[1030406400000, 5.329500],[1030492800000, 5.329000],[1030579200000, 5.329000],[1030665600000, 5.329300],[1030752000000, 5.329300]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });