$(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: [[1451606400000,3.69809],[1451692800000,3.69809],[1451779200000,3.69809],[1451865600000,3.69809],[1451952000000,3.69809],[1452038400000,3.64728],[1452124800000,3.58678],[1452211200000,3.58678],[1452297600000,3.58678],[1452384000000,3.58678],[1452470400000,3.58678],[1452556800000,3.57654],[1452643200000,3.53722],[1452729600000,3.59544],[1452816000000,3.63319],[1452902400000,3.67212],[1452988800000,3.70181],[1453075200000,3.70181],[1453161600000,3.74484],[1453248000000,3.77654],[1453334400000,3.74788],[1453420800000,3.72722],[1453507200000,3.76848],[1453593600000,3.76848],[1453680000000,3.76848],[1453766400000,3.77388],[1453852800000,3.77609],[1453939200000,3.78087],[1454025600000,3.82442],[1454112000000,3.8861],[1454198400000,3.8861]], 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: [[1451606400000, 3.698086],[1451606400000, 3.698086],[1451692800000, 3.698086],[1451779200000, 3.698086],[1451865600000, 3.698086],[1451952000000, 3.698086],[1452038400000, 3.647281],[1452124800000, 3.586776],[1452211200000, 3.586776],[1452297600000, 3.586776],[1452384000000, 3.586776],[1452470400000, 3.586776],[1452556800000, 3.576537],[1452643200000, 3.537216],[1452729600000, 3.595442],[1452816000000, 3.633190],[1452902400000, 3.672119],[1452988800000, 3.701809],[1453075200000, 3.701809],[1453161600000, 3.744836],[1453248000000, 3.776542],[1453334400000, 3.747882],[1453420800000, 3.727224],[1453507200000, 3.768476],[1453593600000, 3.768476],[1453680000000, 3.768476],[1453766400000, 3.773884],[1453852800000, 3.776091],[1453939200000, 3.780870],[1454025600000, 3.824416],[1454112000000, 3.886101],[1454198400000, 3.886101]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });