$(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: [[1057017600000,5.3328],[1057104000000,5.3328],[1057190400000,5.3326],[1057276800000,5.3325],[1057363200000,5.3325],[1057449600000,5.3325],[1057536000000,5.3324],[1057622400000,5.3323],[1057708800000,5.3323],[1057795200000,5.3322],[1057881600000,5.3322],[1057968000000,5.3322],[1058054400000,5.3322],[1058140800000,5.332],[1058227200000,5.332],[1058313600000,5.332],[1058400000000,5.3319],[1058486400000,5.3318],[1058572800000,5.3318],[1058659200000,5.3318],[1058745600000,5.3318],[1058832000000,5.3318],[1058918400000,5.3318],[1059004800000,5.3318],[1059091200000,5.3318],[1059177600000,5.3318],[1059264000000,5.3318],[1059350400000,5.3318],[1059436800000,5.3318],[1059523200000,5.3318],[1059609600000,5.3318]], 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: [[1057017600000, 5.332800],[1057017600000, 5.332800],[1057104000000, 5.332800],[1057190400000, 5.332600],[1057276800000, 5.332500],[1057363200000, 5.332500],[1057449600000, 5.332500],[1057536000000, 5.332400],[1057622400000, 5.332300],[1057708800000, 5.332300],[1057795200000, 5.332200],[1057881600000, 5.332200],[1057968000000, 5.332200],[1058054400000, 5.332200],[1058140800000, 5.332000],[1058227200000, 5.332000],[1058313600000, 5.332000],[1058400000000, 5.331900],[1058486400000, 5.331800],[1058572800000, 5.331800],[1058659200000, 5.331800],[1058745600000, 5.331800],[1058832000000, 5.331800],[1058918400000, 5.331800],[1059004800000, 5.331800],[1059091200000, 5.331800],[1059177600000, 5.331800],[1059264000000, 5.331800],[1059350400000, 5.331800],[1059436800000, 5.331800],[1059523200000, 5.331800],[1059609600000, 5.331800]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });