$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1249084800000,1.1269],[1249171200000,1.1269],[1249257600000,1.1269],[1249344000000,1.12527],[1249430400000,1.12463],[1249516800000,1.12475],[1249603200000,1.12689],[1249689600000,1.12764],[1249776000000,1.12764],[1249862400000,1.12764],[1249948800000,1.12812],[1250035200000,1.13071],[1250121600000,1.13231],[1250208000000,1.13394],[1250294400000,1.13654],[1250380800000,1.13654],[1250467200000,1.13654],[1250553600000,1.14174],[1250640000000,1.1457],[1250726400000,1.14836],[1250812800000,1.15408],[1250899200000,1.16231],[1250985600000,1.16231],[1251072000000,1.16231],[1251158400000,1.16231],[1251244800000,1.16562],[1251331200000,1.1695],[1251417600000,1.16935],[1251504000000,1.16967],[1251590400000,1.16967],[1251676800000,1.16967]], 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, 1.126904],[1249084800000, 1.126904],[1249171200000, 1.126904],[1249257600000, 1.126904],[1249344000000, 1.125270],[1249430400000, 1.124633],[1249516800000, 1.124745],[1249603200000, 1.126892],[1249689600000, 1.127640],[1249776000000, 1.127640],[1249862400000, 1.127640],[1249948800000, 1.128118],[1250035200000, 1.130705],[1250121600000, 1.132307],[1250208000000, 1.133940],[1250294400000, 1.136535],[1250380800000, 1.136535],[1250467200000, 1.136535],[1250553600000, 1.141742],[1250640000000, 1.145698],[1250726400000, 1.148357],[1250812800000, 1.154077],[1250899200000, 1.162315],[1250985600000, 1.162315],[1251072000000, 1.162315],[1251158400000, 1.162315],[1251244800000, 1.165619],[1251331200000, 1.169502],[1251417600000, 1.169350],[1251504000000, 1.169670],[1251590400000, 1.169670],[1251676800000, 1.169670]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });