$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1231200000000,1.12719],[1231286400000,1.12638],[1231372800000,1.12638],[1231459200000,1.12661],[1231545600000,1.12646],[1231632000000,1.12646],[1231718400000,1.12646],[1231804800000,1.12622],[1231891200000,1.1267],[1231977600000,1.12652],[1232064000000,1.12634],[1232150400000,1.12616],[1232236800000,null],[1232323200000,1.12616],[1232409600000,1.1264],[1232496000000,1.12597],[1232582400000,1.12609],[1232668800000,1.12621],[1232755200000,1.12606],[1232841600000,1.12606],[1232928000000,1.12606],[1233014400000,1.12606],[1233100800000,1.12606],[1233187200000,1.12606],[1233273600000,1.12606],[1233360000000,1.12606],[1233446400000,1.12606],[1233532800000,1.12606],[1233619200000,1.12431],[1233705600000,1.12568],[1233792000000,1.12672],[1233878400000,1.12627],[1233964800000,1.12665],[1234051200000,1.12665],[1234137600000,1.12665],[1234224000000,1.12675],[1234310400000,1.12695],[1234396800000,1.12684],[1234483200000,1.12669],[1234569600000,null],[1234656000000,null],[1234742400000,1.1268],[1234828800000,1.12672],[1234915200000,1.12582],[1235001600000,1.12607],[1235088000000,1.12648],[1235174400000,1.12619],[1235260800000,1.12619],[1235347200000,1.12619],[1235433600000,1.12639],[1235520000000,1.12618],[1235606400000,1.12615],[1235692800000,1.12573],[1235779200000,1.12577],[1235865600000,1.12577],[1235952000000,1.12577],[1236038400000,1.12477],[1236124800000,1.12552],[1236211200000,1.12522],[1236297600000,1.12562],[1236384000000,1.12573],[1236470400000,1.12573],[1236556800000,1.12573],[1236643200000,1.12573],[1236729600000,null],[1236816000000,1.12567],[1236902400000,1.12592],[1236988800000,1.12607],[1237075200000,1.12607],[1237161600000,1.12607],[1237248000000,1.12604],[1237334400000,1.12619],[1237420800000,1.1266],[1237507200000,1.12763],[1237593600000,1.12775],[1237680000000,1.12775],[1237766400000,1.12775],[1237852800000,1.12711],[1237939200000,1.12745],[1238025600000,1.12723],[1238112000000,1.13649],[1238198400000,1.12697],[1238284800000,1.12697],[1238371200000,1.12697],[1238457600000,1.11764],[1238544000000,1.12678],[1238630400000,1.12667],[1238716800000,1.12657],[1238803200000,1.12659],[1238889600000,1.12659],[1238976000000,1.12659],[1239062400000,1.12659],[1239148800000,1.12626],[1239235200000,1.1264],[1239321600000,1.1266],[1239408000000,1.1266],[1239494400000,1.1266],[1239580800000,1.1266],[1239667200000,1.1266],[1239753600000,1.12705],[1239840000000,1.12701],[1239926400000,1.12695],[1240012800000,1.12695],[1240099200000,1.12695],[1240185600000,1.12695],[1240272000000,1.12695],[1240358400000,1.12702],[1240444800000,1.12738],[1240531200000,1.1274],[1240617600000,1.12782],[1240704000000,1.12782],[1240790400000,1.12782],[1240876800000,1.1278],[1240963200000,1.12793],[1241049600000,1.12812],[1241136000000,1.12854],[1241222400000,1.12854],[1241308800000,null],[1241395200000,1.12854],[1241481600000,1.12854],[1241568000000,1.12905],[1241654400000,1.12877],[1241740800000,1.13102],[1241827200000,1.1249],[1241913600000,1.1249],[1242000000000,1.1249],[1242086400000,1.1249],[1242172800000,1.12224],[1242259200000,1.11767],[1242345600000,1.117],[1242432000000,1.11666],[1242518400000,1.11666],[1242604800000,1.11666],[1242691200000,1.11636],[1242777600000,1.11667],[1242864000000,1.11591],[1242950400000,1.11596],[1243036800000,1.11619],[1243123200000,1.11619],[1243209600000,1.11619],[1243296000000,1.11607],[1243382400000,1.11542],[1243468800000,1.11583],[1243555200000,1.1158],[1243641600000,1.11575],[1243728000000,1.11575],[1243814400000,1.11575],[1243900800000,1.11485],[1243987200000,1.11424],[1244073600000,1.11408],[1244160000000,1.114],[1244246400000,1.114],[1244332800000,1.114],[1244419200000,1.114],[1244505600000,1.114],[1244592000000,1.11334],[1244678400000,1.11364],[1244764800000,1.11347],[1244851200000,1.11378],[1244937600000,1.11378],[1245024000000,1.11378],[1245110400000,1.11336],[1245196800000,1.11373],[1245283200000,1.11431],[1245369600000,1.11452],[1245456000000,1.11419],[1245542400000,1.11419],[1245628800000,1.11419],[1245715200000,1.11333],[1245801600000,1.11358],[1245888000000,1.11573],[1245974400000,1.11614],[1246060800000,1.11656],[1246147200000,1.11656],[1246233600000,1.11656],[1246320000000,1.11656],[1246406400000,1.11855],[1246492800000,1.11802],[1246579200000,1.11814],[1246665600000,1.11788],[1246752000000,1.11788],[1246838400000,1.11788],[1246924800000,1.11752],[1247011200000,1.11668],[1247097600000,1.11585],[1247184000000,1.11574],[1247270400000,1.11585],[1247356800000,1.11585],[1247443200000,1.11585],[1247529600000,1.11587],[1247616000000,1.11613],[1247702400000,1.11703],[1247788800000,1.11846],[1247875200000,1.12],[1247961600000,1.12],[1248048000000,1.12],[1248134400000,1.12166],[1248220800000,1.12147],[1248307200000,1.12189],[1248393600000,1.1218],[1248480000000,1.12225],[1248566400000,1.12225],[1248652800000,1.12225],[1248739200000,1.12597],[1248825600000,1.12578],[1248912000000,1.12715],[1248998400000,1.12671],[1249084800000,1.1269],[1249171200000,1.1269],[1249257600000,1.1269],[1249344000000,1.12527],[1249430400000,1.12463],[1249516800000,1.12475],[1249603200000,1.12689],[1249689600000,1.12764],[1249776000000,1.12764],[1249862400000,1.12764],[1249948800000,1.12812],[1250035200000,1.13071],[1250121600000,1.13231],[1250208000000,1.13394],[1250294400000,1.13654],[1250380800000,1.13654],[1250467200000,1.13654],[1250553600000,1.14174],[1250640000000,1.1457],[1250726400000,1.14836],[1250812800000,1.15408],[1250899200000,1.16231],[1250985600000,1.16231],[1251072000000,1.16231],[1251158400000,1.16231],[1251244800000,1.16562],[1251331200000,1.1695],[1251417600000,1.16935],[1251504000000,1.16967],[1251590400000,1.16967],[1251676800000,1.16967],[1251763200000,1.16959],[1251849600000,1.16831],[1251936000000,1.16893],[1252022400000,1.16902],[1252108800000,1.17058],[1252195200000,1.17058],[1252281600000,1.17058],[1252368000000,1.17074],[1252454400000,1.1713],[1252540800000,1.17077],[1252627200000,1.17058],[1252713600000,1.1711],[1252800000000,1.1711],[1252886400000,1.1711],[1252972800000,1.17103],[1253059200000,1.17211],[1253145600000,1.17264],[1253232000000,1.17286],[1253318400000,1.17262],[1253404800000,1.17262],[1253491200000,1.17262],[1253577600000,1.17249],[1253664000000,1.17283],[1253750400000,1.17297],[1253836800000,1.17278],[1253923200000,1.1726],[1254009600000,1.1726],[1254096000000,1.1726],[1254182400000,1.17319],[1254268800000,1.17311],[1254355200000,1.17252],[1254441600000,1.17325],[1254528000000,1.1734],[1254614400000,1.1734],[1254700800000,1.1734],[1254787200000,1.17341],[1254873600000,1.1734],[1254960000000,1.1734],[1255046400000,1.1734],[1255132800000,1.17352],[1255219200000,1.17352],[1255305600000,1.17352],[1255392000000,1.1739],[1255478400000,1.17281],[1255564800000,1.17161],[1255651200000,1.1686],[1255737600000,1.16745],[1255824000000,1.16745],[1255910400000,1.16745],[1255996800000,1.16747],[1256083200000,1.16897],[1256169600000,1.17074],[1256256000000,1.17217],[1256342400000,1.17127],[1256428800000,1.17127],[1256515200000,1.17127],[1256601600000,1.1715],[1256688000000,1.17249],[1256774400000,1.17272],[1256860800000,1.17165],[1256947200000,1.17071],[1257033600000,1.17071],[1257120000000,1.17071],[1257206400000,1.17122],[1257292800000,1.17334],[1257379200000,1.17399],[1257465600000,1.17373],[1257552000000,1.17074],[1257638400000,1.17074],[1257724800000,1.17074],[1257811200000,1.17044],[1257897600000,1.17039],[1257984000000,1.17081],[1258070400000,1.17134],[1258156800000,1.17136],[1258243200000,1.17136],[1258329600000,1.17136],[1258416000000,1.17084],[1258502400000,1.17048],[1258588800000,1.17049],[1258675200000,1.17011],[1258761600000,1.17021],[1258848000000,1.17021],[1258934400000,1.17021],[1259020800000,1.16982],[1259107200000,1.16995],[1259193600000,1.16958],[1259280000000,1.16912],[1259366400000,1.16878],[1259452800000,1.16878],[1259539200000,1.16878],[1259625600000,1.17001],[1259712000000,1.17041],[1259798400000,1.17054],[1259884800000,1.17036],[1259971200000,1.16948],[1260057600000,1.16948],[1260144000000,1.16948],[1260230400000,1.16911],[1260316800000,1.16947],[1260403200000,1.16974],[1260489600000,1.16991],[1260576000000,1.16919],[1260662400000,1.16919],[1260748800000,1.16919],[1260835200000,1.16877],[1260921600000,1.16772],[1261008000000,1.16728],[1261094400000,1.16715],[1261180800000,1.16725],[1261267200000,1.16725],[1261353600000,1.16725],[1261440000000,1.16725],[1261526400000,1.16709],[1261612800000,1.16689],[1261699200000,1.16666],[1261785600000,1.16659],[1261872000000,1.16659],[1261958400000,1.16659],[1262044800000,1.16618],[1262131200000,1.16679]], 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, 1.126288],[1231977600000, 1.126288],[1234656000000, 1.126269],[1237075200000, 1.126397],[1239753600000, 1.127000],[1242345600000, 1.120587],[1245024000000, 1.114473],[1247616000000, 1.119624],[1250294400000, 1.143628],[1252972800000, 1.171532],[1255564800000, 1.171666],[1258243200000, 1.170678],[1260835200000, 1.168347]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });