$(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: [[1388534400000,6.3062],[1388620800000,6.3062],[1388707200000,6.3062],[1388793600000,6.31968],[1388880000000,6.31968],[1388966400000,6.31968],[1389052800000,6.31968],[1389139200000,6.31968],[1389225600000,6.29457],[1389312000000,6.28761],[1389398400000,6.29388],[1389484800000,6.29388],[1389571200000,6.29388],[1389657600000,6.31942],[1389744000000,6.30572],[1389830400000,6.28229],[1389916800000,6.2756],[1390003200000,6.27576],[1390089600000,6.27576],[1390176000000,6.27576],[1390262400000,6.26419],[1390348800000,6.24644],[1390435200000,6.25443],[1390521600000,6.24951],[1390608000000,6.24609],[1390694400000,6.24609],[1390780800000,6.24609],[1390867200000,6.25822],[1390953600000,6.27063],[1391040000000,6.2709],[1391126400000,6.26318]], 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: [[1388534400000, 6.306203],[1388534400000, 6.306203],[1388620800000, 6.306203],[1388707200000, 6.306203],[1388793600000, 6.319680],[1388880000000, 6.319680],[1388966400000, 6.319680],[1389052800000, 6.319680],[1389139200000, 6.319680],[1389225600000, 6.294569],[1389312000000, 6.287605],[1389398400000, 6.293880],[1389484800000, 6.293880],[1389571200000, 6.293880],[1389657600000, 6.319422],[1389744000000, 6.305722],[1389830400000, 6.282292],[1389916800000, 6.275599],[1390003200000, 6.275759],[1390089600000, 6.275759],[1390176000000, 6.275759],[1390262400000, 6.264185],[1390348800000, 6.246436],[1390435200000, 6.254429],[1390521600000, 6.249514],[1390608000000, 6.246086],[1390694400000, 6.246086],[1390780800000, 6.246086],[1390867200000, 6.258220],[1390953600000, 6.270632],[1391040000000, 6.270899],[1391126400000, 6.263175]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });