$(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: [[1341100800000,1.25716],[1341187200000,1.25716],[1341273600000,1.25894],[1341360000000,1.25816],[1341446400000,1.25912],[1341532800000,1.25728],[1341619200000,1.25559],[1341705600000,1.25567],[1341792000000,1.25567],[1341878400000,1.25431],[1341964800000,1.25544],[1342051200000,1.25911],[1342137600000,1.25406],[1342224000000,1.25107],[1342310400000,1.25107],[1342396800000,1.25107],[1342483200000,1.25286],[1342569600000,1.25395],[1342656000000,1.25469],[1342742400000,1.25401],[1342828800000,1.2538],[1342915200000,1.2538],[1343001600000,1.2538],[1343088000000,1.25164],[1343174400000,1.25167],[1343260800000,1.25116],[1343347200000,1.25179],[1343433600000,1.25269],[1343520000000,1.25269],[1343606400000,1.25269],[1343692800000,1.25293]], 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: [[1341100800000, 1.257159],[1341100800000, 1.257159],[1341187200000, 1.257159],[1341273600000, 1.258938],[1341360000000, 1.258161],[1341446400000, 1.259119],[1341532800000, 1.257277],[1341619200000, 1.255593],[1341705600000, 1.255672],[1341792000000, 1.255672],[1341878400000, 1.254314],[1341964800000, 1.255437],[1342051200000, 1.259112],[1342137600000, 1.254058],[1342224000000, 1.251072],[1342310400000, 1.251072],[1342396800000, 1.251072],[1342483200000, 1.252858],[1342569600000, 1.253954],[1342656000000, 1.254685],[1342742400000, 1.254006],[1342828800000, 1.253804],[1342915200000, 1.253804],[1343001600000, 1.253804],[1343088000000, 1.251637],[1343174400000, 1.251666],[1343260800000, 1.251155],[1343347200000, 1.251794],[1343433600000, 1.252685],[1343520000000, 1.252685],[1343606400000, 1.252685],[1343692800000, 1.252925]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });