$(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: [[1354320000000,2.80456],[1354406400000,2.80456],[1354492800000,2.80456],[1354579200000,2.80456],[1354665600000,2.80456],[1354752000000,2.80456],[1354838400000,2.80456],[1354924800000,2.80456],[1355011200000,2.80456],[1355097600000,2.80456],[1355184000000,2.80456],[1355270400000,2.80456],[1355356800000,2.80456],[1355443200000,2.80456],[1355529600000,2.80456],[1355616000000,2.80456],[1355702400000,2.80456],[1355788800000,2.80456],[1355875200000,2.80456],[1355961600000,2.80456],[1356048000000,2.80456],[1356134400000,2.80456],[1356220800000,2.80456],[1356307200000,2.80456],[1356393600000,2.80456],[1356480000000,2.80456],[1356566400000,2.80456],[1356652800000,2.80456],[1356739200000,2.80456],[1356825600000,2.80456],[1356912000000,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: [[1354320000000, 2.804561],[1354320000000, 2.804561],[1354406400000, 2.804561],[1354492800000, 2.804561],[1354579200000, 2.804561],[1354665600000, 2.804561],[1354752000000, 2.804561],[1354838400000, 2.804561],[1354924800000, 2.804561],[1355011200000, 2.804561],[1355097600000, 2.804561],[1355184000000, 2.804561],[1355270400000, 2.804561],[1355356800000, 2.804561],[1355443200000, 2.804561],[1355529600000, 2.804561],[1355616000000, 2.804561],[1355702400000, 2.804561],[1355788800000, 2.804561],[1355875200000, 2.804561],[1355961600000, 2.804561],[1356048000000, 2.804561],[1356134400000, 2.804561],[1356220800000, 2.804561],[1356307200000, 2.804561],[1356393600000, 2.804561],[1356480000000, 2.804561],[1356566400000, 2.804561],[1356652800000, 2.804561],[1356739200000, 2.804561],[1356825600000, 2.804561],[1356912000000, 2.804561]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });