$(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: [[1472688000000,0.252445],[1472774400000,0.256649],[1472860800000,0.257362],[1472947200000,0.257362],[1473033600000,0.257362],[1473120000000,0.259317],[1473206400000,0.259643],[1473292800000,0.262892],[1473379200000,0.262109],[1473465600000,0.25945],[1473552000000,0.25945],[1473638400000,0.25945],[1473724800000,0.261371],[1473811200000,0.258491],[1473897600000,0.25602],[1473984000000,0.256506],[1474070400000,0.254277],[1474156800000,0.254277],[1474243200000,0.254277],[1474329600000,0.253136],[1474416000000,0.253321],[1474502400000,0.25746],[1474588800000,0.257373],[1474675200000,0.257883],[1474761600000,0.257883],[1474848000000,0.257883],[1474934400000,0.257893],[1475020800000,0.25756],[1475107200000,0.257407],[1475193600000,0.255319]], 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: [[1472688000000, 0.252445],[1472688000000, 0.252445],[1472774400000, 0.256649],[1472860800000, 0.257362],[1472947200000, 0.257362],[1473033600000, 0.257362],[1473120000000, 0.259317],[1473206400000, 0.259643],[1473292800000, 0.262892],[1473379200000, 0.262109],[1473465600000, 0.259450],[1473552000000, 0.259450],[1473638400000, 0.259450],[1473724800000, 0.261371],[1473811200000, 0.258491],[1473897600000, 0.256020],[1473984000000, 0.256506],[1474070400000, 0.254277],[1474156800000, 0.254277],[1474243200000, 0.254277],[1474329600000, 0.253136],[1474416000000, 0.253321],[1474502400000, 0.257460],[1474588800000, 0.257373],[1474675200000, 0.257883],[1474761600000, 0.257883],[1474848000000, 0.257883],[1474934400000, 0.257893],[1475020800000, 0.257560],[1475107200000, 0.257407],[1475193600000, 0.255319]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });