$(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: [[1454284800000,25.0414],[1454371200000,24.9622],[1454457600000,25.3436],[1454544000000,25.2776],[1454630400000,25.9784],[1454716800000,26.1488],[1454803200000,26.1488],[1454889600000,26.1488],[1454976000000,25.9945],[1455062400000,26.5084],[1455148800000,26.6441],[1455235200000,26.8406],[1455321600000,26.8279],[1455408000000,26.8279],[1455494400000,26.8279],[1455580800000,27.2346],[1455667200000,27.3827],[1455753600000,26.9707],[1455840000000,26.5966],[1455926400000,27.0483],[1456012800000,27.0483],[1456099200000,27.0483],[1456185600000,27.0587],[1456272000000,27.4358],[1456358400000,27.3857],[1456444800000,27.4779],[1456531200000,27.245],[1456617600000,27.245],[1456704000000,27.245]], 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: [[1454284800000, 25.041360],[1454284800000, 25.041360],[1454371200000, 24.962161],[1454457600000, 25.343556],[1454544000000, 25.277583],[1454630400000, 25.978449],[1454716800000, 26.148758],[1454803200000, 26.148758],[1454889600000, 26.148758],[1454976000000, 25.994479],[1455062400000, 26.508393],[1455148800000, 26.644148],[1455235200000, 26.840608],[1455321600000, 26.827944],[1455408000000, 26.827944],[1455494400000, 26.827944],[1455580800000, 27.234638],[1455667200000, 27.382743],[1455753600000, 26.970747],[1455840000000, 26.596628],[1455926400000, 27.048338],[1456012800000, 27.048338],[1456099200000, 27.048338],[1456185600000, 27.058680],[1456272000000, 27.435849],[1456358400000, 27.385723],[1456444800000, 27.477894],[1456531200000, 27.245000],[1456617600000, 27.245000],[1456704000000, 27.245000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });