$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1351728000000,10.3853],[1351814400000,10.3709],[1351900800000,10.271],[1351987200000,10.271],[1352073600000,10.271],[1352160000000,10.2127],[1352246400000,10.231],[1352332800000,10.1879],[1352419200000,10.1799],[1352505600000,10.1463],[1352592000000,10.1463],[1352678400000,10.1463],[1352764800000,10.1791],[1352851200000,10.1479],[1352937600000,10.1719],[1353024000000,10.1959],[1353110400000,10.1871],[1353196800000,10.1871],[1353283200000,10.1871],[1353369600000,10.2007],[1353456000000,10.2382],[1353542400000,10.235],[1353628800000,10.3054],[1353715200000,10.3182],[1353801600000,10.3182],[1353888000000,10.3182],[1353974400000,10.3621],[1354060800000,10.3597],[1354147200000,10.3038],[1354233600000,10.3861]], 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, 10.385305],[1351728000000, 10.385305],[1351814400000, 10.370918],[1351900800000, 10.271005],[1351987200000, 10.271005],[1352073600000, 10.271005],[1352160000000, 10.212656],[1352246400000, 10.231040],[1352332800000, 10.187878],[1352419200000, 10.179885],[1352505600000, 10.146314],[1352592000000, 10.146314],[1352678400000, 10.146314],[1352764800000, 10.179086],[1352851200000, 10.147913],[1352937600000, 10.171892],[1353024000000, 10.195871],[1353110400000, 10.187079],[1353196800000, 10.187079],[1353283200000, 10.187079],[1353369600000, 10.200667],[1353456000000, 10.238234],[1353542400000, 10.235037],[1353628800000, 10.305375],[1353715200000, 10.318164],[1353801600000, 10.318164],[1353888000000, 10.318164],[1353974400000, 10.362125],[1354060800000, 10.359727],[1354147200000, 10.303776],[1354233600000, 10.386104]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });