$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1231200000000,6.34788],[1231286400000,6.47674],[1231372800000,6.47674],[1231459200000,6.41525],[1231545600000,6.50975],[1231632000000,6.50975],[1231718400000,6.50975],[1231804800000,6.43741],[1231891200000,6.25719],[1231977600000,6.28296],[1232064000000,6.1537],[1232150400000,6.21754],[1232236800000,null],[1232323200000,6.21754],[1232409600000,6.15458],[1232496000000,6.08415],[1232582400000,6.0818],[1232668800000,6.09912],[1232755200000,6.12429],[1232841600000,6.12429],[1232928000000,6.12429],[1233014400000,6.30503],[1233100800000,6.26558],[1233187200000,6.3178],[1233273600000,6.32429],[1233360000000,6.20844],[1233446400000,6.20844],[1233532800000,6.20844],[1233619200000,6.19886],[1233705600000,6.16125],[1233792000000,6.19655],[1233878400000,6.24934],[1233964800000,6.15769],[1234051200000,6.15769],[1234137600000,6.15769],[1234224000000,6.27225],[1234310400000,6.29307],[1234396800000,6.17317],[1234483200000,6.1782],[1234569600000,null],[1234656000000,null],[1234742400000,6.23616],[1234828800000,6.17713],[1234915200000,6.09573],[1235001600000,6.10686],[1235088000000,6.16514],[1235174400000,6.09331],[1235260800000,6.09331],[1235347200000,6.09331],[1235433600000,6.15865],[1235520000000,6.14373],[1235606400000,6.17806],[1235692800000,6.19587],[1235779200000,6.09063],[1235865600000,6.09063],[1235952000000,6.09063],[1236038400000,5.97629],[1236124800000,5.98899],[1236211200000,5.98375],[1236297600000,5.99005],[1236384000000,5.99499],[1236470400000,5.99499],[1236556800000,5.99499],[1236643200000,5.99499],[1236729600000,null],[1236816000000,6.03076],[1236902400000,5.97943],[1236988800000,6.05426],[1237075200000,6.05426],[1237161600000,6.05426],[1237248000000,6.07375],[1237334400000,6.04143],[1237420800000,6.10403],[1237507200000,6.29134],[1237593600000,6.22107],[1237680000000,6.22107],[1237766400000,6.22107],[1237852800000,6.23152],[1237939200000,6.28043],[1238025600000,6.26002],[1238112000000,6.27126],[1238198400000,6.22471],[1238284800000,6.22471],[1238371200000,6.22471],[1238457600000,6.14444],[1238544000000,6.14154],[1238630400000,6.08412],[1238716800000,6.16552],[1238803200000,6.20334],[1238889600000,6.20334],[1238976000000,6.20334],[1239062400000,6.23914],[1239148800000,6.18529],[1239235200000,6.23493],[1239321600000,6.25931],[1239408000000,6.25931],[1239494400000,6.25931],[1239580800000,6.25931],[1239667200000,6.25931],[1239753600000,6.34269],[1239840000000,6.33792],[1239926400000,6.40098],[1240012800000,6.35767],[1240099200000,6.35767],[1240185600000,6.35767],[1240272000000,6.35767],[1240358400000,6.20375],[1240444800000,6.18974],[1240531200000,6.2382],[1240617600000,6.3201],[1240704000000,6.3201],[1240790400000,6.3201],[1240876800000,6.33502],[1240963200000,6.28461],[1241049600000,6.40749],[1241136000000,6.4752],[1241222400000,6.4752],[1241308800000,null],[1241395200000,6.4752],[1241481600000,6.4752],[1241568000000,6.58645],[1241654400000,6.5383],[1241740800000,6.62236],[1241827200000,6.61161],[1241913600000,6.61161],[1242000000000,6.61161],[1242086400000,6.61161],[1242172800000,6.6026],[1242259200000,6.56128],[1242345600000,6.47408],[1242432000000,6.48267],[1242518400000,6.48267],[1242604800000,6.48267],[1242691200000,6.51772],[1242777600000,6.58463],[1242864000000,6.63091],[1242950400000,6.65744],[1243036800000,6.75881],[1243123200000,6.75881],[1243209600000,6.75881],[1243296000000,6.76284],[1243382400000,6.75023],[1243468800000,6.81718],[1243555200000,6.79144],[1243641600000,6.92895],[1243728000000,6.92895],[1243814400000,6.92895],[1243900800000,7.02873],[1243987200000,7.02213],[1244073600000,6.99368],[1244160000000,6.83653],[1244246400000,6.89237],[1244332800000,6.89237],[1244419200000,6.89237],[1244505600000,6.89237],[1244592000000,6.89712],[1244678400000,6.92363],[1244764800000,6.89061],[1244851200000,6.78572],[1244937600000,6.78572],[1245024000000,6.78572],[1245110400000,6.7188],[1245196800000,6.77186],[1245283200000,6.67639],[1245369600000,6.72891],[1245456000000,6.75562],[1245542400000,6.75562],[1245628800000,6.75562],[1245715200000,6.64505],[1245801600000,6.60754],[1245888000000,6.6408],[1245974400000,6.56428],[1246060800000,6.65244],[1246147200000,6.65244],[1246233600000,6.65244],[1246320000000,6.65244],[1246406400000,6.63538],[1246492800000,6.63748],[1246579200000,6.62378],[1246665600000,6.6035],[1246752000000,6.6035],[1246838400000,6.6035],[1246924800000,6.55475],[1247011200000,6.59342],[1247097600000,6.54006],[1247184000000,6.58988],[1247270400000,6.53755],[1247356800000,6.53755],[1247443200000,6.53755],[1247529600000,6.56143],[1247616000000,6.66132],[1247702400000,6.79913],[1247788800000,6.83856],[1247875200000,6.85202],[1247961600000,6.85202],[1248048000000,6.85202],[1248134400000,6.93756],[1248220800000,6.9446],[1248307200000,6.92489],[1248393600000,6.98685],[1248480000000,7.07896],[1248566400000,7.07896],[1248652800000,7.07896],[1248739200000,7.11139],[1248825600000,7.11552],[1248912000000,7.08189],[1248998400000,7.09842],[1249084800000,7.14519],[1249171200000,7.14519],[1249257600000,7.14519],[1249344000000,7.19785],[1249430400000,7.18919],[1249516800000,7.13949],[1249603200000,7.17568],[1249689600000,7.11734],[1249776000000,7.11734],[1249862400000,7.11734],[1249948800000,7.12827],[1250035200000,7.04644],[1250121600000,7.01511],[1250208000000,7.16824],[1250294400000,7.1588],[1250380800000,7.1588],[1250467200000,7.1588],[1250553600000,7.0315],[1250640000000,7.07454],[1250726400000,7.07358],[1250812800000,7.19856],[1250899200000,7.32129],[1250985600000,7.32129],[1251072000000,7.32129],[1251158400000,7.32129],[1251244800000,7.40162],[1251331200000,7.32197],[1251417600000,7.3078],[1251504000000,7.39299],[1251590400000,7.39299],[1251676800000,7.39299],[1251763200000,7.21959],[1251849600000,7.28852],[1251936000000,7.22307],[1252022400000,7.27131],[1252108800000,7.31819],[1252195200000,7.31819],[1252281600000,7.31819],[1252368000000,7.42552],[1252454400000,7.47533],[1252540800000,7.39983],[1252627200000,7.3636],[1252713600000,7.42078],[1252800000000,7.42078],[1252886400000,7.42078],[1252972800000,7.33314],[1253059200000,7.36967],[1253145600000,7.4815],[1253232000000,7.51606],[1253318400000,7.47433],[1253404800000,7.47433],[1253491200000,7.47433],[1253577600000,7.4375],[1253664000000,7.49607],[1253750400000,7.49427],[1253836800000,7.46351],[1253923200000,7.32521],[1254009600000,7.32521],[1254096000000,7.32521],[1254182400000,7.3218],[1254268800000,7.34742],[1254355200000,7.46085],[1254441600000,7.46381],[1254528000000,7.34368],[1254614400000,7.34368],[1254700800000,7.34368],[1254787200000,7.46028],[1254873600000,7.53599],[1254960000000,7.57101],[1255046400000,7.57101],[1255132800000,7.67291],[1255219200000,7.67291],[1255305600000,7.67291],[1255392000000,7.75627],[1255478400000,7.77398],[1255564800000,7.77338],[1255651200000,7.72231],[1255737600000,7.66632],[1255824000000,7.66632],[1255910400000,7.66632],[1255996800000,7.69806],[1256083200000,7.7361],[1256169600000,7.57037],[1256256000000,7.62865],[1256342400000,7.5998],[1256428800000,7.5998],[1256515200000,7.5998],[1256601600000,7.56893],[1256688000000,7.51973],[1256774400000,7.46719],[1256860800000,7.45692],[1256947200000,7.41577],[1257033600000,7.41577],[1257120000000,7.41577],[1257206400000,7.40266],[1257292800000,7.41657],[1257379200000,7.54409],[1257465600000,7.53867],[1257552000000,7.4604],[1257638400000,7.4604],[1257724800000,7.4604],[1257811200000,7.5191],[1257897600000,7.54342],[1257984000000,7.65773],[1258070400000,7.59908],[1258156800000,7.59403],[1258243200000,7.59403],[1258329600000,7.59403],[1258416000000,7.65077],[1258502400000,7.55359],[1258588800000,7.63364],[1258675200000,7.5276],[1258761600000,7.45603],[1258848000000,7.45603],[1258934400000,7.45603],[1259020800000,7.54729],[1259107200000,7.56259],[1259193600000,7.62892],[1259280000000,7.57346],[1259366400000,7.44491],[1259452800000,7.44491],[1259539200000,7.44491],[1259625600000,7.55577],[1259712000000,7.64096],[1259798400000,7.64789],[1259884800000,7.61096],[1259971200000,7.62472],[1260057600000,7.62472],[1260144000000,7.62472],[1260230400000,7.53699],[1260316800000,7.56416],[1260403200000,7.53977],[1260489600000,7.60349],[1260576000000,7.60947],[1260662400000,7.60947],[1260748800000,7.60947],[1260835200000,7.50076],[1260921600000,7.49973],[1261008000000,7.51984],[1261094400000,7.42827],[1261180800000,7.4708],[1261267200000,7.4708],[1261353600000,7.4708],[1261440000000,7.55114],[1261526400000,7.53123],[1261612800000,7.59201],[1261699200000,7.61988],[1261785600000,7.6194],[1261872000000,7.6194],[1261958400000,7.6194],[1262044800000,7.61403],[1262131200000,7.6678]], 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, 6.281036],[1231977600000, 6.281036],[1234656000000, 6.170791],[1237075200000, 6.110294],[1239753600000, 6.269619],[1242345600000, 6.627568],[1245024000000, 6.789276],[1247616000000, 6.788787],[1250294400000, 7.199934],[1252972800000, 7.384775],[1255564800000, 7.580604],[1258243200000, 7.519894],[1260835200000, 7.574538]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });