$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1462060800000,0.39172],[1462147200000,0.39172],[1462233600000,0.39172],[1462320000000,0.39172],[1462406400000,0.38076],[1462492800000,0.38128],[1462579200000,0.38014],[1462665600000,0.38014],[1462752000000,0.38014],[1462838400000,0.38014],[1462924800000,0.37987],[1463011200000,0.38232],[1463097600000,0.38967],[1463184000000,0.39199],[1463270400000,0.39199],[1463356800000,0.39199],[1463443200000,0.39135],[1463529600000,0.39175],[1463616000000,0.38819],[1463702400000,0.3815],[1463788800000,0.37967],[1463875200000,null],[1463961600000,0.37967],[1464048000000,0.37471],[1464134400000,0.37485],[1464220800000,0.3811],[1464307200000,0.38493],[1464393600000,0.38061],[1464480000000,0.38061],[1464566400000,0.38061],[1464652800000,0.38083]], 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: [[1462060800000, 0.391720],[1462060800000, 0.391720],[1462147200000, 0.391720],[1462233600000, 0.391720],[1462320000000, 0.391720],[1462406400000, 0.380760],[1462492800000, 0.381280],[1462579200000, 0.380140],[1462665600000, 0.380140],[1462752000000, 0.380140],[1462838400000, 0.380140],[1462924800000, 0.379870],[1463011200000, 0.382320],[1463097600000, 0.389670],[1463184000000, 0.391990],[1463270400000, 0.391990],[1463356800000, 0.391990],[1463443200000, 0.391350],[1463529600000, 0.391750],[1463616000000, 0.388190],[1463702400000, 0.381500],[1463788800000, 0.379670],[1463961600000, 0.379670],[1464048000000, 0.374710],[1464134400000, 0.374850],[1464220800000, 0.381100],[1464307200000, 0.384930],[1464393600000, 0.380610],[1464480000000, 0.380610],[1464566400000, 0.380610],[1464652800000, 0.380830]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });