$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1262736000000,7.71264],[1262822400000,7.67994],[1262908800000,7.67994],[1262995200000,7.67994],[1263081600000,7.67994],[1263168000000,7.67994],[1263254400000,7.77639],[1263340800000,7.74282],[1263427200000,7.73729],[1263513600000,7.75818],[1263600000000,7.79618],[1263686400000,7.79618],[1263772800000,7.79618],[1263859200000,7.79928],[1263945600000,7.76408],[1264032000000,7.65918],[1264118400000,7.64265],[1264204800000,7.60182],[1264291200000,7.60182],[1264377600000,7.60182],[1264464000000,7.55676],[1264550400000,7.53409],[1264636800000,7.52086],[1264723200000,7.55591],[1264809600000,7.48553],[1264896000000,7.48553],[1264982400000,7.48553],[1265068800000,7.48549],[1265155200000,7.55021],[1265241600000,7.54374],[1265328000000,7.5364],[1265414400000,7.45227],[1265500800000,7.45227],[1265587200000,7.45227],[1265673600000,7.47959],[1265760000000,7.50735],[1265846400000,7.50374],[1265932800000,7.57697],[1266019200000,7.6116],[1266105600000,7.6116],[1266192000000,7.6116],[1266278400000,7.63932],[1266364800000,7.65737],[1266451200000,7.67796],[1266537600000,7.65549],[1266624000000,7.6064],[1266710400000,7.6064],[1266796800000,7.6064],[1266883200000,7.70366],[1266969600000,7.65455],[1267056000000,7.56609],[1267142400000,7.54847],[1267228800000,7.55359],[1267315200000,7.55359],[1267401600000,7.55359],[1267488000000,7.57499],[1267574400000,7.71122],[1267660800000,7.72574],[1267747200000,7.75553],[1267833600000,7.73935],[1267920000000,7.73935],[1268006400000,7.73935],[1268092800000,7.73935],[1268179200000,7.75241],[1268265600000,7.77725],[1268352000000,7.76989],[1268438400000,7.83681],[1268524800000,7.83681],[1268611200000,7.83681],[1268697600000,7.82427],[1268784000000,7.85028],[1268870400000,7.89224],[1268956800000,7.89451],[1269043200000,7.89147],[1269129600000,7.89147],[1269216000000,7.89147],[1269302400000,7.77152],[1269388800000,7.80122],[1269475200000,7.75306],[1269561600000,7.79444],[1269648000000,7.71732],[1269734400000,7.71732],[1269820800000,7.71732],[1269907200000,7.76419],[1269993600000,7.78129],[1270080000000,7.80457],[1270166400000,7.83541],[1270252800000,7.83541],[1270339200000,7.83541],[1270425600000,7.83541],[1270512000000,7.83541],[1270598400000,7.91791],[1270684800000,7.91056],[1270771200000,7.86068],[1270857600000,7.87823],[1270944000000,7.87823],[1271030400000,7.87823],[1271116800000,7.86685],[1271203200000,7.89897],[1271289600000,7.952],[1271376000000,7.93048],[1271462400000,7.90711],[1271548800000,7.90711],[1271635200000,7.90711],[1271721600000,7.78221],[1271808000000,7.82178],[1271894400000,7.94859],[1271980800000,7.92461],[1272067200000,7.91035],[1272153600000,7.91035],[1272240000000,7.91035],[1272326400000,7.93265],[1272412800000,7.89619],[1272499200000,7.83305],[1272585600000,7.90443],[1272672000000,7.88799],[1272758400000,7.88799],[1272844800000,7.88799],[1272931200000,7.88799],[1273017600000,7.88799],[1273104000000,7.71343],[1273190400000,7.67561],[1273276800000,7.63652],[1273363200000,7.63652],[1273449600000,7.63652],[1273536000000,7.63652],[1273622400000,7.72336],[1273708800000,7.80046],[1273795200000,7.80621],[1273881600000,7.71589],[1273968000000,null],[1274054400000,7.71589],[1274140800000,7.65142],[1274227200000,7.71968],[1274313600000,7.57563],[1274400000000,7.45088],[1274486400000,7.38756],[1274572800000,7.38756],[1274659200000,7.38756],[1274745600000,7.38756],[1274832000000,7.33667],[1274918400000,7.45254],[1275004800000,7.51777],[1275091200000,7.57638],[1275177600000,7.57638],[1275264000000,7.57638],[1275350400000,7.56431],[1275436800000,7.54579],[1275523200000,7.53697],[1275609600000,7.63527],[1275696000000,7.58483],[1275782400000,7.58483],[1275868800000,7.58483],[1275955200000,7.47532],[1276041600000,7.52015],[1276128000000,7.5901],[1276214400000,7.63728],[1276300800000,7.67898],[1276387200000,7.67898],[1276473600000,7.67898],[1276560000000,7.70481],[1276646400000,7.68171],[1276732800000,7.69113],[1276819200000,7.7219],[1276905600000,7.69363],[1276992000000,7.69363],[1277078400000,7.69363],[1277164800000,7.77886],[1277251200000,7.73683],[1277337600000,7.65466],[1277424000000,7.57104],[1277510400000,7.5954],[1277596800000,7.5954],[1277683200000,7.5954],[1277769600000,7.5954],[1277856000000,7.52807],[1277942400000,7.52567],[1278028800000,7.42902],[1278115200000,7.44085],[1278201600000,7.44085],[1278288000000,7.44085],[1278374400000,7.42825],[1278460800000,7.45781],[1278547200000,7.46524],[1278633600000,7.57492],[1278720000000,7.64078],[1278806400000,7.64078],[1278892800000,7.64078],[1278979200000,7.65124],[1279065600000,7.65316],[1279152000000,7.62904],[1279238400000,7.67756],[1279324800000,7.55906],[1279411200000,7.55906],[1279497600000,7.55906],[1279584000000,7.48893],[1279670400000,7.4683],[1279756800000,7.61967],[1279843200000,7.57966],[1279929600000,7.60755],[1280016000000,7.60755],[1280102400000,7.60755],[1280188800000,7.62171],[1280275200000,7.68832],[1280361600000,7.65801],[1280448000000,7.63894],[1280534400000,7.64279],[1280620800000,7.64279],[1280707200000,7.64279],[1280793600000,7.71573],[1280880000000,7.70397],[1280966400000,7.71468],[1281052800000,7.78811],[1281139200000,7.71971],[1281225600000,null],[1281312000000,7.71971],[1281398400000,7.67008],[1281484800000,7.62187],[1281571200000,7.60488],[1281657600000,7.53195],[1281744000000,7.57627],[1281830400000,7.57627],[1281916800000,7.57627],[1282003200000,7.56856],[1282089600000,7.60553],[1282176000000,7.67779],[1282262400000,7.68436],[1282348800000,7.52616],[1282435200000,null],[1282521600000,null],[1282608000000,7.52587],[1282694400000,7.52587],[1282780800000,7.39955],[1282867200000,7.4598],[1282953600000,7.43438],[1283040000000,7.43438],[1283126400000,7.43438],[1283212800000,7.5117],[1283299200000,7.4137],[1283385600000,7.44411],[1283472000000,7.52613],[1283558400000,7.48424],[1283644800000,7.48424],[1283731200000,7.48424],[1283817600000,7.64341],[1283904000000,7.58559],[1283990400000,7.54398],[1284076800000,7.65766],[1284163200000,7.67128],[1284249600000,7.67128],[1284336000000,7.67128],[1284422400000,7.67788],[1284508800000,7.70883],[1284595200000,7.71372],[1284681600000,7.71566],[1284768000000,7.71251],[1284854400000,7.71251],[1284940800000,7.71251],[1285027200000,7.6767],[1285113600000,7.67582],[1285200000000,7.7374],[1285286400000,7.64534],[1285372800000,7.68646],[1285459200000,7.68646],[1285545600000,7.68646],[1285632000000,7.73108],[1285718400000,7.66465],[1285804800000,7.70573],[1285891200000,7.67112],[1285977600000,7.70829],[1286064000000,7.70829],[1286150400000,7.70829],[1286236800000,7.74433],[1286323200000,7.74687],[1286409600000,7.81849],[1286496000000,7.82587],[1286582400000,7.74576],[1286668800000,7.74576],[1286755200000,7.74576],[1286841600000,7.8179],[1286928000000,7.80273],[1287014400000,7.88673],[1287100800000,7.9161],[1287187200000,7.86657],[1287273600000,7.86657],[1287360000000,7.86657],[1287446400000,7.74659],[1287532800000,7.71238],[1287619200000,7.69023],[1287705600000,7.75448],[1287792000000,7.70984],[1287878400000,7.70984],[1287964800000,7.70984],[1288051200000,7.76766],[1288137600000,7.72665],[1288224000000,7.685],[1288310400000,7.72321],[1288396800000,7.74719],[1288483200000,7.74719],[1288569600000,7.74719],[1288656000000,7.78686],[1288742400000,7.83486],[1288828800000,7.85135],[1288915200000,7.90602],[1289001600000,7.90572],[1289088000000,7.90572],[1289174400000,7.90572],[1289260800000,7.89231],[1289347200000,7.91865],[1289433600000,7.87455],[1289520000000,7.89649],[1289606400000,7.84955],[1289692800000,7.84955],[1289779200000,7.84955],[1289865600000,7.86173],[1289952000000,7.81796],[1290038400000,7.76659],[1290124800000,7.79603],[1290211200000,7.77675],[1290297600000,7.77675],[1290384000000,7.77675],[1290470400000,7.8129],[1290556800000,7.7634],[1290643200000,7.81162],[1290729600000,7.86022],[1290816000000,7.76307],[1290902400000,7.76307],[1290988800000,7.76307],[1291075200000,7.77072],[1291161600000,7.75426],[1291248000000,7.79243],[1291334400000,7.85875],[1291420800000,7.92823],[1291507200000,7.92823],[1291593600000,7.92823],[1291680000000,7.90759],[1291766400000,7.93834],[1291852800000,7.85559],[1291939200000,7.86804],[1292025600000,7.87756],[1292112000000,7.87756],[1292198400000,7.87756],[1292284800000,7.89833],[1292371200000,7.9066],[1292457600000,7.9157],[1292544000000,7.92816],[1292630400000,7.90508],[1292716800000,7.90508],[1292803200000,7.90508],[1292889600000,7.86243],[1292976000000,7.81207],[1293062400000,7.83797],[1293148800000,7.8381],[1293235200000,7.87909],[1293321600000,7.87909],[1293408000000,7.87909],[1293494400000,7.89857],[1293580800000,7.94544],[1293667200000,7.9481]], 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.666342],[1263513600000, 7.666342],[1266192000000, 7.567498],[1268611200000, 7.775542],[1271289600000, 7.881654],[1273881600000, 7.637361],[1276560000000, 7.627604],[1279152000000, 7.569129],[1281830400000, 7.592621],[1284508800000, 7.637696],[1287100800000, 7.762003],[1289779200000, 7.828491],[1292371200000, 7.887131]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });