$(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: [[1264982400000,1.17171],[1265068800000,1.17164],[1265155200000,1.17189],[1265241600000,1.17206],[1265328000000,1.17201],[1265414400000,1.17186],[1265500800000,1.17186],[1265587200000,1.17186],[1265673600000,1.17295],[1265760000000,1.17324],[1265846400000,1.17273],[1265932800000,1.17198],[1266019200000,1.17116],[1266105600000,1.17116],[1266192000000,1.17116],[1266278400000,1.17108],[1266364800000,1.17114],[1266451200000,1.17114],[1266537600000,1.17075],[1266624000000,1.1705],[1266710400000,1.1705],[1266796800000,1.1705],[1266883200000,1.17049],[1266969600000,1.17041],[1267056000000,1.17036],[1267142400000,1.17038],[1267228800000,1.17052],[1267315200000,1.17052]], 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: [[1264982400000, 1.171707],[1264982400000, 1.171707],[1265068800000, 1.171642],[1265155200000, 1.171887],[1265241600000, 1.172064],[1265328000000, 1.172012],[1265414400000, 1.171857],[1265500800000, 1.171857],[1265587200000, 1.171857],[1265673600000, 1.172955],[1265760000000, 1.173236],[1265846400000, 1.172732],[1265932800000, 1.171978],[1266019200000, 1.171161],[1266105600000, 1.171161],[1266192000000, 1.171161],[1266278400000, 1.171077],[1266364800000, 1.171135],[1266451200000, 1.171137],[1266537600000, 1.170749],[1266624000000, 1.170500],[1266710400000, 1.170500],[1266796800000, 1.170500],[1266883200000, 1.170494],[1266969600000, 1.170406],[1267056000000, 1.170358],[1267142400000, 1.170384],[1267228800000, 1.170522],[1267315200000, 1.170522]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });