$(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: [[1296518400000,1.22629],[1296604800000,1.24061],[1296691200000,1.23703],[1296777600000,1.22957],[1296864000000,1.22819],[1296950400000,1.22819],[1297036800000,1.22819],[1297123200000,1.22293],[1297209600000,1.23502],[1297296000000,1.23341],[1297382400000,1.22483],[1297468800000,1.22047],[1297555200000,1.22047],[1297641600000,1.22047],[1297728000000,1.21926],[1297814400000,1.22992],[1297900800000,1.22866],[1297987200000,1.23172],[1298073600000,1.23925],[1298160000000,1.23925],[1298246400000,1.23925],[1298332800000,1.23859],[1298419200000,1.23462],[1298505600000,1.23869],[1298592000000,1.24161],[1298678400000,1.23576],[1298764800000,1.23576],[1298851200000,1.23576]], 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: [[1296518400000, 1.226289],[1296518400000, 1.226289],[1296604800000, 1.240606],[1296691200000, 1.237029],[1296777600000, 1.229574],[1296864000000, 1.228189],[1296950400000, 1.228189],[1297036800000, 1.228189],[1297123200000, 1.222925],[1297209600000, 1.235023],[1297296000000, 1.233409],[1297382400000, 1.224829],[1297468800000, 1.220466],[1297555200000, 1.220466],[1297641600000, 1.220466],[1297728000000, 1.219258],[1297814400000, 1.229920],[1297900800000, 1.228656],[1297987200000, 1.231722],[1298073600000, 1.239254],[1298160000000, 1.239254],[1298246400000, 1.239254],[1298332800000, 1.238590],[1298419200000, 1.234618],[1298505600000, 1.238687],[1298592000000, 1.241613],[1298678400000, 1.235760],[1298764800000, 1.235760],[1298851200000, 1.235760]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });