$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1231200000000,0.26198],[1231286400000,0.26198],[1231372800000,0.26198],[1231459200000,0.26198],[1231545600000,0.26198],[1231632000000,0.26198],[1231718400000,0.26198],[1231804800000,0.2484],[1231891200000,0.24662],[1231977600000,0.24397],[1232064000000,0.23903],[1232150400000,0.23638],[1232236800000,null],[1232323200000,0.23638],[1232409600000,0.23398],[1232496000000,0.23043],[1232582400000,0.23589],[1232668800000,0.23476],[1232755200000,0.2341],[1232841600000,0.2341],[1232928000000,0.2341],[1233014400000,0.23403],[1233100800000,0.23335],[1233187200000,0.23182],[1233273600000,0.222],[1233360000000,0.21742],[1233446400000,0.21742],[1233532800000,0.21742],[1233619200000,0.21284],[1233705600000,0.21313],[1233792000000,0.21381],[1233878400000,0.21207],[1233964800000,0.21166],[1234051200000,0.21166],[1234137600000,0.21166],[1234224000000,0.21314],[1234310400000,0.21431],[1234396800000,0.21489],[1234483200000,0.22126],[1234569600000,null],[1234656000000,null],[1234742400000,0.22282],[1234828800000,0.22139],[1234915200000,0.21608],[1235001600000,0.21138],[1235088000000,0.21335],[1235174400000,0.21344],[1235260800000,0.21344],[1235347200000,0.21344],[1235433600000,0.21344],[1235520000000,0.21374],[1235606400000,0.21542],[1235692800000,0.21555],[1235779200000,0.21556],[1235865600000,0.21556],[1235952000000,0.21556],[1236038400000,0.21292],[1236124800000,0.21268],[1236211200000,0.21254],[1236297600000,0.21455],[1236384000000,0.21546],[1236470400000,0.21546],[1236556800000,0.21546],[1236643200000,0.21546],[1236729600000,null],[1236816000000,0.21927],[1236902400000,0.21816],[1236988800000,0.22106],[1237075200000,0.22106],[1237161600000,0.22106],[1237248000000,0.22102],[1237334400000,0.22298],[1237420800000,0.22371],[1237507200000,0.22766],[1237593600000,0.23038],[1237680000000,0.23038],[1237766400000,0.23038],[1237852800000,0.23121],[1237939200000,0.23142],[1238025600000,0.22831],[1238112000000,0.23008],[1238198400000,0.23045],[1238284800000,0.23045],[1238371200000,0.23045],[1238457600000,0.22638],[1238544000000,0.22712],[1238630400000,0.22683],[1238716800000,0.22806],[1238803200000,0.23047],[1238889600000,0.23047],[1238976000000,0.23047],[1239062400000,0.23211],[1239148800000,0.23065],[1239235200000,0.22796],[1239321600000,0.22962],[1239408000000,0.22896],[1239494400000,0.22896],[1239580800000,0.22896],[1239667200000,0.22994],[1239753600000,0.23062],[1239840000000,0.23019],[1239926400000,0.23041],[1240012800000,0.23007],[1240099200000,0.23007],[1240185600000,0.23007],[1240272000000,0.23007],[1240358400000,0.22578],[1240444800000,0.22607],[1240531200000,0.22791],[1240617600000,0.23041],[1240704000000,0.23041],[1240790400000,0.23041],[1240876800000,0.23061],[1240963200000,0.22949],[1241049600000,0.23159],[1241136000000,0.23352],[1241222400000,0.23352],[1241308800000,null],[1241395200000,0.23352],[1241481600000,0.23352],[1241568000000,0.23465],[1241654400000,0.23413],[1241740800000,0.23529],[1241827200000,0.23573],[1241913600000,0.23573],[1242000000000,0.23573],[1242086400000,0.23573],[1242172800000,0.23715],[1242259200000,0.23841],[1242345600000,0.23699],[1242432000000,0.2376],[1242518400000,0.2376],[1242604800000,0.2376],[1242691200000,0.23602],[1242777600000,0.23852],[1242864000000,0.23949],[1242950400000,0.2421],[1243036800000,0.2441],[1243123200000,0.2441],[1243209600000,0.2441],[1243296000000,0.24526],[1243382400000,0.24462],[1243468800000,0.24432],[1243555200000,0.24321],[1243641600000,0.24588],[1243728000000,0.24588],[1243814400000,0.24588],[1243900800000,0.24754],[1243987200000,0.24767],[1244073600000,0.2494],[1244160000000,0.24653],[1244246400000,0.24801],[1244332800000,0.24801],[1244419200000,0.24801],[1244505600000,0.24801],[1244592000000,0.24342],[1244678400000,0.24606],[1244764800000,0.24619],[1244851200000,0.24622],[1244937600000,0.24622],[1245024000000,0.24622],[1245110400000,0.24431],[1245196800000,0.24303],[1245283200000,0.24475],[1245369600000,0.24493],[1245456000000,0.24449],[1245542400000,0.24449],[1245628800000,0.24449],[1245715200000,0.2436],[1245801600000,0.24104],[1245888000000,0.24484],[1245974400000,0.24447],[1246060800000,0.2452],[1246147200000,0.2452],[1246233600000,0.2452],[1246320000000,0.2452],[1246406400000,0.24616],[1246492800000,0.24493],[1246579200000,0.24541],[1246665600000,0.24442],[1246752000000,0.24442],[1246838400000,0.24442],[1246924800000,0.24313],[1247011200000,0.24246],[1247097600000,0.2399],[1247184000000,0.23904],[1247270400000,0.238],[1247356800000,0.238],[1247443200000,0.238],[1247529600000,0.23063],[1247616000000,0.23461],[1247702400000,0.23812],[1247788800000,0.24107],[1247875200000,0.24074],[1247961600000,0.24074],[1248048000000,0.24074],[1248134400000,0.24423],[1248220800000,0.24569],[1248307200000,0.24658],[1248393600000,0.24659],[1248480000000,0.2462],[1248566400000,0.2462],[1248652800000,0.2462],[1248739200000,0.25017],[1248825600000,0.25096],[1248912000000,0.2451],[1248998400000,0.24241],[1249084800000,0.24714],[1249171200000,0.24714],[1249257600000,0.24714],[1249344000000,0.24603],[1249430400000,0.2474],[1249516800000,0.24678],[1249603200000,0.24688],[1249689600000,0.2442],[1249776000000,0.2442],[1249862400000,0.2442],[1249948800000,0.2436],[1250035200000,0.24343],[1250121600000,0.23673],[1250208000000,0.24106],[1250294400000,0.24485],[1250380800000,0.24485],[1250467200000,0.24485],[1250553600000,0.24175],[1250640000000,0.2453],[1250726400000,0.24587],[1250812800000,0.2495],[1250899200000,0.24856],[1250985600000,0.24856],[1251072000000,0.24856],[1251158400000,0.24856],[1251244800000,0.25245],[1251331200000,0.25442],[1251417600000,0.25249],[1251504000000,0.25307],[1251590400000,0.25307],[1251676800000,0.25307],[1251763200000,0.25091],[1251849600000,0.25115],[1251936000000,0.24974],[1252022400000,0.25135],[1252108800000,0.25296],[1252195200000,0.25296],[1252281600000,0.25296],[1252368000000,0.25438],[1252454400000,0.25488],[1252540800000,0.2567],[1252627200000,0.25884],[1252713600000,0.26029],[1252800000000,0.26029],[1252886400000,0.26029],[1252972800000,0.25912],[1253059200000,0.25829],[1253145600000,0.26152],[1253232000000,0.26347],[1253318400000,0.26359],[1253404800000,0.26359],[1253491200000,0.26359],[1253577600000,0.26363],[1253664000000,0.26479],[1253750400000,0.26689],[1253836800000,0.26629],[1253923200000,0.26568],[1254009600000,0.26568],[1254096000000,0.26568],[1254182400000,0.26524],[1254268800000,0.26618],[1254355200000,0.26672],[1254441600000,0.26642],[1254528000000,0.2659],[1254614400000,0.2659],[1254700800000,0.2659],[1254787200000,0.2663],[1254873600000,0.2685],[1254960000000,0.26896],[1255046400000,0.27025],[1255132800000,0.27053],[1255219200000,0.27053],[1255305600000,0.27053],[1255392000000,0.27066],[1255478400000,0.27136],[1255564800000,0.27144],[1255651200000,0.27216],[1255737600000,0.27175],[1255824000000,0.27175],[1255910400000,0.27175],[1255996800000,0.2715],[1256083200000,0.27337],[1256169600000,0.27407],[1256256000000,0.27522],[1256342400000,0.27579],[1256428800000,0.27579],[1256515200000,0.27579],[1256601600000,0.27639],[1256688000000,0.27595],[1256774400000,0.27447],[1256860800000,0.27263],[1256947200000,0.27516],[1257033600000,0.27516],[1257120000000,0.27516],[1257206400000,0.27392],[1257292800000,0.27405],[1257379200000,0.27416],[1257465600000,0.27508],[1257552000000,0.27547],[1257638400000,0.27547],[1257724800000,0.27547],[1257811200000,0.27696],[1257897600000,0.27802],[1257984000000,0.27845],[1258070400000,0.27891],[1258156800000,0.27731],[1258243200000,0.27731],[1258329600000,0.27731],[1258416000000,0.2788],[1258502400000,0.27863],[1258588800000,0.27827],[1258675200000,0.27795],[1258761600000,0.2769],[1258848000000,0.2769],[1258934400000,0.2769],[1259020800000,0.27744],[1259107200000,0.27697],[1259193600000,0.27734],[1259280000000,0.2764],[1259366400000,0.26765],[1259452800000,0.26765],[1259539200000,0.26765],[1259625600000,0.27479],[1259712000000,0.27382],[1259798400000,0.275],[1259884800000,0.27323],[1259971200000,0.27344],[1260057600000,0.27344],[1260144000000,0.27344],[1260230400000,0.27044],[1260316800000,0.26453],[1260403200000,0.25967],[1260489600000,0.26077],[1260576000000,0.26424],[1260662400000,0.26424],[1260748800000,0.26424],[1260835200000,0.26559],[1260921600000,0.26517],[1261008000000,0.26393],[1261094400000,0.26183],[1261180800000,0.25945],[1261267200000,0.25945],[1261353600000,0.25945],[1261440000000,0.26086],[1261526400000,0.26176],[1261612800000,0.26124],[1261699200000,0.26616],[1261785600000,0.27069],[1261872000000,0.27069],[1261958400000,0.27069],[1262044800000,0.26913],[1262131200000,0.26696]], 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, 0.242425],[1231977600000, 0.242425],[1234656000000, 0.214782],[1237075200000, 0.222384],[1239753600000, 0.229492],[1242345600000, 0.238801],[1245024000000, 0.245621],[1247616000000, 0.242751],[1250294400000, 0.246958],[1252972800000, 0.259698],[1255564800000, 0.271401],[1258243200000, 0.275789],[1260835200000, 0.266528]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });