$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1509494400000,26.862],[1509580800000,26.8784],[1509667200000,26.9314],[1509753600000,26.9626],[1509840000000,26.9626],[1509926400000,26.9626],[1510012800000,26.8503],[1510099200000,26.7513],[1510185600000,26.6362],[1510272000000,26.5586],[1510358400000,26.5167],[1510444800000,26.5167],[1510531200000,26.5167],[1510617600000,26.488],[1510704000000,26.4964],[1510790400000,26.4822],[1510876800000,26.4764],[1510963200000,26.4991],[1511049600000,26.4991],[1511136000000,26.4991],[1511222400000,26.4771],[1511308800000,26.4922],[1511395200000,26.6476],[1511481600000,26.8614],[1511568000000,26.9136],[1511654400000,26.9136],[1511740800000,26.9136],[1511827200000,26.8353],[1511913600000,26.8718],[1512000000000,27.0139]], 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, 26.862019],[1509494400000, 26.862019],[1509580800000, 26.878403],[1509667200000, 26.931378],[1509753600000, 26.962647],[1509840000000, 26.962647],[1509926400000, 26.962647],[1510012800000, 26.850348],[1510099200000, 26.751287],[1510185600000, 26.636246],[1510272000000, 26.558575],[1510358400000, 26.516730],[1510444800000, 26.516730],[1510531200000, 26.516730],[1510617600000, 26.487953],[1510704000000, 26.496372],[1510790400000, 26.482221],[1510876800000, 26.476407],[1510963200000, 26.499087],[1511049600000, 26.499087],[1511136000000, 26.499087],[1511222400000, 26.477080],[1511308800000, 26.492211],[1511395200000, 26.647562],[1511481600000, 26.861440],[1511568000000, 26.913646],[1511654400000, 26.913646],[1511740800000, 26.913646],[1511827200000, 26.835271],[1511913600000, 26.871826],[1512000000000, 27.013930]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });