$(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: [[1157068800000,0.700331],[1157155200000,0.694782],[1157241600000,0.694782],[1157328000000,0.694782],[1157414400000,0.696552],[1157500800000,0.693918],[1157587200000,0.694577],[1157673600000,0.689195],[1157760000000,0.688885],[1157846400000,0.688885],[1157932800000,0.688885],[1158019200000,0.692676],[1158105600000,0.695421],[1158192000000,0.69226],[1158278400000,0.694697],[1158364800000,0.693862],[1158451200000,0.693862],[1158537600000,0.693862],[1158624000000,0.695743],[1158710400000,0.696563],[1158796800000,0.694534],[1158883200000,0.697358],[1158969600000,0.699134],[1159056000000,0.699134],[1159142400000,0.699134],[1159228800000,0.693175],[1159315200000,0.690131],[1159401600000,0.690462],[1159488000000,0.693139],[1159574400000,0.688955]], 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: [[1157068800000, 0.700331],[1157068800000, 0.700331],[1157155200000, 0.694782],[1157241600000, 0.694782],[1157328000000, 0.694782],[1157414400000, 0.696552],[1157500800000, 0.693918],[1157587200000, 0.694577],[1157673600000, 0.689195],[1157760000000, 0.688885],[1157846400000, 0.688885],[1157932800000, 0.688885],[1158019200000, 0.692676],[1158105600000, 0.695421],[1158192000000, 0.692260],[1158278400000, 0.694697],[1158364800000, 0.693862],[1158451200000, 0.693862],[1158537600000, 0.693862],[1158624000000, 0.695743],[1158710400000, 0.696563],[1158796800000, 0.694534],[1158883200000, 0.697358],[1158969600000, 0.699134],[1159056000000, 0.699134],[1159142400000, 0.699134],[1159228800000, 0.693175],[1159315200000, 0.690131],[1159401600000, 0.690462],[1159488000000, 0.693139],[1159574400000, 0.688955]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });