$(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: [[1220227200000,0.756601],[1220313600000,0.74907],[1220400000000,0.744072],[1220486400000,0.739998],[1220572800000,0.740952],[1220659200000,0.729086],[1220745600000,0.729086],[1220832000000,0.729086],[1220918400000,0.728965],[1221004800000,0.724707],[1221091200000,0.718918],[1221177600000,0.710695],[1221264000000,0.717097],[1221350400000,0.717097],[1221436800000,0.717097],[1221523200000,0.718772],[1221609600000,0.717893],[1221696000000,0.717837],[1221782400000,0.732857],[1221868800000,0.724016],[1221955200000,0.724016],[1222041600000,0.724016],[1222128000000,0.741156],[1222214400000,0.745595],[1222300800000,0.740342],[1222387200000,0.738074],[1222473600000,0.73466],[1222560000000,0.73466],[1222646400000,0.73466],[1222732800000,0.71901]], 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: [[1220227200000, 0.756601],[1220227200000, 0.756601],[1220313600000, 0.749070],[1220400000000, 0.744072],[1220486400000, 0.739998],[1220572800000, 0.740952],[1220659200000, 0.729086],[1220745600000, 0.729086],[1220832000000, 0.729086],[1220918400000, 0.728965],[1221004800000, 0.724707],[1221091200000, 0.718918],[1221177600000, 0.710695],[1221264000000, 0.717097],[1221350400000, 0.717097],[1221436800000, 0.717097],[1221523200000, 0.718772],[1221609600000, 0.717893],[1221696000000, 0.717837],[1221782400000, 0.732857],[1221868800000, 0.724016],[1221955200000, 0.724016],[1222041600000, 0.724016],[1222128000000, 0.741156],[1222214400000, 0.745595],[1222300800000, 0.740342],[1222387200000, 0.738074],[1222473600000, 0.734660],[1222560000000, 0.734660],[1222646400000, 0.734660],[1222732800000, 0.719010]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });