$(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: [[1351728000000,1.20759],[1351814400000,1.20036],[1351900800000,1.19493],[1351987200000,1.19493],[1352073600000,1.19493],[1352160000000,1.19181],[1352246400000,1.19353],[1352332800000,1.19091],[1352419200000,1.19616],[1352505600000,1.18331],[1352592000000,1.18331],[1352678400000,1.18331],[1352764800000,1.18625],[1352851200000,1.17893],[1352937600000,1.17921],[1353024000000,1.17899],[1353110400000,1.17779],[1353196800000,1.17779],[1353283200000,1.17779],[1353369600000,1.18037],[1353456000000,1.18412],[1353542400000,1.18708],[1353628800000,1.19739],[1353715200000,1.20148],[1353801600000,1.20148],[1353888000000,1.20148],[1353974400000,1.20823],[1354060800000,1.19877],[1354147200000,1.19569],[1354233600000,1.2025]], 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: [[1351728000000, 1.207594],[1351728000000, 1.207594],[1351814400000, 1.200365],[1351900800000, 1.194928],[1351987200000, 1.194928],[1352073600000, 1.194928],[1352160000000, 1.191814],[1352246400000, 1.193528],[1352332800000, 1.190910],[1352419200000, 1.196156],[1352505600000, 1.183313],[1352592000000, 1.183313],[1352678400000, 1.183313],[1352764800000, 1.186249],[1352851200000, 1.178934],[1352937600000, 1.179213],[1353024000000, 1.178986],[1353110400000, 1.177792],[1353196800000, 1.177792],[1353283200000, 1.177792],[1353369600000, 1.180373],[1353456000000, 1.184117],[1353542400000, 1.187084],[1353628800000, 1.197394],[1353715200000, 1.201477],[1353801600000, 1.201477],[1353888000000, 1.201477],[1353974400000, 1.208228],[1354060800000, 1.198765],[1354147200000, 1.195694],[1354233600000, 1.202499]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });