$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1380585600000,1.24684],[1380672000000,1.25493],[1380758400000,1.24813],[1380844800000,1.26032],[1380931200000,1.2527],[1381017600000,1.2527],[1381104000000,1.2527],[1381190400000,1.24085],[1381276800000,1.24695],[1381363200000,1.23535],[1381449600000,1.23535],[1381536000000,1.23699],[1381622400000,1.23699],[1381708800000,1.23699],[1381795200000,1.23218],[1381881600000,1.23092],[1381968000000,1.23012],[1382054400000,1.24401],[1382140800000,1.24736],[1382227200000,1.24736],[1382313600000,1.24736],[1382400000000,1.24349],[1382486400000,1.2473],[1382572800000,1.25256],[1382659200000,1.25925],[1382745600000,1.26066],[1382832000000,1.26066],[1382918400000,1.26066],[1383004800000,1.25967],[1383091200000,1.25489],[1383177600000,1.25192]], 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: [[1380585600000, 1.246843],[1380585600000, 1.246843],[1380672000000, 1.254933],[1380758400000, 1.248127],[1380844800000, 1.260316],[1380931200000, 1.252696],[1381017600000, 1.252696],[1381104000000, 1.252696],[1381190400000, 1.240846],[1381276800000, 1.246946],[1381363200000, 1.235352],[1381449600000, 1.235352],[1381536000000, 1.236987],[1381622400000, 1.236987],[1381708800000, 1.236987],[1381795200000, 1.232180],[1381881600000, 1.230920],[1381968000000, 1.230118],[1382054400000, 1.244009],[1382140800000, 1.247362],[1382227200000, 1.247362],[1382313600000, 1.247362],[1382400000000, 1.243487],[1382486400000, 1.247304],[1382572800000, 1.252561],[1382659200000, 1.259254],[1382745600000, 1.260656],[1382832000000, 1.260656],[1382918400000, 1.260656],[1383004800000, 1.259667],[1383091200000, 1.254891],[1383177600000, 1.251921]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });