$(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: [[1231200000000,10.4581],[1231286400000,10.2656],[1231372800000,10.2656],[1231459200000,10.4851],[1231545600000,10.5367],[1231632000000,10.5367],[1231718400000,10.5367],[1231804800000,10.3134],[1231891200000,10.2117],[1231977600000,10.1432],[1232064000000,10.0755],[1232150400000,10.2179],[1232236800000,null],[1232323200000,10.2179],[1232409600000,10.1501],[1232496000000,9.9561],[1232582400000,9.9407],[1232668800000,9.99768],[1232755200000,9.85215],[1232841600000,9.85215],[1232928000000,9.85215],[1233014400000,10.0023],[1233100800000,10.144],[1233187200000,10.2102],[1233273600000,10.0955],[1233360000000,9.86832],[1233446400000,9.86832],[1233532800000,9.86832],[1233619200000,9.8252],[1233705600000,9.89373],[1233792000000,9.86986],[1233878400000,9.87833],[1233964800000,9.85292],[1234051200000,9.85292],[1234137600000,9.85292],[1234224000000,10.0162],[1234310400000,9.98459],[1234396800000,9.96226],[1234483200000,9.88141],[1234569600000,null],[1234656000000,null],[1234742400000,9.87371],[1234828800000,9.82905],[1234915200000,9.72818],[1235001600000,9.69892],[1235088000000,9.78285],[1235174400000,9.69507],[1235260800000,9.69507],[1235347200000,9.69507],[1235433600000,9.85446],[1235520000000,9.82751],[1235606400000,9.85215],[1235692800000,9.84214],[1235779200000,9.73588],[1235865600000,9.73588],[1235952000000,9.73588],[1236038400000,9.69892],[1236124800000,9.71355],[1236211200000,9.66735],[1236297600000,9.66735],[1236384000000,9.74666],[1236470400000,9.74666],[1236556800000,9.74666],[1236643200000,9.74666],[1236729600000,null],[1236816000000,9.84522],[1236902400000,9.84214],[1236988800000,9.93685],[1237075200000,9.93685],[1237161600000,9.93685],[1237248000000,10.0423],[1237334400000,9.96534],[1237420800000,10.1101],[1237507200000,10.5267],[1237593600000,10.4327],[1237680000000,10.4327],[1237766400000,10.4327],[1237852800000,10.4397],[1237939200000,10.4004],[1238025600000,10.3904],[1238112000000,10.4774],[1238198400000,10.2371],[1238284800000,10.2371],[1238371200000,10.2371],[1238457600000,10.1586],[1238544000000,10.2472],[1238630400000,10.1994],[1238716800000,10.3118],[1238803200000,10.3372],[1238889600000,10.3372],[1238976000000,10.3372],[1239062400000,10.3919],[1239148800000,10.2064],[1239235200000,10.1879],[1239321600000,10.2202],[1239408000000,10.2202],[1239494400000,10.2202],[1239580800000,10.2202],[1239667200000,10.2202],[1239753600000,10.2225],[1239840000000,10.1432],[1239926400000,10.1609],[1240012800000,10.0547],[1240099200000,10.0547],[1240185600000,10.0547],[1240272000000,10.0547],[1240358400000,9.95764],[1240444800000,9.96919],[1240531200000,10.0485],[1240617600000,10.1886],[1240704000000,10.1886],[1240790400000,10.1886],[1240876800000,10.1062],[1240963200000,10.0038],[1241049600000,10.2148],[1241136000000,10.2218],[1241222400000,10.2218],[1241308800000,null],[1241395200000,10.2218],[1241481600000,10.2218],[1241568000000,10.3203],[1241654400000,10.2579],[1241740800000,10.3104],[1241827200000,10.3022],[1241913600000,10.3022],[1242000000000,10.3022],[1242086400000,10.3022],[1242172800000,10.475],[1242259200000,10.3878],[1242345600000,10.3398],[1242432000000,10.3036],[1242518400000,10.3036],[1242604800000,10.3036],[1242691200000,10.2843],[1242777600000,10.3734],[1242864000000,10.4264],[1242950400000,10.4881],[1243036800000,10.6411],[1243123200000,10.6411],[1243209600000,10.6411],[1243296000000,10.6697],[1243382400000,10.5965],[1243468800000,10.5912],[1243555200000,10.5566],[1243641600000,10.7406],[1243728000000,10.7406],[1243814400000,10.7406],[1243900800000,10.8221],[1243987200000,10.8373],[1244073600000,10.8115],[1244160000000,10.7293],[1244246400000,10.7914],[1244332800000,10.7914],[1244419200000,10.7914],[1244505600000,10.7914],[1244592000000,10.6229],[1244678400000,10.7316],[1244764800000,10.6308],[1244851200000,10.659],[1244937600000,10.659],[1245024000000,10.659],[1245110400000,10.5418],[1245196800000,10.5722],[1245283200000,10.5447],[1245369600000,10.6034],[1245456000000,10.6117],[1245542400000,10.6117],[1245628800000,10.6117],[1245715200000,10.5464],[1245801600000,10.6388],[1245888000000,10.695],[1245974400000,10.6341],[1246060800000,10.7557],[1246147200000,10.7557],[1246233600000,10.7557],[1246320000000,10.7557],[1246406400000,10.7991],[1246492800000,10.7686],[1246579200000,10.7312],[1246665600000,10.6997],[1246752000000,10.6997],[1246838400000,10.6997],[1246924800000,10.6141],[1247011200000,10.6965],[1247097600000,10.5988],[1247184000000,10.6637],[1247270400000,10.5987],[1247356800000,10.5987],[1247443200000,10.5987],[1247529600000,10.6551],[1247616000000,10.6701],[1247702400000,10.7515],[1247788800000,10.796],[1247875200000,10.781],[1247961600000,10.781],[1248048000000,10.781],[1248134400000,10.8933],[1248220800000,10.8954],[1248307200000,10.8748],[1248393600000,10.9037],[1248480000000,10.9066],[1248566400000,10.9066],[1248652800000,10.9066],[1248739200000,10.975],[1248825600000,10.9422],[1248912000000,10.8601],[1248998400000,10.818],[1249084800000,10.885],[1249171200000,10.885],[1249257600000,10.885],[1249344000000,10.994],[1249430400000,11.0491],[1249516800000,11.0712],[1249603200000,11.062],[1249689600000,11.0603],[1249776000000,11.0603],[1249862400000,11.0603],[1249948800000,10.9497],[1250035200000,10.9481],[1250121600000,10.9667],[1250208000000,11.0756],[1250294400000,11.1026],[1250380800000,11.1026],[1250467200000,11.1026],[1250553600000,10.9839],[1250640000000,11.0405],[1250726400000,11.0751],[1250812800000,11.2298],[1250899200000,11.378],[1250985600000,11.378],[1251072000000,11.378],[1251158400000,11.378],[1251244800000,11.4066],[1251331200000,11.4003],[1251417600000,11.3987],[1251504000000,11.4754],[1251590400000,11.4754],[1251676800000,11.4754],[1251763200000,11.4019],[1251849600000,11.4226],[1251936000000,11.3547],[1252022400000,11.4465],[1252108800000,11.4025],[1252195200000,11.4025],[1252281600000,11.4025],[1252368000000,11.4568],[1252454400000,11.5741],[1252540800000,11.6103],[1252627200000,11.6279],[1252713600000,11.6714],[1252800000000,11.6714],[1252886400000,11.6714],[1252972800000,11.6443],[1253059200000,11.6949],[1253145600000,11.743],[1253232000000,11.7792],[1253318400000,11.7736],[1253404800000,11.7736],[1253491200000,11.7736],[1253577600000,11.7364],[1253664000000,11.834],[1253750400000,11.8365],[1253836800000,11.8244],[1253923200000,11.746],[1254009600000,11.746],[1254096000000,11.746],[1254182400000,11.7347],[1254268800000,11.6537],[1254355200000,11.7203],[1254441600000,11.6443],[1254528000000,11.6441],[1254614400000,11.6441],[1254700800000,11.6441],[1254787200000,11.7074],[1254873600000,11.7923],[1254960000000,11.7699],[1255046400000,11.8252],[1255132800000,11.8148],[1255219200000,11.8148],[1255305600000,11.8148],[1255392000000,11.8268],[1255478400000,11.9004],[1255564800000,11.9018],[1255651200000,11.8615],[1255737600000,11.8506],[1255824000000,11.8506],[1255910400000,11.8506],[1255996800000,11.8896],[1256083200000,11.9469],[1256169600000,11.9264],[1256256000000,12.0075],[1256342400000,12.013],[1256428800000,12.013],[1256515200000,12.013],[1256601600000,12.0134],[1256688000000,11.9105],[1256774400000,11.8392],[1256860800000,11.8304],[1256947200000,11.8296],[1257033600000,11.8296],[1257120000000,11.8296],[1257206400000,11.8132],[1257292800000,11.7434],[1257379200000,11.8306],[1257465600000,11.9141],[1257552000000,11.8792],[1257638400000,11.8792],[1257724800000,11.8792],[1257811200000,11.9727],[1257897600000,11.9578],[1257984000000,12.0173],[1258070400000,11.9321],[1258156800000,11.8885],[1258243200000,11.8885],[1258329600000,11.8885],[1258416000000,11.962],[1258502400000,11.8856],[1258588800000,11.952],[1258675200000,11.8755],[1258761600000,11.8372],[1258848000000,11.8372],[1258934400000,11.8372],[1259020800000,11.9594],[1259107200000,11.9602],[1259193600000,12.0438],[1259280000000,12.0282],[1259366400000,11.9059],[1259452800000,11.9059],[1259539200000,11.9059],[1259625600000,12.0001],[1259712000000,12.0429],[1259798400000,12.0577],[1259884800000,12.0809],[1259971200000,12.0303],[1260057600000,12.0303],[1260144000000,12.0303],[1260230400000,11.8059],[1260316800000,11.7963],[1260403200000,11.7945],[1260489600000,11.7641],[1260576000000,11.7802],[1260662400000,11.7802],[1260748800000,11.7802],[1260835200000,11.6892],[1260921600000,11.5938],[1261008000000,11.6046],[1261094400000,11.4314],[1261180800000,11.4266],[1261267200000,11.4266],[1261353600000,11.4266],[1261440000000,11.4513],[1261526400000,11.3789],[1261612800000,11.3751],[1261699200000,11.4694],[1261785600000,11.4687],[1261872000000,11.4687],[1261958400000,11.4687],[1262044800000,11.4736],[1262131200000,11.5009]], 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: [[1231977600000, 10.167419],[1231977600000, 10.167419],[1234656000000, 9.835269],[1237075200000, 10.040800],[1239753600000, 10.175627],[1242345600000, 10.416280],[1245024000000, 10.690100],[1247616000000, 10.769836],[1250294400000, 11.152690],[1252972800000, 11.638534],[1255564800000, 11.842283],[1258243200000, 11.901312],[1260835200000, 11.673453]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });