$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1372636800000,6.32644],[1372723200000,6.30436],[1372809600000,6.30422],[1372896000000,6.27385],[1372982400000,6.28025],[1373068800000,6.26705],[1373155200000,6.26705],[1373241600000,6.26705],[1373328000000,6.23619],[1373414400000,6.25288],[1373500800000,6.26349],[1373587200000,6.33418],[1373673600000,6.31399],[1373760000000,6.31399],[1373846400000,6.31399],[1373932800000,6.30677],[1374019200000,6.34814],[1374105600000,6.32544],[1374192000000,6.30664],[1374278400000,6.32223],[1374364800000,6.32223],[1374451200000,null],[1374537600000,6.33264],[1374624000000,6.30976],[1374710400000,6.31563],[1374796800000,6.30368],[1374883200000,6.32193],[1374969600000,6.32193],[1375056000000,6.32193],[1375142400000,6.30676],[1375228800000,6.29321]], 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: [[1372636800000, 6.326436],[1372636800000, 6.326436],[1372723200000, 6.304358],[1372809600000, 6.304222],[1372896000000, 6.273851],[1372982400000, 6.280249],[1373068800000, 6.267045],[1373155200000, 6.267045],[1373241600000, 6.267045],[1373328000000, 6.236190],[1373414400000, 6.252875],[1373500800000, 6.263489],[1373587200000, 6.334185],[1373673600000, 6.313986],[1373760000000, 6.313986],[1373846400000, 6.313986],[1373932800000, 6.306768],[1374019200000, 6.348137],[1374105600000, 6.325444],[1374192000000, 6.306638],[1374278400000, 6.322231],[1374364800000, 6.322231],[1374537600000, 6.332642],[1374624000000, 6.309759],[1374710400000, 6.315633],[1374796800000, 6.303679],[1374883200000, 6.321931],[1374969600000, 6.321931],[1375056000000, 6.321931],[1375142400000, 6.306761],[1375228800000, 6.293208]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });