$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1231200000000,2.70175],[1231286400000,2.70175],[1231372800000,2.70175],[1231459200000,2.70175],[1231545600000,2.70175],[1231632000000,2.70175],[1231718400000,2.70175],[1231804800000,2.70175],[1231891200000,2.70175],[1231977600000,2.70175],[1232064000000,2.70175],[1232150400000,2.70175],[1232236800000,null],[1232323200000,2.70175],[1232409600000,2.70175],[1232496000000,2.70175],[1232582400000,2.70175],[1232668800000,2.70175],[1232755200000,2.70175],[1232841600000,2.70175],[1232928000000,2.70175],[1233014400000,2.70175],[1233100800000,2.70175],[1233187200000,2.70175],[1233273600000,2.70175],[1233360000000,2.70175],[1233446400000,2.70175],[1233532800000,2.70175],[1233619200000,2.70175],[1233705600000,2.70175],[1233792000000,2.70175],[1233878400000,2.70175],[1233964800000,2.70175],[1234051200000,2.70175],[1234137600000,2.70175],[1234224000000,2.70175],[1234310400000,2.70175],[1234396800000,2.70175],[1234483200000,2.70175],[1234569600000,null],[1234656000000,null],[1234742400000,2.70175],[1234828800000,2.70175],[1234915200000,2.70175],[1235001600000,2.70175],[1235088000000,2.70175],[1235174400000,2.70175],[1235260800000,2.70175],[1235347200000,2.70175],[1235433600000,2.70175],[1235520000000,2.70175],[1235606400000,2.70175],[1235692800000,2.70175],[1235779200000,2.70175],[1235865600000,2.70175],[1235952000000,2.70175],[1236038400000,2.70175],[1236124800000,2.70175],[1236211200000,2.70175],[1236297600000,2.70175],[1236384000000,2.70175],[1236470400000,2.70175],[1236556800000,2.70175],[1236643200000,2.70175],[1236729600000,null],[1236816000000,2.70175],[1236902400000,2.70175],[1236988800000,2.70175],[1237075200000,2.70175],[1237161600000,2.70175],[1237248000000,2.70175],[1237334400000,2.70175],[1237420800000,2.70175],[1237507200000,2.70175],[1237593600000,2.70175],[1237680000000,2.70175],[1237766400000,2.70175],[1237852800000,2.70175],[1237939200000,2.70175],[1238025600000,2.70175],[1238112000000,2.70175],[1238198400000,2.70175],[1238284800000,2.70175],[1238371200000,2.70175],[1238457600000,2.70175],[1238544000000,2.70175],[1238630400000,2.70175],[1238716800000,2.70175],[1238803200000,2.70175],[1238889600000,2.70175],[1238976000000,2.70175],[1239062400000,2.70175],[1239148800000,2.70175],[1239235200000,2.70175],[1239321600000,2.70175],[1239408000000,2.70175],[1239494400000,2.70175],[1239580800000,2.70175],[1239667200000,2.70175],[1239753600000,2.70175],[1239840000000,2.70175],[1239926400000,2.70175],[1240012800000,2.70175],[1240099200000,2.70175],[1240185600000,2.70175],[1240272000000,2.70175],[1240358400000,2.70175],[1240444800000,2.70175],[1240531200000,2.70175],[1240617600000,2.70175],[1240704000000,2.70175],[1240790400000,2.70175],[1240876800000,2.70175],[1240963200000,2.70175],[1241049600000,2.70175],[1241136000000,2.70175],[1241222400000,2.70175],[1241308800000,null],[1241395200000,2.70175],[1241481600000,2.70175],[1241568000000,2.70175],[1241654400000,2.70175],[1241740800000,2.70723],[1241827200000,2.6926],[1241913600000,2.6926],[1242000000000,2.6926],[1242086400000,2.6926],[1242172800000,2.68614],[1242259200000,2.67551],[1242345600000,2.67491],[1242432000000,2.67442],[1242518400000,2.67442],[1242604800000,2.67442],[1242691200000,2.67417],[1242777600000,2.67396],[1242864000000,2.67232],[1242950400000,2.67232],[1243036800000,2.67228],[1243123200000,2.67228],[1243209600000,2.67228],[1243296000000,2.67221],[1243382400000,2.67333],[1243468800000,2.67333],[1243555200000,2.67326],[1243641600000,2.67316],[1243728000000,2.67316],[1243814400000,2.67316],[1243900800000,2.67035],[1243987200000,2.6707],[1244073600000,2.67017],[1244160000000,2.67091],[1244246400000,2.67084],[1244332800000,2.67084],[1244419200000,2.67084],[1244505600000,2.67084],[1244592000000,2.67021],[1244678400000,2.67017],[1244764800000,2.67028],[1244851200000,2.67067],[1244937600000,2.67067],[1245024000000,2.67067],[1245110400000,2.67067],[1245196800000,2.67067],[1245283200000,2.67333],[1245369600000,2.67277],[1245456000000,2.67256],[1245542400000,2.67256],[1245628800000,2.67256],[1245715200000,2.67028],[1245801600000,2.67056],[1245888000000,2.67491],[1245974400000,2.67667],[1246060800000,2.6773],[1246147200000,2.6773],[1246233600000,2.6773],[1246320000000,2.6773],[1246406400000,2.68088],[1246492800000,2.68053],[1246579200000,2.68014],[1246665600000,2.6799],[1246752000000,2.6799],[1246838400000,2.6799],[1246924800000,2.6799],[1247011200000,2.67719],[1247097600000,2.67526],[1247184000000,2.67453],[1247270400000,2.67523],[1247356800000,2.67523],[1247443200000,2.67523],[1247529600000,2.67523],[1247616000000,2.67593],[1247702400000,2.67758],[1247788800000,2.68088],[1247875200000,2.68474],[1247961600000,2.68474],[1248048000000,2.68474],[1248134400000,2.68849],[1248220800000,2.68786],[1248307200000,2.68884],[1248393600000,2.68877],[1248480000000,2.68986],[1248566400000,2.68986],[1248652800000,2.68986],[1248739200000,2.69877],[1248825600000,2.69828],[1248912000000,2.70175],[1248998400000,2.70105],[1249084800000,2.70144],[1249171200000,2.70144],[1249257600000,2.70144],[1249344000000,2.69702],[1249430400000,2.69526],[1249516800000,2.69579],[1249603200000,2.70105],[1249689600000,2.70309],[1249776000000,2.70309],[1249862400000,2.70309],[1249948800000,2.70526],[1250035200000,2.71172],[1250121600000,2.71558],[1250208000000,2.71895],[1250294400000,2.72537],[1250380800000,2.72537],[1250467200000,2.72537],[1250553600000,2.73877],[1250640000000,2.74723],[1250726400000,2.75368],[1250812800000,2.76646],[1250899200000,2.78597],[1250985600000,2.78597],[1251072000000,2.78597],[1251158400000,2.78597],[1251244800000,2.79414],[1251331200000,2.80316],[1251417600000,2.80316],[1251504000000,2.80316],[1251590400000,2.80316],[1251676800000,2.80316],[1251763200000,2.80316],[1251849600000,2.8],[1251936000000,2.80175],[1252022400000,2.80175],[1252108800000,2.80526],[1252195200000,2.80526],[1252281600000,2.80526],[1252368000000,2.80526],[1252454400000,2.80597],[1252540800000,2.80526],[1252627200000,2.80505],[1252713600000,2.80611],[1252800000000,2.80611],[1252886400000,2.80611],[1252972800000,2.80593],[1253059200000,2.80849],[1253145600000,2.80849],[1253232000000,2.8093],[1253318400000,2.8093],[1253404800000,2.8093],[1253491200000,2.8093],[1253577600000,2.8094],[1253664000000,2.8094],[1253750400000,2.8094],[1253836800000,2.8094],[1253923200000,2.8094],[1254009600000,2.8094],[1254096000000,2.8094],[1254182400000,2.81053],[1254268800000,2.81053],[1254355200000,2.80842],[1254441600000,2.81018],[1254528000000,2.81053],[1254614400000,2.81053],[1254700800000,2.81053],[1254787200000,2.81053],[1254873600000,2.81053],[1254960000000,2.81053],[1255046400000,2.81053],[1255132800000,2.81053],[1255219200000,2.81053],[1255305600000,2.81053],[1255392000000,2.81053],[1255478400000,2.80919],[1255564800000,2.80632],[1255651200000,2.8],[1255737600000,2.79649],[1255824000000,2.79649],[1255910400000,2.79649],[1255996800000,2.79649],[1256083200000,2.8],[1256169600000,2.80456],[1256256000000,2.80877],[1256342400000,2.80632],[1256428800000,2.80632],[1256515200000,2.80632],[1256601600000,2.8066],[1256688000000,2.80968],[1256774400000,2.80968],[1256860800000,2.80702],[1256947200000,2.80456],[1257033600000,2.80456],[1257120000000,2.80456],[1257206400000,2.80597],[1257292800000,2.81109],[1257379200000,2.81221],[1257465600000,2.81186],[1257552000000,2.80456],[1257638400000,2.80456],[1257724800000,2.80456],[1257811200000,2.80361],[1257897600000,2.80351],[1257984000000,2.80414],[1258070400000,2.80572],[1258156800000,2.80561],[1258243200000,2.80561],[1258329600000,2.80561],[1258416000000,2.80467],[1258502400000,2.80361],[1258588800000,2.80382],[1258675200000,2.80351],[1258761600000,2.80351],[1258848000000,2.80351],[1258934400000,2.80351],[1259020800000,2.80351],[1259107200000,2.80351],[1259193600000,2.80175],[1259280000000,2.80035],[1259366400000,2.80032],[1259452800000,2.80032],[1259539200000,2.80032],[1259625600000,2.80274],[1259712000000,2.80323],[1259798400000,2.80368],[1259884800000,2.80351],[1259971200000,2.8014],[1260057600000,2.8014],[1260144000000,2.8014],[1260230400000,2.8014],[1260316800000,2.80158],[1260403200000,2.80228],[1260489600000,2.80228],[1260576000000,2.80098],[1260662400000,2.80098],[1260748800000,2.80098],[1260835200000,2.80021],[1260921600000,2.79761],[1261008000000,2.79656],[1261094400000,2.79649],[1261180800000,2.79649],[1261267200000,2.79649],[1261353600000,2.79649],[1261440000000,2.79649],[1261526400000,2.79614],[1261612800000,2.79579],[1261699200000,2.79509],[1261785600000,2.79491],[1261872000000,2.79491],[1261958400000,2.79491],[1262044800000,2.79474],[1262131200000,2.79596]], 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, 2.701754],[1231977600000, 2.701754],[1234656000000, 2.701754],[1237075200000, 2.701754],[1239753600000, 2.701754],[1242345600000, 2.683201],[1245024000000, 2.672269],[1247616000000, 2.683904],[1250294400000, 2.741621],[1252972800000, 2.806977],[1255564800000, 2.806635],[1258243200000, 2.804466],[1260835200000, 2.798997]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });