$(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: [[1249084800000,2.70144],[1249171200000,2.70144],[1249257600000,2.70144],[1249344000000,2.69702],[1249430400000,2.69526],[1249516800000,2.69579],[1249603200000,2.70105],[1249689600000,2.70309],[1249776000000,2.70309],[1249862400000,2.70309],[1249948800000,2.70526],[1250035200000,2.71172],[1250121600000,2.71558],[1250208000000,2.71895],[1250294400000,2.72537],[1250380800000,2.72537],[1250467200000,2.72537],[1250553600000,2.73877],[1250640000000,2.74723],[1250726400000,2.75368],[1250812800000,2.76646],[1250899200000,2.78597],[1250985600000,2.78597],[1251072000000,2.78597],[1251158400000,2.78597],[1251244800000,2.79414],[1251331200000,2.80316],[1251417600000,2.80316],[1251504000000,2.80316],[1251590400000,2.80316],[1251676800000,2.80316]], 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: [[1249084800000, 2.701439],[1249084800000, 2.701439],[1249171200000, 2.701439],[1249257600000, 2.701439],[1249344000000, 2.697018],[1249430400000, 2.695263],[1249516800000, 2.695789],[1249603200000, 2.701053],[1249689600000, 2.703088],[1249776000000, 2.703088],[1249862400000, 2.703088],[1249948800000, 2.705263],[1250035200000, 2.711719],[1250121600000, 2.715579],[1250208000000, 2.718947],[1250294400000, 2.725368],[1250380800000, 2.725368],[1250467200000, 2.725368],[1250553600000, 2.738772],[1250640000000, 2.747228],[1250726400000, 2.753684],[1250812800000, 2.766456],[1250899200000, 2.785965],[1250985600000, 2.785965],[1251072000000, 2.785965],[1251158400000, 2.785965],[1251244800000, 2.794140],[1251331200000, 2.803158],[1251417600000, 2.803158],[1251504000000, 2.803158],[1251590400000, 2.803158],[1251676800000, 2.803158]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });