$(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: [[1456790400000,0.239571],[1456876800000,0.239524],[1456963200000,0.234592],[1457049600000,0.230021],[1457136000000,0.232967],[1457222400000,0.232967],[1457308800000,0.232967],[1457395200000,0.232967],[1457481600000,0.232967],[1457568000000,0.23239],[1457654400000,0.223671],[1457740800000,0.227172],[1457827200000,0.228708],[1457913600000,0.228708],[1458000000000,0.233339],[1458086400000,0.23825],[1458172800000,0.236322],[1458259200000,0.239154],[1458345600000,0.235308],[1458432000000,0.235308],[1458518400000,0.235308],[1458604800000,0.238063],[1458691200000,0.233886],[1458777600000,0.230628],[1458864000000,0.233487],[1458950400000,0.23187],[1459036800000,0.23187],[1459123200000,0.23187],[1459209600000,0.233736],[1459296000000,0.232801],[1459382400000,0.233095]], 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: [[1456790400000, 0.239571],[1456790400000, 0.239571],[1456876800000, 0.239524],[1456963200000, 0.234592],[1457049600000, 0.230021],[1457136000000, 0.232967],[1457222400000, 0.232967],[1457308800000, 0.232967],[1457395200000, 0.232967],[1457481600000, 0.232967],[1457568000000, 0.232390],[1457654400000, 0.223671],[1457740800000, 0.227172],[1457827200000, 0.228708],[1457913600000, 0.228708],[1458000000000, 0.233339],[1458086400000, 0.238250],[1458172800000, 0.236322],[1458259200000, 0.239154],[1458345600000, 0.235308],[1458432000000, 0.235308],[1458518400000, 0.235308],[1458604800000, 0.238063],[1458691200000, 0.233886],[1458777600000, 0.230628],[1458864000000, 0.233487],[1458950400000, 0.231870],[1459036800000, 0.231870],[1459123200000, 0.231870],[1459209600000, 0.233736],[1459296000000, 0.232801],[1459382400000, 0.233095]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });