$(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: [[1080777600000,5.3293],[1080864000000,5.3293],[1080950400000,5.3293],[1081036800000,5.3293],[1081123200000,5.3293],[1081209600000,5.3293],[1081296000000,5.3293],[1081382400000,5.3291],[1081468800000,5.329],[1081555200000,5.329],[1081641600000,5.329],[1081728000000,5.329],[1081814400000,5.329],[1081900800000,5.329],[1081987200000,5.329],[1082073600000,5.3288],[1082160000000,5.3288],[1082246400000,5.3288],[1082332800000,5.3288],[1082419200000,5.3288],[1082505600000,5.3288],[1082592000000,5.3288],[1082678400000,5.3288],[1082764800000,5.3288],[1082851200000,5.3288],[1082937600000,5.3288],[1083024000000,5.3288],[1083110400000,5.3288],[1083196800000,5.3288],[1083283200000,5.3285]], 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: [[1080777600000, 5.329300],[1080777600000, 5.329300],[1080864000000, 5.329300],[1080950400000, 5.329300],[1081036800000, 5.329300],[1081123200000, 5.329300],[1081209600000, 5.329300],[1081296000000, 5.329300],[1081382400000, 5.329100],[1081468800000, 5.329000],[1081555200000, 5.329000],[1081641600000, 5.329000],[1081728000000, 5.329000],[1081814400000, 5.329000],[1081900800000, 5.329000],[1081987200000, 5.329000],[1082073600000, 5.328800],[1082160000000, 5.328800],[1082246400000, 5.328800],[1082332800000, 5.328800],[1082419200000, 5.328800],[1082505600000, 5.328800],[1082592000000, 5.328800],[1082678400000, 5.328800],[1082764800000, 5.328800],[1082851200000, 5.328800],[1082937600000, 5.328800],[1083024000000, 5.328800],[1083110400000, 5.328800],[1083196800000, 5.328800],[1083283200000, 5.328500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });