$(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: [[1294272000000,1.17769],[1294358400000,1.16793],[1294444800000,1.16793],[1294531200000,1.16793],[1294617600000,1.16793],[1294704000000,1.15112],[1294790400000,1.16118],[1294876800000,1.16743],[1294963200000,1.17944],[1295049600000,1.18229],[1295136000000,1.18229],[1295222400000,1.18229],[1295308800000,1.18606],[1295395200000,1.19083],[1295481600000,1.20121],[1295568000000,1.19583],[1295654400000,1.19869],[1295740800000,1.19869],[1295827200000,1.19869],[1295913600000,1.20362],[1296000000000,1.21176],[1296086400000,1.22569],[1296172800000,1.22968],[1296259200000,1.22961],[1296345600000,1.22961],[1296432000000,1.22961]], 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: [[1294272000000, 1.177695],[1294272000000, 1.177695],[1294358400000, 1.167933],[1294444800000, 1.167933],[1294531200000, 1.167933],[1294617600000, 1.167933],[1294704000000, 1.151123],[1294790400000, 1.161176],[1294876800000, 1.167431],[1294963200000, 1.179435],[1295049600000, 1.182293],[1295136000000, 1.182293],[1295222400000, 1.182293],[1295308800000, 1.186061],[1295395200000, 1.190833],[1295481600000, 1.201214],[1295568000000, 1.195830],[1295654400000, 1.198689],[1295740800000, 1.198689],[1295827200000, 1.198689],[1295913600000, 1.203625],[1296000000000, 1.211756],[1296086400000, 1.225692],[1296172800000, 1.229683],[1296259200000, 1.229610],[1296345600000, 1.229610],[1296432000000, 1.229610]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });