$(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: [[1039046400000,5.3315],[1039132800000,5.3315],[1039219200000,5.3315],[1039305600000,5.3315],[1039392000000,5.3315],[1039478400000,5.3315],[1039564800000,5.3315],[1039651200000,5.3315],[1039737600000,5.3315],[1039824000000,5.3315],[1039910400000,5.3315],[1039996800000,5.3315],[1040083200000,5.3315],[1040169600000,5.3315],[1040256000000,5.3315],[1040342400000,5.3315],[1040428800000,5.3315],[1040515200000,5.3315],[1040601600000,5.3315],[1040688000000,5.3315],[1040774400000,5.3315],[1040860800000,5.3315],[1040947200000,5.3324],[1041033600000,5.3324],[1041120000000,5.3324],[1041206400000,5.3324],[1041292800000,5.3324]], 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: [[1039046400000, 5.331500],[1039046400000, 5.331500],[1039132800000, 5.331500],[1039219200000, 5.331500],[1039305600000, 5.331500],[1039392000000, 5.331500],[1039478400000, 5.331500],[1039564800000, 5.331500],[1039651200000, 5.331500],[1039737600000, 5.331500],[1039824000000, 5.331500],[1039910400000, 5.331500],[1039996800000, 5.331500],[1040083200000, 5.331500],[1040169600000, 5.331500],[1040256000000, 5.331500],[1040342400000, 5.331500],[1040428800000, 5.331500],[1040515200000, 5.331500],[1040601600000, 5.331500],[1040688000000, 5.331500],[1040774400000, 5.331500],[1040860800000, 5.331500],[1040947200000, 5.332400],[1041033600000, 5.332400],[1041120000000, 5.332400],[1041206400000, 5.332400],[1041292800000, 5.332400]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });