$(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: 'Курс ISK, грн'}, 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: 'Курс ISK', data: [[1231200000000,0.036063],[1231286400000,0.035399],[1231372800000,0.035399],[1231459200000,0.036155],[1231545600000,0.036333],[1231632000000,0.036333],[1231718400000,0.036333],[1231804800000,0.035563],[1231891200000,0.035213],[1231977600000,0.034977],[1232064000000,0.034743],[1232150400000,0.035234],[1232236800000,null],[1232323200000,0.035234],[1232409600000,0.035],[1232496000000,0.034331],[1232582400000,0.034278],[1232668800000,0.034475],[1232755200000,0.033973],[1232841600000,0.033973],[1232928000000,0.033973],[1233014400000,0.034491],[1233100800000,0.034979],[1233187200000,0.035208],[1233273600000,0.034812],[1233360000000,0.034029],[1233446400000,0.034029],[1233532800000,0.034029],[1233619200000,0.03388],[1233705600000,0.034116],[1233792000000,0.034034],[1233878400000,0.034063],[1233964800000,0.033976],[1234051200000,0.033976],[1234137600000,0.033976],[1234224000000,0.034538],[1234310400000,0.03443],[1234396800000,0.034353],[1234483200000,0.034074],[1234569600000,null],[1234656000000,null],[1234742400000,0.034047],[1234828800000,0.033893],[1234915200000,0.033545],[1235001600000,0.033445],[1235088000000,0.033734],[1235174400000,0.033431],[1235260800000,0.033431],[1235347200000,0.033431],[1235433600000,0.033981],[1235520000000,0.033888],[1235606400000,0.033973],[1235692800000,0.033938],[1235779200000,0.033572],[1235865600000,0.033572],[1235952000000,0.033572],[1236038400000,0.033445],[1236124800000,0.033495],[1236211200000,0.033336],[1236297600000,0.033336],[1236384000000,0.033609],[1236470400000,0.033609],[1236556800000,0.033609],[1236643200000,0.033609],[1236729600000,null],[1236816000000,0.033949],[1236902400000,0.033938],[1236988800000,0.034265],[1237075200000,0.034265],[1237161600000,0.034265],[1237248000000,0.034629],[1237334400000,0.034363],[1237420800000,0.034862],[1237507200000,0.036299],[1237593600000,0.035975],[1237680000000,0.035975],[1237766400000,0.035975],[1237852800000,0.035999],[1237939200000,0.035863],[1238025600000,0.035829],[1238112000000,0.036129],[1238198400000,0.035301],[1238284800000,0.035301],[1238371200000,0.035301],[1238457600000,0.03503],[1238544000000,0.035335],[1238630400000,0.03517],[1238716800000,0.035558],[1238803200000,0.035646],[1238889600000,0.035646],[1238976000000,0.035646],[1239062400000,0.035834],[1239148800000,0.035194],[1239235200000,0.035131],[1239321600000,0.035242],[1239408000000,0.035242],[1239494400000,0.035242],[1239580800000,0.035242],[1239667200000,0.035242],[1239753600000,0.03525],[1239840000000,0.034977],[1239926400000,0.035038],[1240012800000,0.034671],[1240099200000,0.034671],[1240185600000,0.034671],[1240272000000,0.034671],[1240358400000,0.034337],[1240444800000,0.034377],[1240531200000,0.03465],[1240617600000,0.035133],[1240704000000,0.035133],[1240790400000,0.035133],[1240876800000,0.034849],[1240963200000,0.034496],[1241049600000,0.035224],[1241136000000,0.035247],[1241222400000,0.035247],[1241308800000,null],[1241395200000,0.035247],[1241481600000,0.035247],[1241568000000,0.035587],[1241654400000,0.035372],[1241740800000,0.035553],[1241827200000,0.035525],[1241913600000,0.035525],[1242000000000,0.035525],[1242086400000,0.035525],[1242172800000,0.036121],[1242259200000,0.03582],[1242345600000,0.035654],[1242432000000,0.035529],[1242518400000,0.035529],[1242604800000,0.035529],[1242691200000,0.035463],[1242777600000,0.03577],[1242864000000,0.035953],[1242950400000,0.036166],[1243036800000,0.036693],[1243123200000,0.036693],[1243209600000,0.036693],[1243296000000,0.036792],[1243382400000,0.03654],[1243468800000,0.036521],[1243555200000,0.036402],[1243641600000,0.037036],[1243728000000,0.037036],[1243814400000,0.037036],[1243900800000,0.037318],[1243987200000,0.03737],[1244073600000,0.037281],[1244160000000,0.036997],[1244246400000,0.037212],[1244332800000,0.037212],[1244419200000,0.037212],[1244505600000,0.037212],[1244592000000,0.036631],[1244678400000,0.037006],[1244764800000,0.036658],[1244851200000,0.036755],[1244937600000,0.036755],[1245024000000,0.036755],[1245110400000,0.036351],[1245196800000,0.036456],[1245283200000,0.036361],[1245369600000,0.036564],[1245456000000,0.036592],[1245542400000,0.036592],[1245628800000,0.036592],[1245715200000,0.036367],[1245801600000,0.036686],[1245888000000,0.036879],[1245974400000,0.036669],[1246060800000,0.037089],[1246147200000,0.037089],[1246233600000,0.037089],[1246320000000,0.037089],[1246406400000,0.037238],[1246492800000,0.037133],[1246579200000,0.037004],[1246665600000,0.036895],[1246752000000,0.036895],[1246838400000,0.036895],[1246924800000,0.0366],[1247011200000,0.036884],[1247097600000,0.036548],[1247184000000,0.036772],[1247270400000,0.036547],[1247356800000,0.036547],[1247443200000,0.036547],[1247529600000,0.036742],[1247616000000,0.036793],[1247702400000,0.037074],[1247788800000,0.037228],[1247875200000,0.037176],[1247961600000,0.037176],[1248048000000,0.037176],[1248134400000,0.037563],[1248220800000,0.03757],[1248307200000,0.037499],[1248393600000,0.037599],[1248480000000,0.037609],[1248566400000,0.037609],[1248652800000,0.037609],[1248739200000,0.037845],[1248825600000,0.037732],[1248912000000,0.037449],[1248998400000,0.037303],[1249084800000,0.037534],[1249171200000,0.037534],[1249257600000,0.037534],[1249344000000,0.03791],[1249430400000,0.0381],[1249516800000,0.038177],[1249603200000,0.038145],[1249689600000,0.038139],[1249776000000,0.038139],[1249862400000,0.038139],[1249948800000,0.037758],[1250035200000,0.037752],[1250121600000,0.037816],[1250208000000,0.038192],[1250294400000,0.038285],[1250380800000,0.038285],[1250467200000,0.038285],[1250553600000,0.037876],[1250640000000,0.038071],[1250726400000,0.03819],[1250812800000,0.038723],[1250899200000,0.039235],[1250985600000,0.039235],[1251072000000,0.039235],[1251158400000,0.039235],[1251244800000,0.039333],[1251331200000,0.039311],[1251417600000,0.039306],[1251504000000,0.03957],[1251590400000,0.03957],[1251676800000,0.03957],[1251763200000,0.039317],[1251849600000,0.039388],[1251936000000,0.039154],[1252022400000,0.039471],[1252108800000,0.039319],[1252195200000,0.039319],[1252281600000,0.039319],[1252368000000,0.039506],[1252454400000,0.039911],[1252540800000,0.040036],[1252627200000,0.040096],[1252713600000,0.040246],[1252800000000,0.040246],[1252886400000,0.040246],[1252972800000,0.040153],[1253059200000,0.040327],[1253145600000,0.040493],[1253232000000,0.040618],[1253318400000,0.040598],[1253404800000,0.040598],[1253491200000,0.040598],[1253577600000,0.04047],[1253664000000,0.040807],[1253750400000,0.040815],[1253836800000,0.040774],[1253923200000,0.040503],[1254009600000,0.040503],[1254096000000,0.040503],[1254182400000,0.040464],[1254268800000,0.040185],[1254355200000,0.040415],[1254441600000,0.040153],[1254528000000,0.040152],[1254614400000,0.040152],[1254700800000,0.040152],[1254787200000,0.04037],[1254873600000,0.040663],[1254960000000,0.040586],[1255046400000,0.040776],[1255132800000,0.040741],[1255219200000,0.040741],[1255305600000,0.040741],[1255392000000,0.040782],[1255478400000,0.041036],[1255564800000,0.041041],[1255651200000,0.040902],[1255737600000,0.040864],[1255824000000,0.040864],[1255910400000,0.040864],[1255996800000,0.040999],[1256083200000,0.041196],[1256169600000,0.041125],[1256256000000,0.041405],[1256342400000,0.041424],[1256428800000,0.041424],[1256515200000,0.041424],[1256601600000,0.041426],[1256688000000,0.041071],[1256774400000,0.040825],[1256860800000,0.040794],[1256947200000,0.040792],[1257033600000,0.040792],[1257120000000,0.040792],[1257206400000,0.040735],[1257292800000,0.040494],[1257379200000,0.040795],[1257465600000,0.041083],[1257552000000,0.040963],[1257638400000,0.040963],[1257724800000,0.040963],[1257811200000,0.041285],[1257897600000,0.041234],[1257984000000,0.041439],[1258070400000,0.041145],[1258156800000,0.040995],[1258243200000,0.040995],[1258329600000,0.040995],[1258416000000,0.041248],[1258502400000,0.040985],[1258588800000,0.041214],[1258675200000,0.04095],[1258761600000,0.040818],[1258848000000,0.040818],[1258934400000,0.040818],[1259020800000,0.041239],[1259107200000,0.041242],[1259193600000,0.04153],[1259280000000,0.041476],[1259366400000,0.041055],[1259452800000,0.041055],[1259539200000,0.041055],[1259625600000,0.04138],[1259712000000,0.041527],[1259798400000,0.041578],[1259884800000,0.041658],[1259971200000,0.041484],[1260057600000,0.041484],[1260144000000,0.041484],[1260230400000,0.04071],[1260316800000,0.040677],[1260403200000,0.040671],[1260489600000,0.040566],[1260576000000,0.040621],[1260662400000,0.040621],[1260748800000,0.040621],[1260835200000,0.040308],[1260921600000,0.039979],[1261008000000,0.040016],[1261094400000,0.039419],[1261180800000,0.039402],[1261267200000,0.039402],[1261353600000,0.039402],[1261440000000,0.039487],[1261526400000,0.039238],[1261612800000,0.039225],[1261699200000,0.03955],[1261785600000,0.039547],[1261872000000,0.039547],[1261958400000,0.039547],[1262044800000,0.039564],[1262131200000,0.039658]], 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.035060],[1231977600000, 0.035060],[1234656000000, 0.033915],[1237075200000, 0.034623],[1239753600000, 0.035088],[1242345600000, 0.035918],[1245024000000, 0.036862],[1247616000000, 0.037137],[1250294400000, 0.038458],[1252972800000, 0.040133],[1255564800000, 0.040835],[1258243200000, 0.041039],[1260835200000, 0.040253]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });