$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1136246400000,0.625759],[1136332800000,0.625759],[1136419200000,0.625759],[1136505600000,0.625945],[1136592000000,0.625968],[1136678400000,0.625968],[1136764800000,0.625968],[1136851200000,0.625968],[1136937600000,0.625844],[1137024000000,0.625736],[1137110400000,0.625891],[1137196800000,0.62579],[1137283200000,0.62579],[1137369600000,0.62579],[1137456000000,0.625984],[1137542400000,0.625961],[1137628800000,0.625743],[1137715200000,0.625743],[1137801600000,0.626178],[1137888000000,0.626178],[1137974400000,0.626178],[1138060800000,0.626201],[1138147200000,0.626357],[1138233600000,0.626318],[1138320000000,0.626395],[1138406400000,0.626489],[1138492800000,0.626489],[1138579200000,0.626489],[1138665600000,0.626489],[1138752000000,null],[1138838400000,null],[1138924800000,null],[1139011200000,null],[1139097600000,null],[1139184000000,0.626862],[1139270400000,0.626862],[1139356800000,0.626815],[1139443200000,0.626979],[1139529600000,0.626878],[1139616000000,0.627205],[1139702400000,0.627205],[1139788800000,0.627205],[1139875200000,0.627547],[1139961600000,0.627508],[1140048000000,0.627477],[1140134400000,0.627368],[1140220800000,0.627384],[1140307200000,0.627384],[1140393600000,0.627384],[1140480000000,0.627462],[1140566400000,0.627446],[1140652800000,0.627353],[1140739200000,0.627407],[1140825600000,0.62786],[1140912000000,0.62786],[1140998400000,0.62786],[1141084800000,0.627953],[1141171200000,0.627992],[1141257600000,0.628188],[1141344000000,0.628156],[1141430400000,0.628266],[1141516800000,0.628266],[1141603200000,0.628266],[1141689600000,0.62825],[1141776000000,0.627914],[1141862400000,0.627914],[1141948800000,0.627485],[1142035200000,0.627392],[1142121600000,0.627392],[1142208000000,0.627392],[1142294400000,0.627306],[1142380800000,0.627524],[1142467200000,0.628203],[1142553600000,0.6285],[1142640000000,0.629001],[1142726400000,0.629001],[1142812800000,0.629001],[1142899200000,0.629283],[1142985600000,0.629111],[1143072000000,0.628845],[1143158400000,0.628923],[1143244800000,0.628594],[1143331200000,0.628594],[1143417600000,0.628594],[1143504000000,0.629323],[1143590400000,0.629582],[1143676800000,0.629048],[1143763200000,0.629127],[1143849600000,0.629911],[1143936000000,0.629911],[1144022400000,0.629911],[1144108800000,0.629597],[1144195200000,0.629723],[1144281600000,0.630336],[1144368000000,0.630478],[1144454400000,0.630226],[1144540800000,0.630226],[1144627200000,0.630226],[1144713600000,0.630937],[1144800000000,0.630384],[1144886400000,0.630301],[1144972800000,0.629299],[1145059200000,0.629299],[1145145600000,0.629299],[1145232000000,0.629299],[1145318400000,0.629299],[1145404800000,0.630144],[1145491200000,0.630242],[1145577600000,0.630255],[1145664000000,0.629595],[1145750400000,0.629595],[1145836800000,0.629595],[1145923200000,0.629595],[1146009600000,0.629989],[1146096000000,0.629521],[1146182400000,0.62964],[1146268800000,0.62995],[1146355200000,0.62995],[1146441600000,0.62995],[1146528000000,0.62995],[1146614400000,0.62995],[1146700800000,0.629952],[1146787200000,0.629949],[1146873600000,0.629953],[1146960000000,0.629953],[1147046400000,0.629953],[1147132800000,0.629953],[1147219200000,0.629953],[1147305600000,0.630874],[1147392000000,0.63076],[1147478400000,0.630603],[1147564800000,0.630603],[1147651200000,0.630603],[1147737600000,0.631392],[1147824000000,0.63007],[1147910400000,0.630779],[1147996800000,0.629832],[1148083200000,0.630066],[1148169600000,0.630066],[1148256000000,0.630066],[1148342400000,0.629473],[1148428800000,0.629864],[1148515200000,0.629438],[1148601600000,0.629141],[1148688000000,0.629553],[1148774400000,0.629553],[1148860800000,0.629553],[1148947200000,0.629031],[1149033600000,0.629015],[1149120000000,0.62977],[1149206400000,0.6296],[1149292800000,0.629567],[1149379200000,0.629567],[1149465600000,0.629567],[1149552000000,0.630496],[1149638400000,0.630085],[1149724800000,0.629926],[1149811200000,0.629877],[1149897600000,0.629832],[1149984000000,0.629832],[1150070400000,0.629832],[1150156800000,0.629832],[1150243200000,0.630623],[1150329600000,0.630848],[1150416000000,0.631256],[1150502400000,0.631437],[1150588800000,0.631437],[1150675200000,0.631437],[1150761600000,0.631106],[1150848000000,0.630967],[1150934400000,0.631331],[1151020800000,0.631444],[1151107200000,0.631042],[1151193600000,0.631042],[1151280000000,0.631042],[1151366400000,0.630949],[1151452800000,0.631319],[1151539200000,0.631319],[1151625600000,0.631244],[1151712000000,0.631598],[1151798400000,0.631598],[1151884800000,0.631598],[1151971200000,0.631849],[1152057600000,0.631762],[1152144000000,0.631694],[1152230400000,0.631566],[1152316800000,0.631757],[1152403200000,0.631757],[1152489600000,0.631757],[1152576000000,0.631975],[1152662400000,0.631845],[1152748800000,0.631914],[1152835200000,0.631661],[1152921600000,0.631599],[1153008000000,0.631599],[1153094400000,0.631599],[1153180800000,0.631489],[1153267200000,0.631124],[1153353600000,0.63106],[1153440000000,0.6319],[1153526400000,0.632066],[1153612800000,0.632066],[1153699200000,0.632066],[1153785600000,0.632477],[1153872000000,0.632276],[1153958400000,0.632223],[1154044800000,0.632771],[1154131200000,0.633576],[1154217600000,0.633576],[1154304000000,0.633576],[1154390400000,0.633626],[1154476800000,0.633385],[1154563200000,0.633521],[1154649600000,0.633089],[1154736000000,0.632957],[1154822400000,0.632957],[1154908800000,0.632957],[1154995200000,0.633716],[1155081600000,0.633371],[1155168000000,0.633056],[1155254400000,0.633548],[1155340800000,0.633152],[1155427200000,0.633152],[1155513600000,0.633152],[1155600000000,0.632911],[1155686400000,0.631132],[1155772800000,0.632158],[1155859200000,0.633735],[1155945600000,0.633266],[1156032000000,0.633266],[1156118400000,0.633266],[1156204800000,0.633974],[1156291200000,0.633909],[1156377600000,0.633636],[1156464000000,0.633636],[1156550400000,0.633636],[1156636800000,0.633636],[1156723200000,0.633636],[1156809600000,0.63357],[1156896000000,0.634246],[1156982400000,0.634523],[1157068800000,0.635005],[1157155200000,0.634966],[1157241600000,0.634966],[1157328000000,0.634966],[1157414400000,0.636138],[1157500800000,0.635317],[1157587200000,0.635679],[1157673600000,0.635939],[1157760000000,0.635342],[1157846400000,0.635342],[1157932800000,0.635342],[1158019200000,0.634883],[1158105600000,0.6355],[1158192000000,0.635335],[1158278400000,0.63554],[1158364800000,0.635777],[1158451200000,0.635777],[1158537600000,0.635777],[1158624000000,0.635477],[1158710400000,0.636316],[1158796800000,0.637105],[1158883200000,0.637358],[1158969600000,0.637668],[1159056000000,0.637668],[1159142400000,0.637668],[1159228800000,0.637529],[1159315200000,0.638391],[1159401600000,0.639079],[1159488000000,0.639525],[1159574400000,0.638908],[1159660800000,0.638908],[1159747200000,0.638908],[1159833600000,0.638906],[1159920000000,0.638906],[1160006400000,0.638906],[1160092800000,0.638909],[1160179200000,0.638906],[1160265600000,0.638906],[1160352000000,0.638906],[1160438400000,0.639284],[1160524800000,0.638333],[1160611200000,0.638034],[1160697600000,0.638047],[1160784000000,0.639118],[1160870400000,0.639118],[1160956800000,0.639118],[1161043200000,0.638449],[1161129600000,0.63858],[1161216000000,0.63862],[1161302400000,0.638416],[1161388800000,0.639037],[1161475200000,0.639037],[1161561600000,0.639037],[1161648000000,0.639314],[1161734400000,0.63904],[1161820800000,0.63908],[1161907200000,0.639571],[1161993600000,0.640082],[1162080000000,0.640082],[1162166400000,0.640082],[1162252800000,0.641368],[1162339200000,0.640943],[1162425600000,0.641483],[1162512000000,0.641392],[1162598400000,0.641544],[1162684800000,0.641544],[1162771200000,0.641544],[1162857600000,0.640772],[1162944000000,0.641312],[1163030400000,0.641997],[1163116800000,0.641961],[1163203200000,0.642126],[1163289600000,0.642126],[1163376000000,0.642126],[1163462400000,0.641945],[1163548800000,0.641931],[1163635200000,0.641786],[1163721600000,0.641553],[1163808000000,0.641533],[1163894400000,0.641533],[1163980800000,0.641533],[1164067200000,0.641351],[1164153600000,0.641596],[1164240000000,0.642107],[1164326400000,0.642333],[1164412800000,0.643107],[1164499200000,0.643107],[1164585600000,0.643107],[1164672000000,0.643837],[1164758400000,0.644136],[1164844800000,0.644851],[1164931200000,0.644675],[1165017600000,0.644461],[1165104000000,0.644461],[1165190400000,0.644461],[1165276800000,0.645163],[1165363200000,0.645634],[1165449600000,0.645498],[1165536000000,0.645485],[1165622400000,0.645409],[1165708800000,0.645409],[1165795200000,0.645409],[1165881600000,0.644542],[1165968000000,0.64489],[1166054400000,0.645241],[1166140800000,0.645902],[1166227200000,0.645163],[1166313600000,0.645163],[1166400000000,0.645163],[1166486400000,0.645761],[1166572800000,0.645683],[1166659200000,0.646177],[1166745600000,0.646031],[1166832000000,0.646083],[1166918400000,0.646083],[1167004800000,0.646083],[1167091200000,0.646083],[1167177600000,0.646083],[1167264000000,0.645657],[1167350400000,0.646269],[1167436800000,0.647014]], 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: [[1137283200000, 0.626039],[1137283200000, 0.626039],[1139961600000, 0.627359],[1142380800000, 0.628401],[1145059200000, 0.629891],[1147651200000, 0.629995],[1150329600000, 0.630588],[1152921600000, 0.631980],[1155600000000, 0.633348],[1158278400000, 0.636343],[1160870400000, 0.639065],[1163548800000, 0.642074],[1166140800000, 0.645505]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });