$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1231200000000,7.7],[1231286400000,7.7],[1231372800000,7.7],[1231459200000,7.7],[1231545600000,7.7],[1231632000000,7.7],[1231718400000,7.7],[1231804800000,7.7],[1231891200000,7.7],[1231977600000,7.7],[1232064000000,7.7],[1232150400000,7.7],[1232236800000,null],[1232323200000,7.7],[1232409600000,7.7],[1232496000000,7.7],[1232582400000,7.7],[1232668800000,7.7],[1232755200000,7.7],[1232841600000,7.7],[1232928000000,7.7],[1233014400000,7.7],[1233100800000,7.7],[1233187200000,7.7],[1233273600000,7.7],[1233360000000,7.7],[1233446400000,7.7],[1233532800000,7.7],[1233619200000,7.7],[1233705600000,7.7],[1233792000000,7.7],[1233878400000,7.7],[1233964800000,7.7],[1234051200000,7.7],[1234137600000,7.7],[1234224000000,7.7],[1234310400000,7.7],[1234396800000,7.7],[1234483200000,7.7],[1234569600000,null],[1234656000000,null],[1234742400000,7.7],[1234828800000,7.7],[1234915200000,7.7],[1235001600000,7.7],[1235088000000,7.7],[1235174400000,7.7],[1235260800000,7.7],[1235347200000,7.7],[1235433600000,7.7],[1235520000000,7.7],[1235606400000,7.7],[1235692800000,7.7],[1235779200000,7.7],[1235865600000,7.7],[1235952000000,7.7],[1236038400000,7.7],[1236124800000,7.7],[1236211200000,7.7],[1236297600000,7.7],[1236384000000,7.7],[1236470400000,7.7],[1236556800000,7.7],[1236643200000,7.7],[1236729600000,null],[1236816000000,7.7],[1236902400000,7.7],[1236988800000,7.7],[1237075200000,7.7],[1237161600000,7.7],[1237248000000,7.7],[1237334400000,7.7],[1237420800000,7.7],[1237507200000,7.7],[1237593600000,7.7],[1237680000000,7.7],[1237766400000,7.7],[1237852800000,7.7],[1237939200000,7.7],[1238025600000,7.7],[1238112000000,7.7],[1238198400000,7.7],[1238284800000,7.7],[1238371200000,7.7],[1238457600000,7.7],[1238544000000,7.7],[1238630400000,7.7],[1238716800000,7.7],[1238803200000,7.7],[1238889600000,7.7],[1238976000000,7.7],[1239062400000,7.7],[1239148800000,7.7],[1239235200000,7.7],[1239321600000,7.7],[1239408000000,7.7],[1239494400000,7.7],[1239580800000,7.7],[1239667200000,7.7],[1239753600000,7.7],[1239840000000,7.7],[1239926400000,7.7],[1240012800000,7.7],[1240099200000,7.7],[1240185600000,7.7],[1240272000000,7.7],[1240358400000,7.7],[1240444800000,7.7],[1240531200000,7.7],[1240617600000,7.7],[1240704000000,7.7],[1240790400000,7.7],[1240876800000,7.7],[1240963200000,7.7],[1241049600000,7.7],[1241136000000,7.7],[1241222400000,7.7],[1241308800000,null],[1241395200000,7.7],[1241481600000,7.7],[1241568000000,7.7],[1241654400000,7.7],[1241740800000,7.7156],[1241827200000,7.6739],[1241913600000,7.6739],[1242000000000,7.6739],[1242086400000,7.6739],[1242172800000,7.6555],[1242259200000,7.6252],[1242345600000,7.6235],[1242432000000,7.6221],[1242518400000,7.6221],[1242604800000,7.6221],[1242691200000,7.6214],[1242777600000,7.6208],[1242864000000,7.6161],[1242950400000,7.6161],[1243036800000,7.616],[1243123200000,7.616],[1243209600000,7.616],[1243296000000,7.6158],[1243382400000,7.619],[1243468800000,7.619],[1243555200000,7.6188],[1243641600000,7.6185],[1243728000000,7.6185],[1243814400000,7.6185],[1243900800000,7.6105],[1243987200000,7.6115],[1244073600000,7.61],[1244160000000,7.6121],[1244246400000,7.6119],[1244332800000,7.6119],[1244419200000,7.6119],[1244505600000,7.6119],[1244592000000,7.6101],[1244678400000,7.61],[1244764800000,7.6103],[1244851200000,7.6114],[1244937600000,7.6114],[1245024000000,7.6114],[1245110400000,7.6114],[1245196800000,7.6114],[1245283200000,7.619],[1245369600000,7.6174],[1245456000000,7.6168],[1245542400000,7.6168],[1245628800000,7.6168],[1245715200000,7.6103],[1245801600000,7.6111],[1245888000000,7.6235],[1245974400000,7.6285],[1246060800000,7.6303],[1246147200000,7.6303],[1246233600000,7.6303],[1246320000000,7.6303],[1246406400000,7.6405],[1246492800000,7.6395],[1246579200000,7.6384],[1246665600000,7.6377],[1246752000000,7.6377],[1246838400000,7.6377],[1246924800000,7.6377],[1247011200000,7.63],[1247097600000,7.6245],[1247184000000,7.6224],[1247270400000,7.6244],[1247356800000,7.6244],[1247443200000,7.6244],[1247529600000,7.6244],[1247616000000,7.6264],[1247702400000,7.6311],[1247788800000,7.6405],[1247875200000,7.6515],[1247961600000,7.6515],[1248048000000,7.6515],[1248134400000,7.6622],[1248220800000,7.6604],[1248307200000,7.6632],[1248393600000,7.663],[1248480000000,7.6661],[1248566400000,7.6661],[1248652800000,7.6661],[1248739200000,7.6915],[1248825600000,7.6901],[1248912000000,7.7],[1248998400000,7.698],[1249084800000,7.6991],[1249171200000,7.6991],[1249257600000,7.6991],[1249344000000,7.6865],[1249430400000,7.6815],[1249516800000,7.683],[1249603200000,7.698],[1249689600000,7.7038],[1249776000000,7.7038],[1249862400000,7.7038],[1249948800000,7.71],[1250035200000,7.7284],[1250121600000,7.7394],[1250208000000,7.749],[1250294400000,7.7673],[1250380800000,7.7673],[1250467200000,7.7673],[1250553600000,7.8055],[1250640000000,7.8296],[1250726400000,7.848],[1250812800000,7.8844],[1250899200000,7.94],[1250985600000,7.94],[1251072000000,7.94],[1251158400000,7.94],[1251244800000,7.9633],[1251331200000,7.989],[1251417600000,7.989],[1251504000000,7.989],[1251590400000,7.989],[1251676800000,7.989],[1251763200000,7.989],[1251849600000,7.98],[1251936000000,7.985],[1252022400000,7.985],[1252108800000,7.995],[1252195200000,7.995],[1252281600000,7.995],[1252368000000,7.995],[1252454400000,7.997],[1252540800000,7.995],[1252627200000,7.9944],[1252713600000,7.9974],[1252800000000,7.9974],[1252886400000,7.9974],[1252972800000,7.9969],[1253059200000,8.0042],[1253145600000,8.0042],[1253232000000,8.0065],[1253318400000,8.0065],[1253404800000,8.0065],[1253491200000,8.0065],[1253577600000,8.0068],[1253664000000,8.0068],[1253750400000,8.0068],[1253836800000,8.0068],[1253923200000,8.0068],[1254009600000,8.0068],[1254096000000,8.0068],[1254182400000,8.01],[1254268800000,8.01],[1254355200000,8.004],[1254441600000,8.009],[1254528000000,8.01],[1254614400000,8.01],[1254700800000,8.01],[1254787200000,8.01],[1254873600000,8.01],[1254960000000,8.01],[1255046400000,8.01],[1255132800000,8.01],[1255219200000,8.01],[1255305600000,8.01],[1255392000000,8.01],[1255478400000,8.0062],[1255564800000,7.998],[1255651200000,7.98],[1255737600000,7.97],[1255824000000,7.97],[1255910400000,7.97],[1255996800000,7.97],[1256083200000,7.98],[1256169600000,7.993],[1256256000000,8.005],[1256342400000,7.998],[1256428800000,7.998],[1256515200000,7.998],[1256601600000,7.9988],[1256688000000,8.0076],[1256774400000,8.0076],[1256860800000,8],[1256947200000,7.993],[1257033600000,7.993],[1257120000000,7.993],[1257206400000,7.997],[1257292800000,8.0116],[1257379200000,8.0148],[1257465600000,8.0138],[1257552000000,7.993],[1257638400000,7.993],[1257724800000,7.993],[1257811200000,7.9903],[1257897600000,7.99],[1257984000000,7.9918],[1258070400000,7.9963],[1258156800000,7.996],[1258243200000,7.996],[1258329600000,7.996],[1258416000000,7.9933],[1258502400000,7.9903],[1258588800000,7.9909],[1258675200000,7.99],[1258761600000,7.99],[1258848000000,7.99],[1258934400000,7.99],[1259020800000,7.99],[1259107200000,7.99],[1259193600000,7.985],[1259280000000,7.981],[1259366400000,7.9809],[1259452800000,7.9809],[1259539200000,7.9809],[1259625600000,7.9878],[1259712000000,7.9892],[1259798400000,7.9905],[1259884800000,7.99],[1259971200000,7.984],[1260057600000,7.984],[1260144000000,7.984],[1260230400000,7.984],[1260316800000,7.9845],[1260403200000,7.9865],[1260489600000,7.9865],[1260576000000,7.9828],[1260662400000,7.9828],[1260748800000,7.9828],[1260835200000,7.9806],[1260921600000,7.9732],[1261008000000,7.9702],[1261094400000,7.97],[1261180800000,7.97],[1261267200000,7.97],[1261353600000,7.97],[1261440000000,7.97],[1261526400000,7.969],[1261612800000,7.968],[1261699200000,7.966],[1261785600000,7.9655],[1261872000000,7.9655],[1261958400000,7.9655],[1262044800000,7.965],[1262131200000,7.9685]], 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, 7.700000],[1231977600000, 7.700000],[1234656000000, 7.700000],[1237075200000, 7.700000],[1239753600000, 7.700000],[1242345600000, 7.647123],[1245024000000, 7.615967],[1247616000000, 7.649126],[1250294400000, 7.813619],[1252972800000, 7.999883],[1255564800000, 7.998910],[1258243200000, 7.992727],[1260835200000, 7.977142]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });