$(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: [[1417392000000,0.31407],[1417478400000,0.30527],[1417564800000,0.29158],[1417651200000,0.29912],[1417737600000,0.28128],[1417824000000,0.29255],[1417910400000,0.29255],[1417996800000,0.29255],[1418083200000,0.29234],[1418169600000,0.29222],[1418256000000,0.28863],[1418342400000,0.28875],[1418428800000,0.28673],[1418515200000,0.28673],[1418601600000,0.28673],[1418688000000,0.27702],[1418774400000,0.27035],[1418860800000,0.25803],[1418947200000,null],[1419033600000,0.26457],[1419120000000,0.26457],[1419206400000,0.26457],[1419292800000,0.26127],[1419379200000,0.27723],[1419465600000,0.289],[1419552000000,0.28942],[1419638400000,0.2997],[1419724800000,0.2997],[1419811200000,0.2997],[1419897600000,0.30304],[1419984000000,0.30304]], 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: [[1417392000000, 0.314070],[1417392000000, 0.314070],[1417478400000, 0.305270],[1417564800000, 0.291580],[1417651200000, 0.299120],[1417737600000, 0.281280],[1417824000000, 0.292550],[1417910400000, 0.292550],[1417996800000, 0.292550],[1418083200000, 0.292340],[1418169600000, 0.292220],[1418256000000, 0.288630],[1418342400000, 0.288750],[1418428800000, 0.286730],[1418515200000, 0.286730],[1418601600000, 0.286730],[1418688000000, 0.277020],[1418774400000, 0.270350],[1418860800000, 0.258030],[1419033600000, 0.264570],[1419120000000, 0.264570],[1419206400000, 0.264570],[1419292800000, 0.261270],[1419379200000, 0.277230],[1419465600000, 0.289000],[1419552000000, 0.289420],[1419638400000, 0.299700],[1419724800000, 0.299700],[1419811200000, 0.299700],[1419897600000, 0.303040],[1419984000000, 0.303040]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });