$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1231200000000,11.6995],[1231286400000,11.5959],[1231372800000,11.5959],[1231459200000,11.7441],[1231545600000,11.8215],[1231632000000,11.8215],[1231718400000,11.8215],[1231804800000,11.7167],[1231891200000,11.6661],[1231977600000,11.6397],[1232064000000,11.635],[1232150400000,11.6615],[1232236800000,null],[1232323200000,11.6615],[1232409600000,11.6615],[1232496000000,11.6615],[1232582400000,11.4796],[1232668800000,11.5218],[1232755200000,11.4564],[1232841600000,11.4564],[1232928000000,11.4564],[1233014400000,11.5048],[1233100800000,11.5957],[1233187200000,11.6365],[1233273600000,11.5864],[1233360000000,11.4878],[1233446400000,11.4878],[1233532800000,11.4878],[1233619200000,11.4799],[1233705600000,11.5002],[1233792000000,11.5179],[1233878400000,11.5128],[1233964800000,11.4804],[1234051200000,11.4804],[1234137600000,11.4804],[1234224000000,11.5386],[1234310400000,11.543],[1234396800000,11.5238],[1234483200000,11.4751],[1234569600000,null],[1234656000000,null],[1234742400000,11.4829],[1234828800000,11.4829],[1234915200000,11.3834],[1235001600000,11.3613],[1235088000000,11.381],[1235174400000,11.3594],[1235260800000,11.3594],[1235347200000,11.3594],[1235433600000,11.4288],[1235520000000,11.392],[1235606400000,11.3659],[1235692800000,11.3398],[1235779200000,11.2987],[1235865600000,11.2987],[1235952000000,11.2987],[1236038400000,11.2864],[1236124800000,11.2644],[1236211200000,11.2264],[1236297600000,11.241],[1236384000000,11.3171],[1236470400000,11.3171],[1236556800000,11.3171],[1236643200000,11.3171],[1236729600000,null],[1236816000000,11.2969],[1236902400000,11.3379],[1236988800000,11.3513],[1237075200000,11.3513],[1237161600000,11.3513],[1237248000000,11.404],[1237334400000,11.3761],[1237420800000,11.3824],[1237507200000,11.6676],[1237593600000,11.6355],[1237680000000,11.6355],[1237766400000,11.6355],[1237852800000,11.648],[1237939200000,11.6017],[1238025600000,11.5923],[1238112000000,11.6172],[1238198400000,11.516],[1238284800000,11.516],[1238371200000,11.516],[1238457600000,11.4736],[1238544000000,11.5121],[1238630400000,11.484],[1238716800000,11.5239],[1238803200000,11.5508],[1238889600000,11.5508],[1238976000000,11.5508],[1239062400000,11.5731],[1239148800000,11.4795],[1239235200000,11.4902],[1239321600000,11.4943],[1239408000000,11.4943],[1239494400000,11.4943],[1239580800000,11.4943],[1239667200000,11.4458],[1239753600000,11.5152],[1239840000000,11.5291],[1239926400000,11.4867],[1240012800000,11.4482],[1240099200000,11.4482],[1240185600000,11.4482],[1240272000000,11.4482],[1240358400000,11.4048],[1240444800000,11.4169],[1240531200000,11.4371],[1240617600000,11.5255],[1240704000000,11.5255],[1240790400000,11.5255],[1240876800000,11.4921],[1240963200000,11.4584],[1241049600000,11.5373],[1241136000000,11.5333],[1241222400000,11.5333],[1241308800000,null],[1241395200000,11.5333],[1241481600000,11.5333],[1241568000000,11.574],[1241654400000,11.5597],[1241740800000,11.5767],[1241827200000,11.5293],[1241913600000,11.5293],[1242000000000,11.5293],[1242086400000,11.5293],[1242172800000,11.6222],[1242259200000,11.5944],[1242345600000,11.5663],[1242432000000,11.5736],[1242518400000,11.5736],[1242604800000,11.5736],[1242691200000,11.5401],[1242777600000,11.5987],[1242864000000,11.6102],[1242950400000,11.6694],[1243036800000,11.762],[1243123200000,11.762],[1243209600000,11.762],[1243296000000,11.7617],[1243382400000,11.7117],[1243468800000,11.7482],[1243555200000,11.6961],[1243641600000,11.7938],[1243728000000,11.7938],[1243814400000,11.7938],[1243900800000,11.8542],[1243987200000,11.8475],[1244073600000,11.8495],[1244160000000,11.8094],[1244246400000,11.7868],[1244332800000,11.7868],[1244419200000,11.7868],[1244505600000,11.7868],[1244592000000,11.6697],[1244678400000,11.754],[1244764800000,11.7359],[1244851200000,11.7485],[1244937600000,11.7485],[1245024000000,11.7485],[1245110400000,11.6861],[1245196800000,11.7156],[1245283200000,11.7132],[1245369600000,11.7445],[1245456000000,11.7422],[1245542400000,11.7422],[1245628800000,11.7422],[1245715200000,11.7158],[1245801600000,11.7519],[1245888000000,11.8318],[1245974400000,11.755],[1246060800000,11.8347],[1246147200000,11.8347],[1246233600000,11.8347],[1246320000000,11.8347],[1246406400000,11.8598],[1246492800000,11.8169],[1246579200000,11.8159],[1246665600000,11.8148],[1246752000000,11.8148],[1246838400000,11.8148],[1246924800000,11.7629],[1247011200000,11.7968],[1247097600000,11.7644],[1247184000000,11.8043],[1247270400000,11.7916],[1247356800000,11.7916],[1247443200000,11.7916],[1247529600000,11.8195],[1247616000000,11.8203],[1247702400000,11.8589],[1247788800000,11.8827],[1247875200000,11.8809],[1247961600000,11.8809],[1248048000000,11.8809],[1248134400000,11.9423],[1248220800000,11.934],[1248307200000,11.9456],[1248393600000,11.942],[1248480000000,11.9479],[1248566400000,11.9479],[1248652800000,11.9479],[1248739200000,11.9938],[1248825600000,11.9981],[1248912000000,11.9606],[1248998400000,11.9401],[1249084800000,11.9592],[1249171200000,11.9592],[1249257600000,11.9592],[1249344000000,12.0209],[1249430400000,12.0525],[1249516800000,12.0506],[1249603200000,12.0657],[1249689600000,12.0595],[1249776000000,12.0595],[1249862400000,12.0595],[1249948800000,11.9808],[1250035200000,11.9964],[1250121600000,12.022],[1250208000000,12.0735],[1250294400000,12.1185],[1250380800000,12.1185],[1250467200000,12.1185],[1250553600000,12.0972],[1250640000000,12.1582],[1250726400000,12.1927],[1250812800000,12.2932],[1250899200000,12.4264],[1250985600000,12.4264],[1251072000000,12.4264],[1251158400000,12.4264],[1251244800000,12.4302],[1251331200000,12.4688],[1251417600000,12.4548],[1251504000000,12.4942],[1251590400000,12.4942],[1251676800000,12.4942],[1251763200000,12.4942],[1251849600000,12.4618],[1251936000000,12.4576],[1252022400000,12.4993],[1252108800000,12.495],[1252195200000,12.495],[1252281600000,12.495],[1252368000000,12.495],[1252454400000,12.5914],[1252540800000,12.5852],[1252627200000,12.6077],[1252713600000,12.6679],[1252800000000,12.6679],[1252886400000,12.6679],[1252972800000,12.6388],[1253059200000,12.6602],[1253145600000,12.6986],[1253232000000,12.7108],[1253318400000,12.6861],[1253404800000,12.6861],[1253491200000,12.6861],[1253577600000,12.6404],[1253664000000,12.7097],[1253750400000,12.7112],[1253836800000,12.7034],[1253923200000,12.6764],[1254009600000,12.6764],[1254096000000,12.6764],[1254182400000,12.6614],[1254268800000,12.6362],[1254355200000,12.6813],[1254441600000,12.6324],[1254528000000,12.6318],[1254614400000,12.6318],[1254700800000,12.6318],[1254787200000,12.6582],[1254873600000,12.705],[1254960000000,12.7047],[1255046400000,12.7428],[1255132800000,12.7185],[1255219200000,12.7185],[1255305600000,12.7185],[1255392000000,12.7185],[1255478400000,12.7161],[1255564800000,12.7488],[1255651200000,12.728],[1255737600000,12.6907],[1255824000000,12.6907],[1255910400000,12.6907],[1255996800000,12.7028],[1256083200000,12.7468],[1256169600000,12.7616],[1256256000000,12.7816],[1256342400000,12.7754],[1256428800000,12.7754],[1256515200000,12.7754],[1256601600000,12.7634],[1256688000000,12.731],[1256774400000,12.7089],[1256860800000,12.6978],[1256947200000,12.708],[1257033600000,12.708],[1257120000000,12.708],[1257206400000,12.7187],[1257292800000,12.6856],[1257379200000,12.7357],[1257465600000,12.7706],[1257552000000,12.7468],[1257638400000,12.7468],[1257724800000,12.7468],[1257811200000,12.8055],[1257897600000,12.7977],[1257984000000,12.8128],[1258070400000,12.7888],[1258156800000,12.78],[1258243200000,12.78],[1258329600000,12.78],[1258416000000,12.8019],[1258502400000,12.7914],[1258588800000,12.8141],[1258675200000,12.7696],[1258761600000,12.7616],[1258848000000,12.7616],[1258934400000,12.7616],[1259020800000,12.8059],[1259107200000,12.7974],[1259193600000,12.8593],[1259280000000,12.8529],[1259366400000,12.8527],[1259452800000,12.8527],[1259539200000,12.8527],[1259625600000,12.8618],[1259712000000,12.8718],[1259798400000,12.882],[1259884800000,12.8784],[1259971200000,12.8401],[1260057600000,12.8401],[1260144000000,12.8401],[1260230400000,12.6989],[1260316800000,12.7209],[1260403200000,12.7226],[1260489600000,12.7122],[1260576000000,12.7045],[1260662400000,12.7045],[1260748800000,12.7045],[1260835200000,12.6594],[1260921600000,12.6041],[1261008000000,12.6129],[1261094400000,12.5197],[1261180800000,12.5232],[1261267200000,12.5232],[1261353600000,12.5232],[1261440000000,12.5039],[1261526400000,12.4597],[1261612800000,12.4358],[1261699200000,12.4958],[1261785600000,12.4951],[1261872000000,12.4951],[1261958400000,12.4951],[1262044800000,12.4943],[1262131200000,12.5051]], 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, 11.623409],[1231977600000, 11.623409],[1234656000000, 11.442429],[1237075200000, 11.426339],[1239753600000, 11.492838],[1242345600000, 11.622472],[1245024000000, 11.772872],[1247616000000, 11.869827],[1250294400000, 12.192162],[1252972800000, 12.617977],[1255564800000, 12.712478],[1258243200000, 12.781567],[1260835200000, 12.638720]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });