$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1509494400000,26.899],[1509580800000,26.8137],[1509667200000,26.9268],[1509753600000,27.0136],[1509840000000,27.0136],[1509926400000,27.0136],[1510012800000,26.8434],[1510099200000,26.7629],[1510185600000,26.6569],[1510272000000,26.6525],[1510358400000,26.6609],[1510444800000,26.6609],[1510531200000,26.6609],[1510617600000,26.6365],[1510704000000,26.7285],[1510790400000,26.8565],[1510876800000,26.669],[1510963200000,26.7234],[1511049600000,26.7234],[1511136000000,26.7234],[1511222400000,26.7152],[1511308800000,26.6674],[1511395200000,26.9689],[1511481600000,27.405],[1511568000000,27.4381],[1511654400000,27.4381],[1511740800000,27.4381],[1511827200000,27.3712],[1511913600000,27.3504],[1512000000000,27.3914]], 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.899000],[1509494400000, 26.899000],[1509580800000, 26.813747],[1509667200000, 26.926753],[1509753600000, 27.013629],[1509840000000, 27.013629],[1509926400000, 27.013629],[1510012800000, 26.843400],[1510099200000, 26.762861],[1510185600000, 26.656946],[1510272000000, 26.652535],[1510358400000, 26.660855],[1510444800000, 26.660855],[1510531200000, 26.660855],[1510617600000, 26.636492],[1510704000000, 26.728497],[1510790400000, 26.856488],[1510876800000, 26.668987],[1510963200000, 26.723387],[1511049600000, 26.723387],[1511136000000, 26.723387],[1511222400000, 26.715183],[1511308800000, 26.667445],[1511395200000, 26.968921],[1511481600000, 27.405007],[1511568000000, 27.438058],[1511654400000, 27.438058],[1511740800000, 27.438058],[1511827200000, 27.371152],[1511913600000, 27.350365],[1512000000000, 27.391439]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });