$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1388534400000,2.80456],[1388620800000,2.80456],[1388707200000,2.80456],[1388793600000,2.80456],[1388880000000,2.80456],[1388966400000,2.80456],[1389052800000,2.80456],[1389139200000,2.80456],[1389225600000,2.80456],[1389312000000,2.80456],[1389398400000,2.80456],[1389484800000,2.80456],[1389571200000,2.80456],[1389657600000,2.80456],[1389744000000,2.80456],[1389830400000,2.80456],[1389916800000,2.80456],[1390003200000,2.80456],[1390089600000,2.80456],[1390176000000,2.80456],[1390262400000,2.80456],[1390348800000,2.80456],[1390435200000,2.80456],[1390521600000,2.80456],[1390608000000,2.80456],[1390694400000,2.80456],[1390780800000,2.80456],[1390867200000,2.80456],[1390953600000,2.80456],[1391040000000,2.80456],[1391126400000,2.80456]], 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, 2.804561],[1388534400000, 2.804561],[1388620800000, 2.804561],[1388707200000, 2.804561],[1388793600000, 2.804561],[1388880000000, 2.804561],[1388966400000, 2.804561],[1389052800000, 2.804561],[1389139200000, 2.804561],[1389225600000, 2.804561],[1389312000000, 2.804561],[1389398400000, 2.804561],[1389484800000, 2.804561],[1389571200000, 2.804561],[1389657600000, 2.804561],[1389744000000, 2.804561],[1389830400000, 2.804561],[1389916800000, 2.804561],[1390003200000, 2.804561],[1390089600000, 2.804561],[1390176000000, 2.804561],[1390262400000, 2.804561],[1390348800000, 2.804561],[1390435200000, 2.804561],[1390521600000, 2.804561],[1390608000000, 2.804561],[1390694400000, 2.804561],[1390780800000, 2.804561],[1390867200000, 2.804561],[1390953600000, 2.804561],[1391040000000, 2.804561],[1391126400000, 2.804561]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });