$(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: [[1364774400000,1.22497],[1364860800000,1.22497],[1364947200000,1.23487],[1365033600000,1.23152],[1365120000000,1.21877],[1365206400000,1.23192],[1365292800000,1.23192],[1365379200000,1.23192],[1365465600000,1.24526],[1365552000000,1.2443],[1365638400000,1.25486],[1365724800000,1.26128],[1365811200000,1.2513],[1365897600000,1.2513],[1365984000000,1.2513],[1366070400000,1.24912],[1366156800000,1.25192],[1366243200000,1.23857],[1366329600000,1.22657],[1366416000000,1.23168],[1366502400000,1.23168],[1366588800000,1.23168],[1366675200000,1.22394],[1366761600000,1.20836],[1366848000000,1.21042],[1366934400000,1.21623],[1367020800000,1.21409],[1367107200000,1.21409],[1367193600000,1.21409],[1367280000000,1.22583]], 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: [[1364774400000, 1.224975],[1364774400000, 1.224975],[1364860800000, 1.224975],[1364947200000, 1.234871],[1365033600000, 1.231524],[1365120000000, 1.218765],[1365206400000, 1.231918],[1365292800000, 1.231918],[1365379200000, 1.231918],[1365465600000, 1.245264],[1365552000000, 1.244299],[1365638400000, 1.254861],[1365724800000, 1.261278],[1365811200000, 1.251300],[1365897600000, 1.251300],[1365984000000, 1.251300],[1366070400000, 1.249121],[1366156800000, 1.251925],[1366243200000, 1.238567],[1366329600000, 1.226575],[1366416000000, 1.231679],[1366502400000, 1.231679],[1366588800000, 1.231679],[1366675200000, 1.223937],[1366761600000, 1.208355],[1366848000000, 1.210420],[1366934400000, 1.216231],[1367020800000, 1.214095],[1367107200000, 1.214095],[1367193600000, 1.214095],[1367280000000, 1.225831]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });