$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1231200000000,6.94432],[1231286400000,6.83556],[1231372800000,6.83556],[1231459200000,7.01766],[1231545600000,7.02539],[1231632000000,7.02539],[1231718400000,7.02539],[1231804800000,6.8733],[1231891200000,6.87289],[1231977600000,6.87163],[1232064000000,6.84241],[1232150400000,6.87472],[1232236800000,null],[1232323200000,6.87472],[1232409600000,6.85265],[1232496000000,6.72391],[1232582400000,6.73307],[1232668800000,6.64916],[1232755200000,6.58786],[1232841600000,6.58786],[1232928000000,6.58786],[1233014400000,6.65445],[1233100800000,6.755],[1233187200000,6.73363],[1233273600000,6.70216],[1233360000000,6.63595],[1233446400000,6.63595],[1233532800000,6.63595],[1233619200000,6.60651],[1233705600000,6.64098],[1233792000000,6.62585],[1233878400000,6.62131],[1233964800000,6.56336],[1234051200000,6.56336],[1234137600000,6.56336],[1234224000000,6.65084],[1234310400000,6.62943],[1234396800000,6.65393],[1234483200000,6.6385],[1234569600000,null],[1234656000000,null],[1234742400000,6.61289],[1234828800000,6.60421],[1234915200000,6.56733],[1235001600000,6.55687],[1235088000000,6.55599],[1235174400000,6.4976],[1235260800000,6.4976],[1235347200000,6.4976],[1235433600000,6.61018],[1235520000000,6.63797],[1235606400000,6.63534],[1235692800000,6.6286],[1235779200000,6.56012],[1235865600000,6.56012],[1235952000000,6.56012],[1236038400000,6.54934],[1236124800000,6.5517],[1236211200000,6.53995],[1236297600000,6.54748],[1236384000000,6.65892],[1236470400000,6.65892],[1236556800000,6.65892],[1236643200000,6.65892],[1236729600000,null],[1236816000000,6.66479],[1236902400000,6.46446],[1236988800000,6.4693],[1237075200000,6.4693],[1237161600000,6.4693],[1237248000000,6.51212],[1237334400000,6.50182],[1237420800000,6.59412],[1237507200000,6.84216],[1237593600000,6.82279],[1237680000000,6.82279],[1237766400000,6.82279],[1237852800000,6.82286],[1237939200000,6.81233],[1238025600000,6.82231],[1238112000000,6.86322],[1238198400000,6.73984],[1238284800000,6.73984],[1238371200000,6.73984],[1238457600000,6.70137],[1238544000000,6.76291],[1238630400000,6.7519],[1238716800000,6.75743],[1238803200000,6.78475],[1238889600000,6.78475],[1238976000000,6.78475],[1239062400000,6.81571],[1239148800000,6.72843],[1239235200000,6.7158],[1239321600000,6.69738],[1239408000000,6.69738],[1239494400000,6.69738],[1239580800000,6.69738],[1239667200000,6.69738],[1239753600000,6.74709],[1239840000000,6.71736],[1239926400000,6.71708],[1240012800000,6.60708],[1240099200000,6.60708],[1240185600000,6.60708],[1240272000000,6.60708],[1240358400000,6.58835],[1240444800000,6.59294],[1240531200000,6.64144],[1240617600000,6.74655],[1240704000000,6.74655],[1240790400000,6.74655],[1240876800000,6.70265],[1240963200000,6.65237],[1241049600000,6.78095],[1241136000000,6.78465],[1241222400000,6.78465],[1241308800000,null],[1241395200000,6.78465],[1241481600000,6.78465],[1241568000000,6.82876],[1241654400000,6.79829],[1241740800000,6.79834],[1241827200000,6.80373],[1241913600000,6.80373],[1242000000000,6.80373],[1242086400000,6.80373],[1242172800000,6.94262],[1242259200000,6.90036],[1242345600000,6.8689],[1242432000000,6.85852],[1242518400000,6.85852],[1242604800000,6.85852],[1242691200000,6.80405],[1242777600000,6.84896],[1242864000000,6.89397],[1242950400000,6.91191],[1243036800000,6.99289],[1243123200000,6.99289],[1243209600000,6.99289],[1243296000000,7.02974],[1243382400000,6.99716],[1243468800000,6.9978],[1243555200000,6.98327],[1243641600000,7.09979],[1243728000000,7.09979],[1243814400000,7.09979],[1243900800000,7.14804],[1243987200000,7.15945],[1244073600000,7.12456],[1244160000000,7.09325],[1244246400000,7.10381],[1244332800000,7.10381],[1244419200000,7.10381],[1244505600000,7.10381],[1244592000000,7.00814],[1244678400000,7.07984],[1244764800000,7.03097],[1244851200000,7.05941],[1244937600000,7.05941],[1245024000000,7.05941],[1245110400000,6.9767],[1245196800000,7.01542],[1245283200000,6.98509],[1245369600000,7.06283],[1245456000000,7.0267],[1245542400000,7.0267],[1245628800000,7.0267],[1245715200000,6.99639],[1245801600000,7.0779],[1245888000000,7.04407],[1245974400000,6.94542],[1246060800000,7.04136],[1246147200000,7.04136],[1246233600000,7.04136],[1246320000000,7.04136],[1246406400000,7.07441],[1246492800000,7.06557],[1246579200000,7.04377],[1246665600000,7.0263],[1246752000000,7.0263],[1246838400000,7.0263],[1246924800000,6.98389],[1247011200000,7.04598],[1247097600000,6.99038],[1247184000000,7.0532],[1247270400000,7.00045],[1247356800000,7.00045],[1247443200000,7.00045],[1247529600000,7.04097],[1247616000000,7.03879],[1247702400000,7.08311],[1247788800000,7.12421],[1247875200000,7.09601],[1247961600000,7.09601],[1248048000000,7.09601],[1248134400000,7.16762],[1248220800000,7.17463],[1248307200000,7.17149],[1248393600000,7.17206],[1248480000000,7.16735],[1248566400000,7.16735],[1248652800000,7.16735],[1248739200000,7.20286],[1248825600000,7.1875],[1248912000000,7.11297],[1248998400000,7.06412],[1249084800000,7.10647],[1249171200000,7.10647],[1249257600000,7.10647],[1249344000000,7.21107],[1249430400000,7.22823],[1249516800000,7.22852],[1249603200000,7.23481],[1249689600000,7.23466],[1249776000000,7.23466],[1249862400000,7.23466],[1249948800000,7.13571],[1250035200000,7.15512],[1250121600000,7.17906],[1250208000000,7.22576],[1250294400000,7.27227],[1250380800000,7.27227],[1250467200000,7.27227],[1250553600000,7.22055],[1250640000000,7.26016],[1250726400000,7.30933],[1250812800000,7.40309],[1250899200000,7.50529],[1250985600000,7.50529],[1251072000000,7.50529],[1251158400000,7.50529],[1251244800000,7.51871],[1251331200000,7.50563],[1251417600000,7.48241],[1251504000000,7.56454],[1251590400000,7.56454],[1251676800000,7.56454],[1251763200000,7.51708],[1251849600000,7.53816],[1251936000000,7.48643],[1252022400000,7.55894],[1252108800000,7.52291],[1252195200000,7.52291],[1252281600000,7.52291],[1252368000000,7.54683],[1252454400000,7.63511],[1252540800000,7.65197],[1252627200000,7.67464],[1252713600000,7.71051],[1252800000000,7.71051],[1252886400000,7.71051],[1252972800000,7.69463],[1253059200000,7.71332],[1253145600000,7.72767],[1253232000000,7.75608],[1253318400000,7.77338],[1253404800000,7.77338],[1253491200000,7.77338],[1253577600000,7.73045],[1253664000000,7.81177],[1253750400000,7.82679],[1253836800000,7.82195],[1253923200000,7.76953],[1254009600000,7.76953],[1254096000000,7.76953],[1254182400000,7.76409],[1254268800000,7.70547],[1254355200000,7.77309],[1254441600000,7.67839],[1254528000000,7.70778],[1254614400000,7.70778],[1254700800000,7.70778],[1254787200000,7.75223],[1254873600000,7.80019],[1254960000000,7.76891],[1255046400000,7.79715],[1255132800000,7.77951],[1255219200000,7.77951],[1255305600000,7.77951],[1255392000000,7.79359],[1255478400000,7.8447],[1255564800000,7.8477],[1255651200000,7.83867],[1255737600000,7.80671],[1255824000000,7.80671],[1255910400000,7.80671],[1255996800000,7.85417],[1256083200000,7.90084],[1256169600000,7.89198],[1256256000000,7.94935],[1256342400000,7.9388],[1256428800000,7.9388],[1256515200000,7.9388],[1256601600000,7.93959],[1256688000000,7.86431],[1256774400000,7.83588],[1256860800000,7.83003],[1256947200000,7.82228],[1257033600000,7.82228],[1257120000000,7.82228],[1257206400000,7.82692],[1257292800000,7.76629],[1257379200000,7.82813],[1257465600000,7.88284],[1257552000000,7.85921],[1257638400000,7.85921],[1257724800000,7.85921],[1257811200000,7.92734],[1257897600000,7.91124],[1257984000000,7.95635],[1258070400000,7.8989],[1258156800000,7.87419],[1258243200000,7.87419],[1258329600000,7.87419],[1258416000000,7.92551],[1258502400000,7.86551],[1258588800000,7.90894],[1258675200000,7.84848],[1258761600000,7.82572],[1258848000000,7.82572],[1258934400000,7.82572],[1259020800000,7.91596],[1259107200000,7.91544],[1259193600000,7.97865],[1259280000000,7.96673],[1259366400000,7.90355],[1259452800000,7.90355],[1259539200000,7.90355],[1259625600000,7.96236],[1259712000000,7.98655],[1259798400000,8.00004],[1259884800000,8.0096],[1259971200000,7.98665],[1260057600000,7.98665],[1260144000000,7.98665],[1260230400000,7.80661],[1260316800000,7.80643],[1260403200000,7.80367],[1260489600000,7.7841],[1260576000000,7.78857],[1260662400000,7.78857],[1260748800000,7.78857],[1260835200000,7.72992],[1260921600000,7.66636],[1261008000000,7.67196],[1261094400000,7.59408],[1261180800000,7.63912],[1261267200000,7.63912],[1261353600000,7.63912],[1261440000000,7.66588],[1261526400000,7.59254],[1261612800000,7.63687],[1261699200000,7.70693],[1261785600000,7.70644],[1261872000000,7.70644],[1261958400000,7.70644],[1262044800000,7.7066],[1262131200000,7.72809]], 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.804900],[1231977600000, 6.804900],[1234656000000, 6.595832],[1237075200000, 6.654726],[1239753600000, 6.706053],[1242345600000, 6.890381],[1245024000000, 7.056228],[1247616000000, 7.086060],[1250294400000, 7.317843],[1252972800000, 7.683012],[1255564800000, 7.821984],[1258243200000, 7.878526],[1260835200000, 7.771488]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });