$(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: [[1070236800000,5.332],[1070323200000,5.332],[1070409600000,5.332],[1070496000000,5.332],[1070582400000,5.332],[1070668800000,5.332],[1070755200000,5.332],[1070841600000,5.332],[1070928000000,5.332],[1071014400000,5.332],[1071100800000,5.3319],[1071187200000,5.3319],[1071273600000,5.3319],[1071360000000,5.3319],[1071446400000,5.3319],[1071532800000,5.3318],[1071619200000,5.3318],[1071705600000,5.3318],[1071792000000,5.3317],[1071878400000,5.3317],[1071964800000,5.3317],[1072051200000,5.3317],[1072137600000,5.3316],[1072224000000,5.3316],[1072310400000,5.3315],[1072396800000,5.3315],[1072483200000,5.3315],[1072569600000,5.3315],[1072656000000,5.3315],[1072742400000,5.3315],[1072828800000,5.3315]], 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: [[1070236800000, 5.332000],[1070236800000, 5.332000],[1070323200000, 5.332000],[1070409600000, 5.332000],[1070496000000, 5.332000],[1070582400000, 5.332000],[1070668800000, 5.332000],[1070755200000, 5.332000],[1070841600000, 5.332000],[1070928000000, 5.332000],[1071014400000, 5.332000],[1071100800000, 5.331900],[1071187200000, 5.331900],[1071273600000, 5.331900],[1071360000000, 5.331900],[1071446400000, 5.331900],[1071532800000, 5.331800],[1071619200000, 5.331800],[1071705600000, 5.331800],[1071792000000, 5.331700],[1071878400000, 5.331700],[1071964800000, 5.331700],[1072051200000, 5.331700],[1072137600000, 5.331600],[1072224000000, 5.331600],[1072310400000, 5.331500],[1072396800000, 5.331500],[1072483200000, 5.331500],[1072569600000, 5.331500],[1072656000000, 5.331500],[1072742400000, 5.331500],[1072828800000, 5.331500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });