$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1249084800000,15.4991],[1249171200000,15.4991],[1249257600000,15.4991],[1249344000000,15.6543],[1249430400000,15.7282],[1249516800000,15.753],[1249603200000,15.7467],[1249689600000,15.7487],[1249776000000,15.7487],[1249862400000,15.7487],[1249948800000,15.6291],[1250035200000,15.6155],[1250121600000,15.6444],[1250208000000,15.8043],[1250294400000,15.8608],[1250380800000,15.8608],[1250467200000,15.8608],[1250553600000,15.6913],[1250640000000,15.7677],[1250726400000,15.8148],[1250812800000,16.0586],[1250899200000,16.259],[1250985600000,16.259],[1251072000000,16.259],[1251158400000,16.259],[1251244800000,16.2998],[1251331200000,16.2397],[1251417600000,16.2029],[1251504000000,16.3119],[1251590400000,16.3119],[1251676800000,16.3119]], 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, 15.499057],[1249084800000, 15.499057],[1249171200000, 15.499057],[1249257600000, 15.499057],[1249344000000, 15.654280],[1249430400000, 15.728213],[1249516800000, 15.752992],[1249603200000, 15.746656],[1249689600000, 15.748748],[1249776000000, 15.748748],[1249862400000, 15.748748],[1249948800000, 15.629092],[1250035200000, 15.615535],[1250121600000, 15.644408],[1250208000000, 15.804289],[1250294400000, 15.860827],[1250380800000, 15.860827],[1250467200000, 15.860827],[1250553600000, 15.691285],[1250640000000, 15.767665],[1250726400000, 15.814790],[1250812800000, 16.058560],[1250899200000, 16.258960],[1250985600000, 16.258960],[1251072000000, 16.258960],[1251158400000, 16.258960],[1251244800000, 16.299844],[1251331200000, 16.239748],[1251417600000, 16.202850],[1251504000000, 16.311869],[1251590400000, 16.311869],[1251676800000, 16.311869]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });