$(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: [[1168041600000,0.647044],[1168128000000,0.647044],[1168214400000,0.647044],[1168300800000,0.647044],[1168387200000,0.647024],[1168473600000,0.646845],[1168560000000,0.647859],[1168646400000,0.647567],[1168732800000,0.647567],[1168819200000,0.647567],[1168905600000,0.648115],[1168992000000,0.648266],[1169078400000,0.649598],[1169164800000,0.649851],[1169251200000,0.649611],[1169337600000,0.649611],[1169424000000,0.649611],[1169510400000,0.649578],[1169596800000,0.649262],[1169683200000,0.649729],[1169769600000,0.649891],[1169856000000,0.649448],[1169942400000,0.649448],[1170028800000,0.649448],[1170115200000,0.649561],[1170201600000,0.64952],[1170288000000,0.64961],[1170374400000,0.650897],[1170460800000,0.65111],[1170547200000,0.65111],[1170633600000,0.65111],[1170720000000,0.650695],[1170806400000,0.651148],[1170892800000,0.651783],[1170979200000,0.65175],[1171065600000,0.651815],[1171152000000,0.651815],[1171238400000,0.651815],[1171324800000,0.651023],[1171411200000,0.650257],[1171497600000,0.65098],[1171584000000,0.651151],[1171670400000,0.652237],[1171756800000,0.652237],[1171843200000,0.652237],[1171929600000,0.652235],[1172016000000,0.652239],[1172102400000,0.652239],[1172188800000,0.652233],[1172275200000,0.652238],[1172361600000,null],[1172448000000,0.652238],[1172534400000,0.651319],[1172620800000,0.652329],[1172707200000,0.652411],[1172793600000,0.652159],[1172880000000,0.651908],[1172966400000,0.651908],[1173052800000,0.651908],[1173139200000,0.651615],[1173225600000,0.652326],[1173312000000,0.652454],[1173398400000,0.652454],[1173484800000,0.652454],[1173571200000,0.652454],[1173657600000,0.652454],[1173744000000,0.651447],[1173830400000,0.652202],[1173916800000,0.652624],[1174003200000,0.652119],[1174089600000,0.652793],[1174176000000,0.652793],[1174262400000,0.652793],[1174348800000,0.652792],[1174435200000,0.652664],[1174521600000,0.652961],[1174608000000,0.653585],[1174694400000,0.653468],[1174780800000,0.653468],[1174867200000,0.653468],[1174953600000,0.652608],[1175040000000,0.65301],[1175126400000,0.653343],[1175212800000,0.653552],[1175299200000,0.653281],[1175385600000,0.653281],[1175472000000,0.653281],[1175558400000,0.652959],[1175644800000,0.653174],[1175731200000,0.65309],[1175817600000,0.653781],[1175904000000,0.653781],[1175990400000,0.653781],[1176076800000,0.653781],[1176163200000,0.653781],[1176249600000,0.652877],[1176336000000,0.653722],[1176422400000,0.653637],[1176508800000,0.654001],[1176595200000,0.654001],[1176681600000,0.654001],[1176768000000,0.653034],[1176854400000,0.653372],[1176940800000,0.653992],[1177027200000,0.654443],[1177113600000,0.654321],[1177200000000,0.654321],[1177286400000,0.654321],[1177372800000,0.653758],[1177459200000,0.653628],[1177545600000,0.654476],[1177632000000,0.65361],[1177718400000,0.654698],[1177804800000,0.654698],[1177891200000,0.654698],[1177977600000,0.654698],[1178064000000,0.654698],[1178150400000,0.654698],[1178236800000,0.655513],[1178323200000,0.65551],[1178409600000,0.65551],[1178496000000,0.65551],[1178582400000,0.65551],[1178668800000,0.656187],[1178755200000,0.656187],[1178841600000,0.656392],[1178928000000,0.657841],[1179014400000,0.657841],[1179100800000,0.657841],[1179187200000,0.657529],[1179273600000,0.65697],[1179360000000,0.657384],[1179446400000,0.65835],[1179532800000,0.658528],[1179619200000,0.658528],[1179705600000,0.658528],[1179792000000,0.658642],[1179878400000,0.659728],[1179964800000,0.659872],[1180051200000,0.659965],[1180137600000,0.659897],[1180224000000,0.659897],[1180310400000,0.659897],[1180396800000,0.659897],[1180483200000,0.660155],[1180569600000,0.660382],[1180656000000,0.660422],[1180742400000,0.660365],[1180828800000,0.660365],[1180915200000,0.660365],[1181001600000,0.66003],[1181088000000,0.660889],[1181174400000,0.661356],[1181260800000,0.660243],[1181347200000,0.659697],[1181433600000,0.659697],[1181520000000,0.659697],[1181606400000,null],[1181692800000,0.660682],[1181779200000,0.661338],[1181865600000,null],[1181952000000,null],[1182038400000,0.662258],[1182124800000,0.662258],[1182211200000,0.661748],[1182297600000,0.662949],[1182384000000,null],[1182470400000,0.662834],[1182556800000,0.662668],[1182643200000,0.662668],[1182729600000,0.662668],[1182816000000,0.66278],[1182902400000,0.663087],[1182988800000,0.662837],[1183075200000,0.662837],[1183161600000,0.662837],[1183248000000,0.662837],[1183334400000,0.662837],[1183420800000,0.664061],[1183507200000,0.664966],[1183593600000,0.664935],[1183680000000,0.664615],[1183766400000,0.664388],[1183852800000,0.664388],[1183939200000,0.664388],[1184025600000,0.664343],[1184112000000,0.666139],[1184198400000,0.667718],[1184284800000,0.667345],[1184371200000,0.66715],[1184457600000,0.66715],[1184544000000,0.66715],[1184630400000,0.6673],[1184716800000,0.667731],[1184803200000,0.667638],[1184889600000,0.667709],[1184976000000,0.666754],[1185062400000,0.666754],[1185148800000,0.666754],[1185235200000,0.667815],[1185321600000,0.667769],[1185408000000,0.668157],[1185494400000,0.667502],[1185580800000,0.667786],[1185667200000,0.667786],[1185753600000,0.667786],[1185840000000,null],[1185926400000,0.666895],[1186012800000,0.667074],[1186099200000,0.666949],[1186185600000,0.667285],[1186272000000,0.667285],[1186358400000,0.667285],[1186444800000,0.6679],[1186531200000,0.667079],[1186617600000,0.666683],[1186704000000,0.667586],[1186790400000,0.666755],[1186876800000,0.666755],[1186963200000,0.666755],[1187049600000,0.666095],[1187136000000,0.666581],[1187222400000,0.665719],[1187308800000,0.664122],[1187395200000,0.664905],[1187481600000,0.664905],[1187568000000,0.664905],[1187654400000,0.665602],[1187740800000,0.665295],[1187827200000,0.664472],[1187913600000,0.665612],[1188000000000,0.665612],[1188086400000,0.665612],[1188172800000,0.665612],[1188259200000,0.667954],[1188345600000,0.668299],[1188432000000,0.668992],[1188518400000,0.669673],[1188604800000,0.669319],[1188691200000,0.669319],[1188777600000,0.669319],[1188864000000,0.669379],[1188950400000,0.6689],[1189036800000,0.668903],[1189123200000,0.669906],[1189209600000,0.669806],[1189296000000,0.669806],[1189382400000,0.669806],[1189468800000,0.671416],[1189555200000,0.671255],[1189641600000,0.671402],[1189728000000,0.672395],[1189814400000,0.671898],[1189900800000,0.671898],[1189987200000,0.671898],[1190073600000,0.671298],[1190160000000,0.67129],[1190246400000,0.672125],[1190332800000,0.672037],[1190419200000,0.673011],[1190505600000,0.673011],[1190592000000,0.673011],[1190678400000,0.672384],[1190764800000,0.672329],[1190851200000,null],[1190937600000,null],[1191024000000,0.672786],[1191110400000,0.672786],[1191196800000,0.672786],[1191283200000,0.672785],[1191369600000,0.672786],[1191456000000,0.672787],[1191542400000,0.672783],[1191628800000,0.672788],[1191715200000,0.672788],[1191801600000,0.672788],[1191888000000,0.672776],[1191974400000,0.671811],[1192060800000,0.6723],[1192147200000,0.672825],[1192233600000,0.672211],[1192320000000,0.672211],[1192406400000,0.672211],[1192492800000,0.670793],[1192579200000,0.671719],[1192665600000,0.671952],[1192752000000,0.67234],[1192838400000,0.672618],[1192924800000,0.672618],[1193011200000,0.672618],[1193097600000,0.672561],[1193184000000,0.672912],[1193270400000,0.673996],[1193356800000,0.674953],[1193443200000,0.673552],[1193529600000,0.673552],[1193616000000,0.673552],[1193702400000,0.675628],[1193788800000,0.675964],[1193875200000,0.676671],[1193961600000,0.677609],[1194048000000,0.677322],[1194134400000,0.677322],[1194220800000,0.677322],[1194307200000,0.677392],[1194393600000,0.677578],[1194480000000,0.678569],[1194566400000,0.680529],[1194652800000,0.681437],[1194739200000,0.681437],[1194825600000,0.681437],[1194912000000,0.6813],[1194998400000,0.679358],[1195084800000,0.680107],[1195171200000,0.680339],[1195257600000,0.68007],[1195344000000,0.68007],[1195430400000,0.68007],[1195516800000,0.679803],[1195603200000,0.68043],[1195689600000,0.681417],[1195776000000,0.681095],[1195862400000,0.681882],[1195948800000,0.681882],[1196035200000,0.681882],[1196121600000,0.682718],[1196208000000,0.683909],[1196294400000,0.682938],[1196380800000,0.684058],[1196467200000,0.682435],[1196553600000,0.682435],[1196640000000,0.682435],[1196726400000,0.682202],[1196812800000,0.682573],[1196899200000,0.683543],[1196985600000,0.681557],[1197072000000,0.682153],[1197158400000,0.682153],[1197244800000,0.682153],[1197331200000,0.682873],[1197417600000,0.684234],[1197504000000,0.684563],[1197590400000,0.685284],[1197676800000,0.685071],[1197763200000,0.685071],[1197849600000,0.685071],[1197936000000,0.683608],[1198022400000,0.6838],[1198108800000,0.68458],[1198195200000,0.685263],[1198281600000,0.685247],[1198368000000,0.685247],[1198454400000,0.685247],[1198540800000,0.687311],[1198627200000,0.687311],[1198713600000,0.687311],[1198800000000,0.690125],[1198886400000,0.691391]], 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.648583],[1168819200000, 0.648583],[1171497600000, 0.651550],[1173916800000, 0.652628],[1176595200000, 0.653810],[1179187200000, 0.657680],[1181865600000, 0.661522],[1184457600000, 0.666322],[1187136000000, 0.666524],[1189814400000, 0.671168],[1192406400000, 0.672902],[1195084800000, 0.680265],[1197676800000, 0.684560]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });