$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1509494400000,0.4622],[1509580800000,0.46218],[1509667200000,0.46364],[1509753600000,0.46146],[1509840000000,0.46146],[1509926400000,0.46146],[1510012800000,0.45953],[1510099200000,0.45763],[1510185600000,0.44957],[1510272000000,0.44823],[1510358400000,0.44731],[1510444800000,0.44731],[1510531200000,0.44731],[1510617600000,0.44757],[1510704000000,0.44442],[1510790400000,0.43955],[1510876800000,0.44135],[1510963200000,0.44437],[1511049600000,0.44437],[1511136000000,0.44437],[1511222400000,0.44669],[1511308800000,0.44554],[1511395200000,0.45161],[1511481600000,0.45947],[1511568000000,0.45981],[1511654400000,0.45981],[1511740800000,0.45981],[1511827200000,0.46048],[1511913600000,0.46004],[1512000000000,0.46311]], 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.462200],[1509494400000, 0.462200],[1509580800000, 0.462180],[1509667200000, 0.463640],[1509753600000, 0.461460],[1509840000000, 0.461460],[1509926400000, 0.461460],[1510012800000, 0.459530],[1510099200000, 0.457630],[1510185600000, 0.449570],[1510272000000, 0.448230],[1510358400000, 0.447310],[1510444800000, 0.447310],[1510531200000, 0.447310],[1510617600000, 0.447570],[1510704000000, 0.444420],[1510790400000, 0.439550],[1510876800000, 0.441350],[1510963200000, 0.444370],[1511049600000, 0.444370],[1511136000000, 0.444370],[1511222400000, 0.446690],[1511308800000, 0.445540],[1511395200000, 0.451610],[1511481600000, 0.459470],[1511568000000, 0.459810],[1511654400000, 0.459810],[1511740800000, 0.459810],[1511827200000, 0.460480],[1511913600000, 0.460040],[1512000000000, 0.463110]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });