$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1249084800000,11.9592],[1249171200000,11.9592],[1249257600000,11.9592],[1249344000000,12.0209],[1249430400000,12.0525],[1249516800000,12.0506],[1249603200000,12.0657],[1249689600000,12.0595],[1249776000000,12.0595],[1249862400000,12.0595],[1249948800000,11.9808],[1250035200000,11.9964],[1250121600000,12.022],[1250208000000,12.0735],[1250294400000,12.1185],[1250380800000,12.1185],[1250467200000,12.1185],[1250553600000,12.0972],[1250640000000,12.1582],[1250726400000,12.1927],[1250812800000,12.2932],[1250899200000,12.4264],[1250985600000,12.4264],[1251072000000,12.4264],[1251158400000,12.4264],[1251244800000,12.4302],[1251331200000,12.4688],[1251417600000,12.4548],[1251504000000,12.4942],[1251590400000,12.4942],[1251676800000,12.4942]], 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, 11.959247],[1249084800000, 11.959247],[1249171200000, 11.959247],[1249257600000, 11.959247],[1249344000000, 12.020881],[1249430400000, 12.052531],[1249516800000, 12.050593],[1249603200000, 12.065736],[1249689600000, 12.059460],[1249776000000, 12.059460],[1249862400000, 12.059460],[1249948800000, 11.980793],[1250035200000, 11.996355],[1250121600000, 12.021977],[1250208000000, 12.073479],[1250294400000, 12.118475],[1250380800000, 12.118475],[1250467200000, 12.118475],[1250553600000, 12.097180],[1250640000000, 12.158236],[1250726400000, 12.192735],[1250812800000, 12.293214],[1250899200000, 12.426365],[1250985600000, 12.426365],[1251072000000, 12.426365],[1251158400000, 12.426365],[1251244800000, 12.430168],[1251331200000, 12.468766],[1251417600000, 12.454789],[1251504000000, 12.494194],[1251590400000, 12.494194],[1251676800000, 12.494194]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });