$(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: [[1509494400000,0.236833],[1509580800000,0.235379],[1509667200000,0.235979],[1509753600000,0.236639],[1509840000000,0.236639],[1509926400000,0.236639],[1510012800000,0.235237],[1510099200000,0.234264],[1510185600000,0.234692],[1510272000000,0.234441],[1510358400000,0.233969],[1510444800000,0.233969],[1510531200000,0.233969],[1510617600000,0.233773],[1510704000000,0.233476],[1510790400000,0.234957],[1510876800000,0.234115],[1510963200000,0.235323],[1511049600000,0.235323],[1511136000000,0.235323],[1511222400000,0.236129],[1511308800000,0.23541],[1511395200000,0.237886],[1511481600000,0.241486],[1511568000000,0.241722],[1511654400000,0.241722],[1511740800000,0.241722],[1511827200000,0.241718],[1511913600000,0.24157],[1512000000000,0.241601]], 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: [[1509494400000, 0.236833],[1509494400000, 0.236833],[1509580800000, 0.235379],[1509667200000, 0.235979],[1509753600000, 0.236639],[1509840000000, 0.236639],[1509926400000, 0.236639],[1510012800000, 0.235237],[1510099200000, 0.234264],[1510185600000, 0.234692],[1510272000000, 0.234441],[1510358400000, 0.233969],[1510444800000, 0.233969],[1510531200000, 0.233969],[1510617600000, 0.233773],[1510704000000, 0.233476],[1510790400000, 0.234957],[1510876800000, 0.234115],[1510963200000, 0.235323],[1511049600000, 0.235323],[1511136000000, 0.235323],[1511222400000, 0.236129],[1511308800000, 0.235410],[1511395200000, 0.237886],[1511481600000, 0.241486],[1511568000000, 0.241722],[1511654400000, 0.241722],[1511740800000, 0.241722],[1511827200000, 0.241718],[1511913600000, 0.241570],[1512000000000, 0.241601]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });