$(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: [[1385856000000,1.22136],[1385942400000,1.22136],[1386028800000,1.21697],[1386115200000,1.22387],[1386201600000,1.22922],[1386288000000,1.22595],[1386374400000,1.22329],[1386460800000,1.22329],[1386547200000,1.22329],[1386633600000,1.22473],[1386720000000,1.22255],[1386806400000,1.22098],[1386892800000,1.21522],[1386979200000,1.21437],[1387065600000,1.21437],[1387152000000,1.21437],[1387238400000,1.21986],[1387324800000,1.2155],[1387411200000,1.22253],[1387497600000,1.22003],[1387584000000,1.214],[1387670400000,1.214],[1387756800000,1.214],[1387843200000,1.21861],[1387929600000,1.21509],[1388016000000,1.21509],[1388102400000,1.21509],[1388188800000,1.22977],[1388275200000,1.22977],[1388361600000,1.22977],[1388448000000,1.22977]], 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: [[1385856000000, 1.221361],[1385856000000, 1.221361],[1385942400000, 1.221361],[1386028800000, 1.216967],[1386115200000, 1.223868],[1386201600000, 1.229219],[1386288000000, 1.225946],[1386374400000, 1.223293],[1386460800000, 1.223293],[1386547200000, 1.223293],[1386633600000, 1.224735],[1386720000000, 1.222552],[1386806400000, 1.220980],[1386892800000, 1.215218],[1386979200000, 1.214374],[1387065600000, 1.214374],[1387152000000, 1.214374],[1387238400000, 1.219857],[1387324800000, 1.215500],[1387411200000, 1.222531],[1387497600000, 1.220031],[1387584000000, 1.213997],[1387670400000, 1.213997],[1387756800000, 1.213997],[1387843200000, 1.218609],[1387929600000, 1.215089],[1388016000000, 1.215089],[1388102400000, 1.215089],[1388188800000, 1.229774],[1388275200000, 1.229774],[1388361600000, 1.229774],[1388448000000, 1.229774]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });