$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1231200000000,2.52856],[1231286400000,2.55364],[1231372800000,2.55364],[1231459200000,2.60079],[1231545600000,2.60519],[1231632000000,2.60519],[1231718400000,2.60519],[1231804800000,2.55092],[1231891200000,2.46553],[1231977600000,2.44769],[1232064000000,2.38213],[1232150400000,2.44418],[1232236800000,null],[1232323200000,2.44418],[1232409600000,2.33686],[1232496000000,2.27464],[1232582400000,2.28706],[1232668800000,2.31134],[1232755200000,2.2187],[1232841600000,2.2187],[1232928000000,2.2187],[1233014400000,2.30308],[1233100800000,2.32981],[1233187200000,2.34987],[1233273600000,2.3028],[1233360000000,2.21164],[1233446400000,2.21164],[1233532800000,2.21164],[1233619200000,2.21184],[1233705600000,2.17469],[1233792000000,2.11165],[1233878400000,2.12506],[1233964800000,2.14217],[1234051200000,2.14217],[1234137600000,2.14217],[1234224000000,2.234],[1234310400000,2.24398],[1234396800000,2.17289],[1234483200000,2.1458],[1234569600000,null],[1234656000000,null],[1234742400000,2.12658],[1234828800000,2.05328],[1234915200000,1.99368],[1235001600000,2.02631],[1235088000000,2.09263],[1235174400000,2.04128],[1235260800000,2.04128],[1235347200000,2.04128],[1235433600000,2.12221],[1235520000000,2.09855],[1235606400000,2.11806],[1235692800000,2.09586],[1235779200000,2.07014],[1235865600000,2.07014],[1235952000000,2.07014],[1236038400000,2.04188],[1236124800000,2.05144],[1236211200000,2.05077],[1236297600000,2.04708],[1236384000000,2.06013],[1236470400000,2.06013],[1236556800000,2.06013],[1236643200000,2.06013],[1236729600000,null],[1236816000000,2.14469],[1236902400000,2.13774],[1236988800000,2.21286],[1237075200000,2.21286],[1237161600000,2.21286],[1237248000000,2.26536],[1237334400000,2.21945],[1237420800000,2.22557],[1237507200000,2.31814],[1237593600000,2.28477],[1237680000000,2.28477],[1237766400000,2.28477],[1237852800000,2.28424],[1237939200000,2.2856],[1238025600000,2.27859],[1238112000000,2.2939],[1238198400000,2.20234],[1238284800000,2.20234],[1238371200000,2.20234],[1238457600000,2.14952],[1238544000000,2.1856],[1238630400000,2.23966],[1238716800000,2.2956],[1238803200000,2.32084],[1238889600000,2.32084],[1238976000000,2.32084],[1239062400000,2.34195],[1239148800000,2.26994],[1239235200000,2.27484],[1239321600000,2.30783],[1239408000000,2.30783],[1239494400000,2.30783],[1239580800000,2.30783],[1239667200000,2.30783],[1239753600000,2.35109],[1239840000000,2.35861],[1239926400000,2.36796],[1240012800000,2.34238],[1240099200000,2.34238],[1240185600000,2.34238],[1240272000000,2.34238],[1240358400000,2.25403],[1240444800000,2.25854],[1240531200000,2.26547],[1240617600000,2.26989],[1240704000000,2.26989],[1240790400000,2.26989],[1240876800000,2.20343],[1240963200000,2.2001],[1241049600000,2.31419],[1241136000000,2.32349],[1241222400000,2.32349],[1241308800000,null],[1241395200000,2.32349],[1241481600000,2.32349],[1241568000000,2.37341],[1241654400000,2.32422],[1241740800000,2.39564],[1241827200000,2.36778],[1241913600000,2.36778],[1242000000000,2.36778],[1242086400000,2.36778],[1242172800000,2.38829],[1242259200000,2.35455],[1242345600000,2.30412],[1242432000000,2.30016],[1242518400000,2.30016],[1242604800000,2.30016],[1242691200000,2.30177],[1242777600000,2.36999],[1242864000000,2.38662],[1242950400000,2.38584],[1243036800000,2.42709],[1243123200000,2.42709],[1243209600000,2.42709],[1243296000000,2.41725],[1243382400000,2.3955],[1243468800000,2.38739],[1243555200000,2.35061],[1243641600000,2.39948],[1243728000000,2.39948],[1243814400000,2.39948],[1243900800000,2.4254],[1243987200000,2.41488],[1244073600000,2.40267],[1244160000000,2.3741],[1244246400000,2.37591],[1244332800000,2.37591],[1244419200000,2.37591],[1244505600000,2.37591],[1244592000000,2.37278],[1244678400000,2.40377],[1244764800000,2.37216],[1244851200000,2.37972],[1244937600000,2.37972],[1245024000000,2.37972],[1245110400000,2.32916],[1245196800000,2.33357],[1245283200000,2.32862],[1245369600000,2.32659],[1245456000000,2.35095],[1245542400000,2.35095],[1245628800000,2.35095],[1245715200000,2.33172],[1245801600000,2.34015],[1245888000000,2.35989],[1245974400000,2.35477],[1246060800000,2.39307],[1246147200000,2.39307],[1246233600000,2.39307],[1246320000000,2.39307],[1246406400000,2.42567],[1246492800000,2.45277],[1246579200000,2.4645],[1246665600000,2.45828],[1246752000000,2.45828],[1246838400000,2.45828],[1246924800000,2.41945],[1247011200000,2.44547],[1247097600000,2.39046],[1247184000000,2.44873],[1247270400000,2.42311],[1247356800000,2.42311],[1247443200000,2.42311],[1247529600000,2.42051],[1247616000000,2.44969],[1247702400000,2.50617],[1247788800000,2.51656],[1247875200000,2.48667],[1247961600000,2.48667],[1248048000000,2.48667],[1248134400000,2.53452],[1248220800000,2.56211],[1248307200000,2.5559],[1248393600000,2.56557],[1248480000000,2.60424],[1248566400000,2.60424],[1248652800000,2.60424],[1248739200000,2.62805],[1248825600000,2.61996],[1248912000000,2.59017],[1248998400000,2.58959],[1249084800000,2.61721],[1249171200000,2.61721],[1249257600000,2.61721],[1249344000000,2.67572],[1249430400000,2.67967],[1249516800000,2.69996],[1249603200000,2.66876],[1249689600000,2.65427],[1249776000000,2.65427],[1249862400000,2.65427],[1249948800000,2.66067],[1250035200000,2.62292],[1250121600000,2.6228],[1250208000000,2.69579],[1250294400000,2.69219],[1250380800000,2.69219],[1250467200000,2.69219],[1250553600000,2.61646],[1250640000000,2.6511],[1250726400000,2.64101],[1250812800000,2.70466],[1250899200000,2.77053],[1250985600000,2.77053],[1251072000000,2.77053],[1251158400000,2.77053],[1251244800000,2.79533],[1251331200000,2.78511],[1251417600000,2.77172],[1251504000000,2.80778],[1251590400000,2.80778],[1251676800000,2.80778],[1251763200000,2.77824],[1251849600000,2.78003],[1251936000000,2.72425],[1252022400000,2.7776],[1252108800000,2.77129],[1252195200000,2.77129],[1252281600000,2.77129],[1252368000000,2.78755],[1252454400000,2.83033],[1252540800000,2.81531],[1252627200000,2.79066],[1252713600000,2.78388],[1252800000000,2.78388],[1252886400000,2.78388],[1252972800000,2.76981],[1253059200000,2.80892],[1253145600000,2.83694],[1253232000000,2.8559],[1253318400000,2.85122],[1253404800000,2.85122],[1253491200000,2.85122],[1253577600000,2.82192],[1253664000000,2.84383],[1253750400000,2.82324],[1253836800000,2.83655],[1253923200000,2.79933],[1254009600000,2.79933],[1254096000000,2.79933],[1254182400000,2.78753],[1254268800000,2.76581],[1254355200000,2.77107],[1254441600000,2.74306],[1254528000000,2.7438],[1254614400000,2.7438],[1254700800000,2.7438],[1254787200000,2.78245],[1254873600000,2.82363],[1254960000000,2.7904],[1255046400000,2.79324],[1255132800000,2.77602],[1255219200000,2.77602],[1255305600000,2.77602],[1255392000000,2.78015],[1255478400000,2.81134],[1255564800000,2.83262],[1255651200000,2.80911],[1255737600000,2.81266],[1255824000000,2.81266],[1255910400000,2.81266],[1255996800000,2.83559],[1256083200000,2.8746],[1256169600000,2.85456],[1256256000000,2.86781],[1256342400000,2.87723],[1256428800000,2.87723],[1256515200000,2.87723],[1256601600000,2.8778],[1256688000000,2.83361],[1256774400000,2.7842],[1256860800000,2.77937],[1256947200000,2.78935],[1257033600000,2.78935],[1257120000000,2.78935],[1257206400000,2.77546],[1257292800000,2.73995],[1257379200000,2.77071],[1257465600000,2.80662],[1257552000000,2.79708],[1257638400000,2.79708],[1257724800000,2.79708],[1257811200000,2.83847],[1257897600000,2.84487],[1257984000000,2.91533],[1258070400000,2.88138],[1258156800000,2.89186],[1258243200000,2.89186],[1258329600000,2.89186],[1258416000000,2.9204],[1258502400000,2.89807],[1258588800000,2.91704],[1258675200000,2.8714],[1258761600000,2.85075],[1258848000000,2.85075],[1258934400000,2.85075],[1259020800000,2.90214],[1259107200000,2.90657],[1259193600000,2.93286],[1259280000000,2.91627],[1259366400000,2.85959],[1259452800000,2.85959],[1259539200000,2.85959],[1259625600000,2.8957],[1259712000000,2.93029],[1259798400000,2.93474],[1259884800000,2.94821],[1259971200000,2.93938],[1260057600000,2.93938],[1260144000000,2.93938],[1260230400000,2.89361],[1260316800000,2.87224],[1260403200000,2.85331],[1260489600000,2.84123],[1260576000000,2.84155],[1260662400000,2.84155],[1260748800000,2.84155],[1260835200000,2.81783],[1260921600000,2.76934],[1261008000000,2.76649],[1261094400000,2.71994],[1261180800000,2.72516],[1261267200000,2.72516],[1261353600000,2.72516],[1261440000000,2.73529],[1261526400000,2.72419],[1261612800000,2.72634],[1261699200000,2.76219],[1261785600000,2.76202],[1261872000000,2.76202],[1261958400000,2.76202],[1262044800000,2.75741],[1262131200000,2.77378]], 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: [[1231977600000, 2.406001],[1231977600000, 2.406001],[1234656000000, 2.122724],[1237075200000, 2.175823],[1239753600000, 2.295395],[1242345600000, 2.362700],[1245024000000, 2.371255],[1247616000000, 2.500088],[1250294400000, 2.699619],[1252972800000, 2.801719],[1255564800000, 2.808487],[1258243200000, 2.853803],[1260835200000, 2.816194]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });