$(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: [[1338508800000,6.21277],[1338595200000,6.17646],[1338681600000,6.17646],[1338768000000,6.17646],[1338854400000,6.17646],[1338940800000,6.20402],[1339027200000,6.25228],[1339113600000,6.28178],[1339200000000,6.21146],[1339286400000,6.21146],[1339372800000,6.21146],[1339459200000,6.24232],[1339545600000,6.22225],[1339632000000,6.20402],[1339718400000,6.2299],[1339804800000,6.27758],[1339891200000,6.27758],[1339977600000,6.27758],[1340064000000,6.28541],[1340150400000,6.31108],[1340236800000,6.30467],[1340323200000,6.28897],[1340409600000,6.2601],[1340496000000,6.2601],[1340582400000,6.2601],[1340668800000,6.22919],[1340755200000,6.23828],[1340841600000,6.25583],[1340928000000,6.25583],[1341014400000,6.25583]], 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: [[1338508800000, 6.212771],[1338508800000, 6.212771],[1338595200000, 6.176456],[1338681600000, 6.176456],[1338768000000, 6.176456],[1338854400000, 6.176456],[1338940800000, 6.204021],[1339027200000, 6.252278],[1339113600000, 6.281781],[1339200000000, 6.211462],[1339286400000, 6.211462],[1339372800000, 6.211462],[1339459200000, 6.242321],[1339545600000, 6.222255],[1339632000000, 6.204021],[1339718400000, 6.229901],[1339804800000, 6.277579],[1339891200000, 6.277579],[1339977600000, 6.277579],[1340064000000, 6.285408],[1340150400000, 6.311079],[1340236800000, 6.304671],[1340323200000, 6.288969],[1340409600000, 6.260101],[1340496000000, 6.260101],[1340582400000, 6.260101],[1340668800000, 6.229192],[1340755200000, 6.238281],[1340841600000, 6.255828],[1340928000000, 6.255828],[1341014400000, 6.255828]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });