$(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: [[1354320000000,6.545],[1354406400000,6.545],[1354492800000,6.545],[1354579200000,6.55927],[1354665600000,6.56448],[1354752000000,6.55917],[1354838400000,6.55651],[1354924800000,6.54628],[1355011200000,6.54628],[1355097600000,6.54628],[1355184000000,6.54318],[1355270400000,6.54481],[1355356800000,6.54456],[1355443200000,6.54833],[1355529600000,6.54296],[1355616000000,6.54296],[1355702400000,6.54296],[1355788800000,6.54887],[1355875200000,6.5615],[1355961600000,6.55828],[1356048000000,6.55656],[1356134400000,6.54716],[1356220800000,6.54716],[1356307200000,6.54716],[1356393600000,6.5504],[1356480000000,6.5504],[1356566400000,6.5504],[1356652800000,6.54053],[1356739200000,6.53509],[1356825600000,6.53509],[1356912000000,6.53509]], 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: [[1354320000000, 6.544996],[1354320000000, 6.544996],[1354406400000, 6.544996],[1354492800000, 6.544996],[1354579200000, 6.559274],[1354665600000, 6.564479],[1354752000000, 6.559170],[1354838400000, 6.556507],[1354924800000, 6.546276],[1355011200000, 6.546276],[1355097600000, 6.546276],[1355184000000, 6.543178],[1355270400000, 6.544810],[1355356800000, 6.544564],[1355443200000, 6.548331],[1355529600000, 6.542956],[1355616000000, 6.542956],[1355702400000, 6.542956],[1355788800000, 6.548866],[1355875200000, 6.561500],[1355961600000, 6.558283],[1356048000000, 6.556557],[1356134400000, 6.547162],[1356220800000, 6.547162],[1356307200000, 6.547162],[1356393600000, 6.550404],[1356480000000, 6.550404],[1356566400000, 6.550404],[1356652800000, 6.540534],[1356739200000, 6.535086],[1356825600000, 6.535086],[1356912000000, 6.535086]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });