$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1451606400000,0.199173],[1451692800000,0.199173],[1451779200000,0.199173],[1451865600000,0.199173],[1451952000000,0.199173],[1452038400000,0.199859],[1452124800000,0.198495],[1452211200000,0.198495],[1452297600000,0.198495],[1452384000000,0.198495],[1452470400000,0.198495],[1452556800000,0.19942],[1452643200000,0.197291],[1452729600000,0.200181],[1452816000000,0.203412],[1452902400000,0.206558],[1452988800000,0.208228],[1453075200000,0.208228],[1453161600000,0.210007],[1453248000000,0.210746],[1453334400000,0.211328],[1453420800000,0.209617],[1453507200000,0.209716],[1453593600000,0.209716],[1453680000000,0.209716],[1453766400000,0.209678],[1453852800000,0.21002],[1453939200000,0.210061],[1454025600000,0.211564],[1454112000000,0.21101],[1454198400000,0.21101]], 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, 0.199173],[1451606400000, 0.199173],[1451692800000, 0.199173],[1451779200000, 0.199173],[1451865600000, 0.199173],[1451952000000, 0.199173],[1452038400000, 0.199859],[1452124800000, 0.198495],[1452211200000, 0.198495],[1452297600000, 0.198495],[1452384000000, 0.198495],[1452470400000, 0.198495],[1452556800000, 0.199420],[1452643200000, 0.197291],[1452729600000, 0.200181],[1452816000000, 0.203412],[1452902400000, 0.206558],[1452988800000, 0.208228],[1453075200000, 0.208228],[1453161600000, 0.210007],[1453248000000, 0.210746],[1453334400000, 0.211328],[1453420800000, 0.209617],[1453507200000, 0.209716],[1453593600000, 0.209716],[1453680000000, 0.209716],[1453766400000, 0.209678],[1453852800000, 0.210020],[1453939200000, 0.210061],[1454025600000, 0.211564],[1454112000000, 0.211010],[1454198400000, 0.211010]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });