$(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: [[1396310400000,1.76833],[1396396800000,1.78936],[1396483200000,1.81234],[1396569600000,1.80688],[1396656000000,1.86772],[1396742400000,1.86772],[1396828800000,1.86772],[1396915200000,1.87546],[1397001600000,1.88757],[1397088000000,1.9169],[1397174400000,2.03514],[1397260800000,2.02286],[1397347200000,2.02286],[1397433600000,2.02286],[1397520000000,2.08957],[1397606400000,1.99141],[1397692800000,1.83189],[1397779200000,1.80819],[1397865600000,1.80565],[1397952000000,1.80565],[1398038400000,1.80565],[1398124800000,1.80565],[1398211200000,1.80888],[1398297600000,1.84593],[1398384000000,1.82561],[1398470400000,1.82119],[1398556800000,1.82119],[1398643200000,1.82119],[1398729600000,1.81556],[1398816000000,1.82408]], 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: [[1396310400000, 1.768335],[1396310400000, 1.768335],[1396396800000, 1.789355],[1396483200000, 1.812335],[1396569600000, 1.806875],[1396656000000, 1.867715],[1396742400000, 1.867715],[1396828800000, 1.867715],[1396915200000, 1.875457],[1397001600000, 1.887571],[1397088000000, 1.916902],[1397174400000, 2.035140],[1397260800000, 2.022864],[1397347200000, 2.022864],[1397433600000, 2.022864],[1397520000000, 2.089566],[1397606400000, 1.991408],[1397692800000, 1.831887],[1397779200000, 1.808192],[1397865600000, 1.805654],[1397952000000, 1.805654],[1398038400000, 1.805654],[1398124800000, 1.805654],[1398211200000, 1.808883],[1398297600000, 1.845930],[1398384000000, 1.825606],[1398470400000, 1.821186],[1398556800000, 1.821186],[1398643200000, 1.821186],[1398729600000, 1.815558],[1398816000000, 1.824078]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });