$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1231200000000,0.74037],[1231286400000,0.74037],[1231372800000,0.74037],[1231459200000,0.74037],[1231545600000,0.74037],[1231632000000,0.74037],[1231718400000,0.74037],[1231804800000,0.740698],[1231891200000,0.740335],[1231977600000,0.739837],[1232064000000,0.738985],[1232150400000,0.73776],[1232236800000,null],[1232323200000,0.73776],[1232409600000,0.734922],[1232496000000,0.733676],[1232582400000,0.733354],[1232668800000,0.732176],[1232755200000,0.731696],[1232841600000,0.731696],[1232928000000,0.731696],[1233014400000,0.731807],[1233100800000,0.731988],[1233187200000,0.732092],[1233273600000,0.732051],[1233360000000,0.73189],[1233446400000,0.73189],[1233532800000,0.73189],[1233619200000,0.731675],[1233705600000,0.731557],[1233792000000,0.731452],[1233878400000,0.731293],[1233964800000,0.73105],[1234051200000,0.73105],[1234137600000,0.73105],[1234224000000,0.730855],[1234310400000,0.730627],[1234396800000,0.730564],[1234483200000,0.730439],[1234569600000,null],[1234656000000,null],[1234742400000,0.730287],[1234828800000,0.730031],[1234915200000,0.729879],[1235001600000,0.729498],[1235088000000,0.729167],[1235174400000,0.72867],[1235260800000,0.72867],[1235347200000,0.72867],[1235433600000,0.727108],[1235520000000,0.725724],[1235606400000,0.723909],[1235692800000,0.723134],[1235779200000,0.722157],[1235865600000,0.722157],[1235952000000,0.722157],[1236038400000,0.721176],[1236124800000,0.720502],[1236211200000,0.719653],[1236297600000,0.719162],[1236384000000,0.718639],[1236470400000,0.718639],[1236556800000,0.718639],[1236643200000,0.718639],[1236729600000,null],[1236816000000,0.715913],[1236902400000,0.714339],[1236988800000,0.713703],[1237075200000,0.713703],[1237161600000,0.713703],[1237248000000,0.71204],[1237334400000,0.711671],[1237420800000,0.710503],[1237507200000,0.709037],[1237593600000,0.707499],[1237680000000,0.707499],[1237766400000,0.707499],[1237852800000,0.706591],[1237939200000,0.705846],[1238025600000,0.704709],[1238112000000,0.703428],[1238198400000,0.703049],[1238284800000,0.703049],[1238371200000,0.703049],[1238457600000,0.702683],[1238544000000,0.702542],[1238630400000,0.701921],[1238716800000,0.701524],[1238803200000,0.701109],[1238889600000,0.701109],[1238976000000,0.701109],[1239062400000,0.700624],[1239148800000,0.69979],[1239235200000,0.699504],[1239321600000,0.698425],[1239408000000,0.69597],[1239494400000,0.69597],[1239580800000,0.69597],[1239667200000,0.694257],[1239753600000,0.690502],[1239840000000,0.689556],[1239926400000,0.686189],[1240012800000,0.684584],[1240099200000,0.684584],[1240185600000,0.684584],[1240272000000,0.684584],[1240358400000,0.684737],[1240444800000,0.683181],[1240531200000,0.683636],[1240617600000,0.683315],[1240704000000,0.683315],[1240790400000,0.683315],[1240876800000,0.683315],[1240963200000,0.682545],[1241049600000,0.681524],[1241136000000,0.6815],[1241222400000,0.6815],[1241308800000,null],[1241395200000,0.6815],[1241481600000,0.6815],[1241568000000,0.682334],[1241654400000,0.682539],[1241740800000,0.683989],[1241827200000,0.680304],[1241913600000,0.680304],[1242000000000,0.680304],[1242086400000,0.680304],[1242172800000,0.679709],[1242259200000,0.676743],[1242345600000,0.67676],[1242432000000,0.676888],[1242518400000,0.676888],[1242604800000,0.676888],[1242691200000,0.677259],[1242777600000,0.677224],[1242864000000,0.677324],[1242950400000,0.677511],[1243036800000,0.677393],[1243123200000,0.677393],[1243209600000,0.677393],[1243296000000,0.677484],[1243382400000,0.678989],[1243468800000,0.679013],[1243555200000,0.679062],[1243641600000,0.679295],[1243728000000,0.679295],[1243814400000,0.679295],[1243900800000,0.678848],[1243987200000,0.679174],[1244073600000,0.679258],[1244160000000,0.680022],[1244246400000,0.680296],[1244332800000,0.680296],[1244419200000,0.680296],[1244505600000,0.680296],[1244592000000,0.679995],[1244678400000,0.6804],[1244764800000,0.681115],[1244851200000,0.681219],[1244937600000,0.681219],[1245024000000,0.681219],[1245110400000,0.681518],[1245196800000,0.681293],[1245283200000,0.68262],[1245369600000,0.681421],[1245456000000,0.681849],[1245542400000,0.681849],[1245628800000,0.681849],[1245715200000,0.680755],[1245801600000,0.680955],[1245888000000,0.680706],[1245974400000,0.680254],[1246060800000,0.679602],[1246147200000,0.679602],[1246233600000,0.679602],[1246320000000,0.679602],[1246406400000,0.679548],[1246492800000,0.679018],[1246579200000,0.678703],[1246665600000,0.679021],[1246752000000,0.679021],[1246838400000,0.679021],[1246924800000,0.679722],[1247011200000,0.679424],[1247097600000,0.678693],[1247184000000,0.679558],[1247270400000,0.679803],[1247356800000,0.679803],[1247443200000,0.679803],[1247529600000,0.680106],[1247616000000,0.680473],[1247702400000,0.681592],[1247788800000,0.682297],[1247875200000,0.68306],[1247961600000,0.68306],[1248048000000,0.68306],[1248134400000,0.684039],[1248220800000,0.683433],[1248307200000,0.683756],[1248393600000,0.683861],[1248480000000,0.684198],[1248566400000,0.684198],[1248652800000,0.684198],[1248739200000,0.68611],[1248825600000,0.686438],[1248912000000,0.687322],[1248998400000,0.686831],[1249084800000,0.687199],[1249171200000,0.687199],[1249257600000,0.687199],[1249344000000,0.686111],[1249430400000,0.68523],[1249516800000,0.685101],[1249603200000,0.686525],[1249689600000,0.686974],[1249776000000,0.686974],[1249862400000,0.686974],[1249948800000,0.687625],[1250035200000,0.689482],[1250121600000,0.690771],[1250208000000,0.691739],[1250294400000,0.693329],[1250380800000,0.693329],[1250467200000,0.693329],[1250553600000,0.696739],[1250640000000,0.699059],[1250726400000,0.700452],[1250812800000,0.703732],[1250899200000,0.708334],[1250985600000,0.708334],[1251072000000,0.708334],[1251158400000,0.708334],[1251244800000,0.710115],[1251331200000,0.712438],[1251417600000,0.712438],[1251504000000,0.712432],[1251590400000,0.712432],[1251676800000,0.712432],[1251763200000,0.712432],[1251849600000,0.71163],[1251936000000,0.712164],[1252022400000,0.712342],[1252108800000,0.713285],[1252195200000,0.713285],[1252281600000,0.713285],[1252368000000,0.713368],[1252454400000,0.713782],[1252540800000,0.713304],[1252627200000,0.713372],[1252713600000,0.714034],[1252800000000,0.714034],[1252886400000,0.714034],[1252972800000,0.714162],[1253059200000,0.714814],[1253145600000,0.714827],[1253232000000,0.715678],[1253318400000,0.715633],[1253404800000,0.715633],[1253491200000,0.715633],[1253577600000,0.715308],[1253664000000,0.714663],[1253750400000,0.713561],[1253836800000,0.711709],[1253923200000,0.702752],[1254009600000,0.702752],[1254096000000,0.702752],[1254182400000,0.693837],[1254268800000,0.691346],[1254355200000,0.695704],[1254441600000,0.698189],[1254528000000,0.700898],[1254614400000,0.700898],[1254700800000,0.700898],[1254787200000,0.702638],[1254873600000,0.704362],[1254960000000,0.708048],[1255046400000,0.708919],[1255132800000,0.713433],[1255219200000,0.713433],[1255305600000,0.713433],[1255392000000,0.714834],[1255478400000,0.717684],[1255564800000,0.716949],[1255651200000,0.715875],[1255737600000,0.71544],[1255824000000,0.71544],[1255910400000,0.71544],[1255996800000,0.716359],[1256083200000,0.718349],[1256169600000,0.719539],[1256256000000,0.721171],[1256342400000,0.720885],[1256428800000,0.720885],[1256515200000,0.720885],[1256601600000,0.721653],[1256688000000,0.722786],[1256774400000,0.72291],[1256860800000,0.723635],[1256947200000,0.722917],[1257033600000,0.722917],[1257120000000,0.722917],[1257206400000,0.724012],[1257292800000,0.724841],[1257379200000,0.724842],[1257465600000,0.724352],[1257552000000,0.722825],[1257638400000,0.722825],[1257724800000,0.722825],[1257811200000,0.72262],[1257897600000,0.722743],[1257984000000,0.722704],[1258070400000,0.722823],[1258156800000,0.722789],[1258243200000,0.722789],[1258329600000,0.722789],[1258416000000,0.72246],[1258502400000,0.721882],[1258588800000,0.72122],[1258675200000,0.720891],[1258761600000,0.720989],[1258848000000,0.720989],[1258934400000,0.720989],[1259020800000,0.720735],[1259107200000,0.720677],[1259193600000,0.720304],[1259280000000,0.719229],[1259366400000,0.718851],[1259452800000,0.718851],[1259539200000,0.718851],[1259625600000,0.719239],[1259712000000,0.719262],[1259798400000,0.719055],[1259884800000,0.718738],[1259971200000,0.716883],[1260057600000,0.716883],[1260144000000,0.716883],[1260230400000,0.714778],[1260316800000,0.703765],[1260403200000,0.694424],[1260489600000,0.688337],[1260576000000,0.674445],[1260662400000,0.674445],[1260748800000,0.674445],[1260835200000,0.652714],[1260921600000,0.648628],[1261008000000,0.647557],[1261094400000,0.647257],[1261180800000,0.64801],[1261267200000,0.64801],[1261353600000,0.64801],[1261440000000,0.647462],[1261526400000,0.647902],[1261612800000,0.647468],[1261699200000,0.647305],[1261785600000,0.647265],[1261872000000,0.647265],[1261958400000,0.647265],[1262044800000,0.64764],[1262131200000,0.647756]], 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, 0.736280],[1231977600000, 0.736280],[1234656000000, 0.729319],[1237075200000, 0.712296],[1239753600000, 0.691443],[1242345600000, 0.679153],[1245024000000, 0.680547],[1247616000000, 0.681909],[1250294400000, 0.697119],[1252972800000, 0.711314],[1255564800000, 0.713693],[1258243200000, 0.721951],[1260835200000, 0.673169]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });