$(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: [[1014940800000,5.3221],[1015027200000,5.3221],[1015113600000,5.3221],[1015200000000,5.3221],[1015286400000,5.3239],[1015372800000,5.3235],[1015459200000,5.3228],[1015545600000,5.3228],[1015632000000,5.3228],[1015718400000,5.3228],[1015804800000,5.3224],[1015891200000,5.3224],[1015977600000,5.3219],[1016064000000,5.3219],[1016150400000,5.3219],[1016236800000,5.3219],[1016323200000,5.3219],[1016409600000,5.3219],[1016496000000,5.3219],[1016582400000,5.3219],[1016668800000,5.3224],[1016755200000,5.3224],[1016841600000,5.3224],[1016928000000,5.3224],[1017014400000,5.3224],[1017100800000,5.3222],[1017187200000,5.3225],[1017273600000,5.3221],[1017360000000,5.322],[1017446400000,5.322],[1017532800000,5.322]], 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: [[1014940800000, 5.322100],[1014940800000, 5.322100],[1015027200000, 5.322100],[1015113600000, 5.322100],[1015200000000, 5.322100],[1015286400000, 5.323900],[1015372800000, 5.323500],[1015459200000, 5.322800],[1015545600000, 5.322800],[1015632000000, 5.322800],[1015718400000, 5.322800],[1015804800000, 5.322400],[1015891200000, 5.322400],[1015977600000, 5.321900],[1016064000000, 5.321900],[1016150400000, 5.321900],[1016236800000, 5.321900],[1016323200000, 5.321900],[1016409600000, 5.321900],[1016496000000, 5.321900],[1016582400000, 5.321900],[1016668800000, 5.322400],[1016755200000, 5.322400],[1016841600000, 5.322400],[1016928000000, 5.322400],[1017014400000, 5.322400],[1017100800000, 5.322200],[1017187200000, 5.322500],[1017273600000, 5.322100],[1017360000000, 5.322000],[1017446400000, 5.322000],[1017532800000, 5.322000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });