$(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: [[1391212800000,2.80456],[1391299200000,2.80456],[1391385600000,2.80456],[1391472000000,2.80456],[1391558400000,2.80456],[1391644800000,2.80456],[1391731200000,3.05544],[1391817600000,2.99235],[1391904000000,2.99235],[1391990400000,2.99235],[1392076800000,3.00112],[1392163200000,3.00025],[1392249600000,3.00025],[1392336000000,3.02839],[1392422400000,3.03175],[1392508800000,3.03175],[1392595200000,3.03175],[1392681600000,3.03361],[1392768000000,3.04804],[1392854400000,3.08253],[1392940800000,3.10105],[1393027200000,3.13614],[1393113600000,3.13614],[1393200000000,3.13614],[1393286400000,3.17112],[1393372800000,3.30768],[1393459200000,3.33961],[1393545600000,3.50396]], 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: [[1391212800000, 2.804561],[1391212800000, 2.804561],[1391299200000, 2.804561],[1391385600000, 2.804561],[1391472000000, 2.804561],[1391558400000, 2.804561],[1391644800000, 2.804561],[1391731200000, 3.055439],[1391817600000, 2.992351],[1391904000000, 2.992351],[1391990400000, 2.992351],[1392076800000, 3.001123],[1392163200000, 3.000246],[1392249600000, 3.000246],[1392336000000, 3.028386],[1392422400000, 3.031754],[1392508800000, 3.031754],[1392595200000, 3.031754],[1392681600000, 3.033614],[1392768000000, 3.048035],[1392854400000, 3.082526],[1392940800000, 3.101053],[1393027200000, 3.136140],[1393113600000, 3.136140],[1393200000000, 3.136140],[1393286400000, 3.171123],[1393372800000, 3.307684],[1393459200000, 3.339614],[1393545600000, 3.503965]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });