$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1388534400000,3.19785],[1388620800000,3.19785],[1388707200000,3.19785],[1388793600000,3.15618],[1388880000000,3.15618],[1388966400000,3.15618],[1389052800000,3.15618],[1389139200000,3.15618],[1389225600000,3.14692],[1389312000000,3.15109],[1389398400000,3.1453],[1389484800000,3.1453],[1389571200000,3.1453],[1389657600000,3.16081],[1389744000000,3.16382],[1389830400000,3.1497],[1389916800000,3.14761],[1390003200000,3.1446],[1390089600000,3.1446],[1390176000000,3.1446],[1390262400000,3.14044],[1390348800000,3.13118],[1390435200000,3.14044],[1390521600000,3.15734],[1390608000000,3.16845],[1390694400000,3.16845],[1390780800000,3.16845],[1390867200000,3.16174],[1390953600000,3.15965],[1391040000000,3.15016],[1391126400000,3.14229]], 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, 3.197848],[1388534400000, 3.197848],[1388620800000, 3.197848],[1388707200000, 3.197848],[1388793600000, 3.156179],[1388880000000, 3.156179],[1388966400000, 3.156179],[1389052800000, 3.156179],[1389139200000, 3.156179],[1389225600000, 3.146920],[1389312000000, 3.151087],[1389398400000, 3.145299],[1389484800000, 3.145299],[1389571200000, 3.145299],[1389657600000, 3.160809],[1389744000000, 3.163819],[1389830400000, 3.149698],[1389916800000, 3.147614],[1390003200000, 3.144605],[1390089600000, 3.144605],[1390176000000, 3.144605],[1390262400000, 3.140438],[1390348800000, 3.131178],[1390435200000, 3.140438],[1390521600000, 3.157337],[1390608000000, 3.168449],[1390694400000, 3.168449],[1390780800000, 3.168449],[1390867200000, 3.161735],[1390953600000, 3.159652],[1391040000000, 3.150161],[1391126400000, 3.142290]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });