$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1262736000000,7.76248],[1262822400000,7.7302],[1262908800000,7.7302],[1262995200000,7.7302],[1263081600000,7.7302],[1263168000000,7.7302],[1263254400000,7.86757],[1263340800000,7.85626],[1263427200000,7.88222],[1263513600000,7.8305],[1263600000000,7.79407],[1263686400000,7.79407],[1263772800000,7.79407],[1263859200000,7.79717],[1263945600000,7.74462],[1264032000000,7.66333],[1264118400000,7.65147],[1264204800000,7.69641],[1264291200000,7.69641],[1264377600000,7.69641],[1264464000000,7.69427],[1264550400000,7.65792],[1264636800000,7.6496],[1264723200000,7.60671],[1264809600000,7.61929],[1264896000000,7.61929],[1264982400000,7.61929],[1265068800000,7.55818],[1265155200000,7.56815],[1265241600000,7.59186],[1265328000000,7.54204],[1265414400000,7.46039],[1265500800000,7.46039],[1265587200000,7.46039],[1265673600000,7.4699],[1265760000000,7.51145],[1265846400000,7.50835],[1265932800000,7.49377],[1266019200000,7.41365],[1266105600000,7.41365],[1266192000000,7.41365],[1266278400000,7.42673],[1266364800000,7.44139],[1266451200000,7.48286],[1266537600000,7.40782],[1266624000000,7.37652],[1266710400000,7.37652],[1266796800000,7.37652],[1266883200000,7.4323],[1266969600000,7.39621],[1267056000000,7.39297],[1267142400000,7.36535],[1267228800000,7.40704],[1267315200000,7.40704],[1267401600000,7.40704],[1267488000000,7.37946],[1267574400000,7.39546],[1267660800000,7.44478],[1267747200000,7.45818],[1267833600000,7.41088],[1267920000000,7.41088],[1268006400000,7.41088],[1268092800000,7.41088],[1268179200000,7.40046],[1268265600000,7.43196],[1268352000000,7.45372],[1268438400000,7.52327],[1268524800000,7.52327],[1268611200000,7.52327],[1268697600000,7.52534],[1268784000000,7.54094],[1268870400000,7.56101],[1268956800000,7.52744],[1269043200000,7.50277],[1269129600000,7.50277],[1269216000000,7.50277],[1269302400000,7.4682],[1269388800000,7.50488],[1269475200000,7.41052],[1269561600000,7.41782],[1269648000000,7.4121],[1269734400000,7.4121],[1269820800000,7.4121],[1269907200000,7.45046],[1269993600000,7.46332],[1270080000000,7.48256],[1270166400000,7.5276],[1270252800000,7.5276],[1270339200000,7.5276],[1270425600000,7.5276],[1270512000000,7.5276],[1270598400000,7.41105],[1270684800000,7.38139],[1270771200000,7.35745],[1270857600000,7.38571],[1270944000000,7.38571],[1271030400000,7.38571],[1271116800000,7.48152],[1271203200000,7.4922],[1271289600000,7.5109],[1271376000000,7.48428],[1271462400000,7.48191],[1271548800000,7.48191],[1271635200000,7.48191],[1271721600000,7.42145],[1271808000000,7.45672],[1271894400000,7.39719],[1271980800000,7.38026],[1272067200000,7.34938],[1272153600000,7.34938],[1272240000000,7.34938],[1272326400000,7.36236],[1272412800000,7.3389],[1272499200000,7.32017],[1272585600000,7.32267],[1272672000000,7.35886],[1272758400000,7.35886],[1272844800000,7.35886],[1272931200000,7.35886],[1273017600000,7.35886],[1273104000000,7.15074],[1273190400000,7.13791],[1273276800000,7.1425],[1273363200000,7.1425],[1273449600000,7.1425],[1273536000000,7.1425],[1273622400000,7.14034],[1273708800000,7.15033],[1273795200000,7.12036],[1273881600000,7.06208],[1273968000000,null],[1274054400000,7.06208],[1274140800000,6.98423],[1274227200000,7.02189],[1274313600000,6.92504],[1274400000000,6.89439],[1274486400000,6.8743],[1274572800000,6.8743],[1274659200000,6.8743],[1274745600000,6.8743],[1274832000000,6.801],[1274918400000,6.86708],[1275004800000,6.85697],[1275091200000,6.88347],[1275177600000,6.88347],[1275264000000,6.88347],[1275350400000,6.85412],[1275436800000,6.7919],[1275523200000,6.84443],[1275609600000,6.87169],[1275696000000,6.8476],[1275782400000,6.8476],[1275868800000,6.8476],[1275955200000,6.80952],[1276041600000,6.85663],[1276128000000,6.91007],[1276214400000,6.91609],[1276300800000,6.90959],[1276387200000,6.90959],[1276473600000,6.90959],[1276560000000,6.96978],[1276646400000,6.93044],[1276732800000,6.99501],[1276819200000,7.0998],[1276905600000,7.12157],[1276992000000,7.12157],[1277078400000,7.12157],[1277164800000,7.13506],[1277251200000,7.11831],[1277337600000,7.13108],[1277424000000,7.15493],[1277510400000,7.18345],[1277596800000,7.18345],[1277683200000,7.18345],[1277769600000,7.18345],[1277856000000,7.27482],[1277942400000,7.30301],[1278028800000,7.39858],[1278115200000,7.42082],[1278201600000,7.42082],[1278288000000,7.42082],[1278374400000,7.43829],[1278460800000,7.43885],[1278547200000,7.46468],[1278633600000,7.51351],[1278720000000,7.49233],[1278806400000,7.49233],[1278892800000,7.49233],[1278979200000,7.44318],[1279065600000,7.44716],[1279152000000,7.47507],[1279238400000,7.55227],[1279324800000,7.58306],[1279411200000,7.58306],[1279497600000,7.58306],[1279584000000,7.50376],[1279670400000,7.49368],[1279756800000,7.53123],[1279843200000,7.56271],[1279929600000,7.55002],[1280016000000,7.55002],[1280102400000,7.55002],[1280188800000,7.52121],[1280275200000,7.46897],[1280361600000,7.45265],[1280448000000,7.5517],[1280534400000,7.59369],[1280620800000,7.59369],[1280707200000,7.59369],[1280793600000,7.55305],[1280880000000,7.60902],[1280966400000,7.58994],[1281052800000,7.52776],[1281139200000,7.51708],[1281225600000,null],[1281312000000,7.51708],[1281398400000,7.59321],[1281484800000,7.45731],[1281571200000,7.49881],[1281657600000,7.47948],[1281744000000,7.48696],[1281830400000,7.48696],[1281916800000,7.48696],[1282003200000,7.57763],[1282089600000,7.56583],[1282176000000,7.57083],[1282262400000,7.59732],[1282348800000,7.62631],[1282435200000,null],[1282521600000,null],[1282608000000,7.62602],[1282694400000,7.62602],[1282780800000,7.65866],[1282867200000,7.68771],[1282953600000,7.71051],[1283040000000,7.71051],[1283126400000,7.71051],[1283212800000,7.67166],[1283299200000,7.73122],[1283385600000,7.78454],[1283472000000,7.81549],[1283558400000,7.78148],[1283644800000,7.78148],[1283731200000,7.78148],[1283817600000,7.78961],[1283904000000,7.81075],[1283990400000,7.82195],[1284076800000,7.81964],[1284163200000,7.72902],[1284249600000,7.72902],[1284336000000,7.72902],[1284422400000,7.79254],[1284508800000,7.88079],[1284595200000,7.90095],[1284681600000,7.83118],[1284768000000,7.82928],[1284854400000,7.82928],[1284940800000,7.82928],[1285027200000,7.86745],[1285113600000,7.89753],[1285200000000,8.00728],[1285286400000,8.02767],[1285372800000,8.05902],[1285459200000,8.05902],[1285545600000,8.05902],[1285632000000,8.04482],[1285718400000,8.0256],[1285804800000,8.10159],[1285891200000,8.12491],[1285977600000,8.08845],[1286064000000,8.08845],[1286150400000,8.08845],[1286236800000,8.13425],[1286323200000,8.1659],[1286409600000,8.20295],[1286496000000,8.23714],[1286582400000,8.17749],[1286668800000,8.17749],[1286755200000,8.17749],[1286841600000,8.21894],[1286928000000,8.22813],[1287014400000,8.2689],[1287100800000,8.33124],[1287187200000,8.30142],[1287273600000,8.30142],[1287360000000,8.30142],[1287446400000,8.22963],[1287532800000,8.17955],[1287619200000,8.21136],[1287705600000,8.21826],[1287792000000,8.14624],[1287878400000,8.14624],[1287964800000,8.14624],[1288051200000,8.15154],[1288137600000,8.11817],[1288224000000,8.00673],[1288310400000,8.021],[1288396800000,7.99699],[1288483200000,7.99699],[1288569600000,7.99699],[1288656000000,8.01555],[1288742400000,8.06366],[1288828800000,8.06531],[1288915200000,8.18539],[1289001600000,8.22904],[1289088000000,8.22904],[1289174400000,8.22904],[1289260800000,8.20072],[1289347200000,8.22017],[1289433600000,8.1272],[1289520000000,8.16997],[1289606400000,8.13986],[1289692800000,8.13986],[1289779200000,8.13986],[1289865600000,8.04967],[1289952000000,8.05644],[1290038400000,7.97022],[1290124800000,8.03902],[1290211200000,7.97678],[1290297600000,7.97678],[1290384000000,7.97678],[1290470400000,8.02116],[1290556800000,8.03173],[1290643200000,7.97637],[1290729600000,7.93572],[1290816000000,7.92183],[1290902400000,7.92183],[1290988800000,7.92183],[1291075200000,7.91392],[1291161600000,7.94289],[1291248000000,7.90005],[1291334400000,7.93698],[1291420800000,8.00424],[1291507200000,8.00424],[1291593600000,8.00424],[1291680000000,8.07802],[1291766400000,8.13524],[1291852800000,8.03664],[1291939200000,8.04516],[1292025600000,8.10362],[1292112000000,8.10362],[1292198400000,8.10362],[1292284800000,8.12457],[1292371200000,8.28308],[1292457600000,8.29464],[1292544000000,8.20459],[1292630400000,8.28984],[1292716800000,8.28984],[1292803200000,8.28984],[1292889600000,8.24509],[1292976000000,8.3057],[1293062400000,8.35206],[1293148800000,8.28767],[1293235200000,8.26499],[1293321600000,8.26499],[1293408000000,8.26499],[1293494400000,8.28267],[1293580800000,8.39501],[1293667200000,8.37598]], 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: [[1263513600000, 7.731735],[1263513600000, 7.731735],[1266192000000, 7.456227],[1268611200000, 7.458030],[1271289600000, 7.429670],[1273881600000, 7.056211],[1276560000000, 7.001125],[1279152000000, 7.493320],[1281830400000, 7.583232],[1284508800000, 7.871566],[1287100800000, 8.167206],[1289779200000, 8.061392],[1292371200000, 8.183535]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });