$(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: [[1168041600000,0.390236],[1168128000000,0.390236],[1168214400000,0.390236],[1168300800000,0.390236],[1168387200000,0.389591],[1168473600000,0.38874],[1168560000000,0.388026],[1168646400000,0.387886],[1168732800000,0.387886],[1168819200000,0.387886],[1168905600000,0.387784],[1168992000000,0.387692],[1169078400000,0.387624],[1169164800000,0.38774],[1169251200000,0.387877],[1169337600000,0.387877],[1169424000000,0.387877],[1169510400000,0.387883],[1169596800000,0.387975],[1169683200000,0.388148],[1169769600000,0.388252],[1169856000000,0.388491],[1169942400000,0.388491],[1170028800000,0.388491],[1170115200000,0.388817],[1170201600000,0.389159],[1170288000000,0.38939],[1170374400000,0.389639],[1170460800000,0.389573],[1170547200000,0.389573],[1170633600000,0.389573],[1170720000000,0.389937],[1170806400000,0.390344],[1170892800000,0.390834],[1170979200000,0.391142],[1171065600000,0.391309],[1171152000000,0.391309],[1171238400000,0.391309],[1171324800000,0.392011],[1171411200000,0.392953],[1171497600000,0.394125],[1171584000000,0.394991],[1171670400000,0.395613],[1171756800000,0.395613],[1171843200000,0.395613],[1171929600000,0.396595],[1172016000000,0.396791],[1172102400000,0.397272],[1172188800000,0.397316],[1172275200000,0.397237],[1172361600000,null],[1172448000000,0.397237],[1172534400000,0.396663],[1172620800000,0.395279],[1172707200000,0.39451],[1172793600000,0.394408],[1172880000000,0.394488],[1172966400000,0.394488],[1173052800000,0.394488],[1173139200000,0.39483],[1173225600000,0.395167],[1173312000000,0.39574],[1173398400000,0.39574],[1173484800000,0.39574],[1173571200000,0.39574],[1173657600000,0.39574],[1173744000000,0.396044],[1173830400000,0.396657],[1173916800000,0.397178],[1174003200000,0.397945],[1174089600000,0.398381],[1174176000000,0.398381],[1174262400000,0.398381],[1174348800000,0.399295],[1174435200000,0.39994],[1174521600000,0.400257],[1174608000000,0.400727],[1174694400000,0.401058],[1174780800000,0.401058],[1174867200000,0.401058],[1174953600000,0.401907],[1175040000000,0.402381],[1175126400000,0.403068],[1175212800000,0.403174],[1175299200000,0.40331],[1175385600000,0.40331],[1175472000000,0.40331],[1175558400000,0.403845],[1175644800000,0.403796],[1175731200000,0.404272],[1175817600000,0.404236],[1175904000000,0.404314],[1175990400000,0.404314],[1176076800000,0.404314],[1176163200000,0.404314],[1176249600000,0.40432],[1176336000000,0.404479],[1176422400000,0.404612],[1176508800000,0.404784],[1176595200000,0.404784],[1176681600000,0.404784],[1176768000000,0.404784],[1176854400000,0.404962],[1176940800000,0.404917],[1177027200000,0.404952],[1177113600000,0.405099],[1177200000000,0.405099],[1177286400000,0.405099],[1177372800000,0.405238],[1177459200000,0.405294],[1177545600000,0.405981],[1177632000000,0.406246],[1177718400000,0.406815],[1177804800000,0.406907],[1177891200000,0.406907],[1177977600000,0.406907],[1178064000000,0.406907],[1178150400000,0.406907],[1178236800000,0.407534],[1178323200000,0.407969],[1178409600000,0.407969],[1178496000000,0.407969],[1178582400000,0.4085],[1178668800000,0.409421],[1178755200000,0.409421],[1178841600000,0.410139],[1178928000000,0.410977],[1179014400000,0.410977],[1179100800000,0.410977],[1179187200000,0.410967],[1179273600000,0.41089],[1179360000000,0.41084],[1179446400000,0.410723],[1179532800000,0.410279],[1179619200000,0.410279],[1179705600000,0.410279],[1179792000000,0.409344],[1179878400000,0.407676],[1179964800000,0.406976],[1180051200000,0.405564],[1180137600000,0.405528],[1180224000000,0.405528],[1180310400000,0.405528],[1180396800000,0.405528],[1180483200000,0.405733],[1180569600000,0.406229],[1180656000000,0.406579],[1180742400000,0.407541],[1180828800000,0.407541],[1180915200000,0.407541],[1181001600000,0.408569],[1181088000000,0.409756],[1181174400000,0.410846],[1181260800000,0.412063],[1181347200000,0.41276],[1181433600000,0.41276],[1181520000000,0.41276],[1181606400000,null],[1181692800000,0.41346],[1181779200000,0.413446],[1181865600000,null],[1181952000000,null],[1182038400000,0.41107],[1182124800000,0.41107],[1182211200000,0.41107],[1182297600000,0.410866],[1182384000000,null],[1182470400000,0.410883],[1182556800000,0.410739],[1182643200000,0.410739],[1182729600000,0.410739],[1182816000000,0.41081],[1182902400000,0.410639],[1182988800000,0.410646],[1183075200000,0.410646],[1183161600000,0.410646],[1183248000000,0.410646],[1183334400000,0.410646],[1183420800000,0.412282],[1183507200000,0.413105],[1183593600000,0.413555],[1183680000000,0.413846],[1183766400000,0.414169],[1183852800000,0.414169],[1183939200000,0.414169],[1184025600000,0.414689],[1184112000000,0.414883],[1184198400000,0.415105],[1184284800000,0.415248],[1184371200000,0.41519],[1184457600000,0.41519],[1184544000000,0.41519],[1184630400000,0.415337],[1184716800000,0.415252],[1184803200000,0.415703],[1184889600000,0.415665],[1184976000000,0.416028],[1185062400000,0.416028],[1185148800000,0.416028],[1185235200000,0.41611],[1185321600000,0.416272],[1185408000000,0.416378],[1185494400000,0.416536],[1185580800000,0.416653],[1185667200000,0.416653],[1185753600000,0.416653],[1185840000000,null],[1185926400000,0.4171],[1186012800000,0.417273],[1186099200000,0.417248],[1186185600000,0.417342],[1186272000000,0.417342],[1186358400000,0.417342],[1186444800000,0.417314],[1186531200000,0.417638],[1186617600000,0.417877],[1186704000000,0.418445],[1186790400000,0.41954],[1186876800000,0.41954],[1186963200000,0.41954],[1187049600000,0.420791],[1187136000000,0.422361],[1187222400000,0.422983],[1187308800000,0.425131],[1187395200000,0.425102],[1187481600000,0.425102],[1187568000000,0.425102],[1187654400000,0.425073],[1187740800000,0.425034],[1187827200000,0.4237],[1187913600000,0.422103],[1188000000000,0.422103],[1188086400000,0.422103],[1188172800000,0.422103],[1188259200000,0.4202],[1188345600000,0.417998],[1188432000000,0.418174],[1188518400000,0.418084],[1188604800000,0.418084],[1188691200000,0.418084],[1188777600000,0.418084],[1188864000000,0.418788],[1188950400000,0.419745],[1189036800000,0.420749],[1189123200000,0.422163],[1189209600000,0.423274],[1189296000000,0.423274],[1189382400000,0.423274],[1189468800000,0.424345],[1189555200000,0.425758],[1189641600000,0.42669],[1189728000000,0.427904],[1189814400000,0.42905],[1189900800000,0.42905],[1189987200000,0.42905],[1190073600000,0.429626],[1190160000000,0.430597],[1190246400000,0.430836],[1190332800000,0.431609],[1190419200000,0.43193],[1190505600000,0.43193],[1190592000000,0.43193],[1190678400000,0.432886],[1190764800000,0.434065],[1190851200000,null],[1190937600000,null],[1191024000000,0.438844],[1191110400000,0.438844],[1191196800000,0.438844],[1191283200000,0.439096],[1191369600000,0.440056],[1191456000000,0.439922],[1191542400000,0.439849],[1191628800000,0.439681],[1191715200000,0.439681],[1191801600000,0.439681],[1191888000000,0.439593],[1191974400000,0.43949],[1192060800000,0.439432],[1192147200000,0.439505],[1192233600000,0.43975],[1192320000000,0.43975],[1192406400000,0.43975],[1192492800000,0.439872],[1192579200000,0.440513],[1192665600000,0.440548],[1192752000000,0.440198],[1192838400000,0.439957],[1192924800000,0.439957],[1193011200000,0.439957],[1193097600000,0.439758],[1193184000000,0.439497],[1193270400000,0.439417],[1193356800000,0.439367],[1193443200000,0.439528],[1193529600000,0.439528],[1193616000000,0.439528],[1193702400000,0.439444],[1193788800000,0.439501],[1193875200000,0.440198],[1193961600000,0.440983],[1194048000000,0.441715],[1194134400000,0.441715],[1194220800000,0.441715],[1194307200000,0.442559],[1194393600000,0.442878],[1194480000000,0.443667],[1194566400000,0.444315],[1194652800000,0.444476],[1194739200000,0.444476],[1194825600000,0.444476],[1194912000000,0.444812],[1194998400000,0.445001],[1195084800000,0.445774],[1195171200000,0.446393],[1195257600000,0.446768],[1195344000000,0.446768],[1195430400000,0.446768],[1195516800000,0.446883],[1195603200000,0.447176],[1195689600000,0.447271],[1195776000000,0.447604],[1195862400000,0.447818],[1195948800000,0.447818],[1196035200000,0.447818],[1196121600000,0.448076],[1196208000000,0.448184],[1196294400000,0.448634],[1196380800000,0.448498],[1196467200000,0.448442],[1196553600000,0.448442],[1196640000000,0.448442],[1196726400000,0.448307],[1196812800000,0.448255],[1196899200000,0.448148],[1196985600000,0.448204],[1197072000000,0.448108],[1197158400000,0.448108],[1197244800000,0.448108],[1197331200000,0.448001],[1197417600000,0.447957],[1197504000000,0.447862],[1197590400000,0.44779],[1197676800000,0.447723],[1197763200000,0.447723],[1197849600000,0.447723],[1197936000000,0.447628],[1198022400000,0.447552],[1198108800000,0.447437],[1198195200000,0.447334],[1198281600000,0.447219],[1198368000000,0.447219],[1198454400000,0.447219],[1198540800000,0.446385],[1198627200000,0.44616],[1198713600000,0.446216],[1198800000000,0.446235],[1198886400000,0.446231]], 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: [[1168819200000, 0.388505],[1168819200000, 0.388505],[1171497600000, 0.393305],[1173916800000, 0.398106],[1176595200000, 0.404870],[1179187200000, 0.408402],[1181865600000, 0.410622],[1184457600000, 0.414913],[1187136000000, 0.420542],[1189814400000, 0.427159],[1192406400000, 0.439698],[1195084800000, 0.445375],[1197676800000, 0.447592]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });