$(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: [[1172707200000,3.30504],[1172793600000,3.30953],[1172880000000,3.30926],[1172966400000,3.30926],[1173052800000,3.30926],[1173139200000,3.30181],[1173225600000,3.30445],[1173312000000,3.307],[1173398400000,3.307],[1173484800000,3.307],[1173571200000,3.307],[1173657600000,3.307],[1173744000000,3.30849],[1173830400000,3.30466],[1173916800000,3.29038],[1174003200000,3.29362],[1174089600000,3.308],[1174176000000,3.308],[1174262400000,3.308],[1174348800000,3.30806],[1174435200000,3.30779],[1174521600000,3.31504],[1174608000000,3.32836],[1174694400000,3.32895],[1174780800000,3.32895],[1174867200000,3.32895],[1174953600000,3.32563],[1175040000000,3.32983],[1175126400000,3.32712],[1175212800000,3.32582],[1175299200000,3.32884]], 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: [[1172707200000, 3.305041],[1172707200000, 3.305041],[1172793600000, 3.309527],[1172880000000, 3.309262],[1172966400000, 3.309262],[1173052800000, 3.309262],[1173139200000, 3.301807],[1173225600000, 3.304446],[1173312000000, 3.306997],[1173398400000, 3.306997],[1173484800000, 3.306997],[1173571200000, 3.306997],[1173657600000, 3.306997],[1173744000000, 3.308491],[1173830400000, 3.304664],[1173916800000, 3.290375],[1174003200000, 3.293619],[1174089600000, 3.307996],[1174176000000, 3.307996],[1174262400000, 3.307996],[1174348800000, 3.308063],[1174435200000, 3.307789],[1174521600000, 3.315044],[1174608000000, 3.328358],[1174694400000, 3.328948],[1174780800000, 3.328948],[1174867200000, 3.328948],[1174953600000, 3.325634],[1175040000000, 3.329827],[1175126400000, 3.327117],[1175212800000, 3.325816],[1175299200000, 3.328841]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });