$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1343779200000,1.31958],[1343865600000,1.32089],[1343952000000,1.32606],[1344038400000,1.31525],[1344124800000,1.31525],[1344211200000,1.31525],[1344297600000,1.32952],[1344384000000,1.33537],[1344470400000,1.32461],[1344556800000,1.3211],[1344643200000,1.31686],[1344729600000,1.31686],[1344816000000,1.31686],[1344902400000,1.32506],[1344988800000,1.3264],[1345075200000,1.31822],[1345161600000,1.31839],[1345248000000,1.32435],[1345334400000,1.32435],[1345420800000,1.32435],[1345507200000,1.32043],[1345593600000,1.33403],[1345680000000,1.33581],[1345766400000,1.34703],[1345852800000,1.34703],[1345939200000,1.34703],[1346025600000,1.34703],[1346112000000,1.34463],[1346198400000,1.34644],[1346284800000,1.3459],[1346371200000,1.34583]], 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: [[1343779200000, 1.319580],[1343779200000, 1.319580],[1343865600000, 1.320889],[1343952000000, 1.326062],[1344038400000, 1.315249],[1344124800000, 1.315249],[1344211200000, 1.315249],[1344297600000, 1.329517],[1344384000000, 1.335370],[1344470400000, 1.324614],[1344556800000, 1.321105],[1344643200000, 1.316863],[1344729600000, 1.316863],[1344816000000, 1.316863],[1344902400000, 1.325061],[1344988800000, 1.326404],[1345075200000, 1.318225],[1345161600000, 1.318388],[1345248000000, 1.324348],[1345334400000, 1.324348],[1345420800000, 1.324348],[1345507200000, 1.320430],[1345593600000, 1.334027],[1345680000000, 1.335815],[1345766400000, 1.347030],[1345852800000, 1.347030],[1345939200000, 1.347030],[1346025600000, 1.347030],[1346112000000, 1.344633],[1346198400000, 1.346438],[1346284800000, 1.345899],[1346371200000, 1.345828]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });