$(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: [[1241136000000,5.20986],[1241222400000,5.20986],[1241308800000,null],[1241395200000,5.20986],[1241481600000,5.20986],[1241568000000,5.23528],[1241654400000,5.22006],[1241740800000,5.2628],[1241827200000,5.23593],[1241913600000,5.23593],[1242000000000,5.23593],[1242086400000,5.23593],[1242172800000,5.25775],[1242259200000,5.20875],[1242345600000,5.19821],[1242432000000,5.19018],[1242518400000,5.19018],[1242604800000,5.19018],[1242691200000,5.19331],[1242777600000,5.20912],[1242864000000,5.21479],[1242950400000,5.22187],[1243036800000,5.2791],[1243123200000,5.2791],[1243209600000,5.2791],[1243296000000,5.26875],[1243382400000,5.2445],[1243468800000,5.24627],[1243555200000,5.24005],[1243641600000,5.27792],[1243728000000,5.27792]], 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: [[1241136000000, 5.209862],[1241136000000, 5.209862],[1241222400000, 5.209862],[1241395200000, 5.209862],[1241481600000, 5.209862],[1241568000000, 5.235281],[1241654400000, 5.220060],[1241740800000, 5.262802],[1241827200000, 5.235927],[1241913600000, 5.235927],[1242000000000, 5.235927],[1242086400000, 5.235927],[1242172800000, 5.257753],[1242259200000, 5.208750],[1242345600000, 5.198207],[1242432000000, 5.190185],[1242518400000, 5.190185],[1242604800000, 5.190185],[1242691200000, 5.193313],[1242777600000, 5.209116],[1242864000000, 5.214785],[1242950400000, 5.221873],[1243036800000, 5.279097],[1243123200000, 5.279097],[1243209600000, 5.279097],[1243296000000, 5.268745],[1243382400000, 5.244497],[1243468800000, 5.246271],[1243555200000, 5.240052],[1243641600000, 5.277917],[1243728000000, 5.277917]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });