$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1480550400000,3.01381],[1480636800000,3.03987],[1480723200000,3.06715],[1480809600000,3.06715],[1480896000000,3.06715],[1480982400000,3.11238],[1481068800000,3.11938],[1481155200000,3.10535],[1481241600000,3.07686],[1481328000000,3.04282],[1481414400000,3.04282],[1481500800000,3.04282],[1481587200000,3.0985],[1481673600000,3.09531],[1481760000000,3.1036],[1481846400000,3.04473],[1481932800000,3.0332],[1482019200000,3.0332],[1482105600000,3.0332],[1482192000000,3.04028],[1482278400000,3.03665],[1482364800000,3.05141],[1482451200000,3.01765],[1482537600000,3.01758],[1482624000000,3.01758],[1482710400000,3.01758],[1482796800000,3.02893],[1482883200000,3.02893],[1482969600000,3.08135],[1483056000000,3.13169],[1483142400000,3.13169]], 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: [[1480550400000, 3.013809],[1480550400000, 3.013809],[1480636800000, 3.039868],[1480723200000, 3.067153],[1480809600000, 3.067153],[1480896000000, 3.067153],[1480982400000, 3.112381],[1481068800000, 3.119376],[1481155200000, 3.105349],[1481241600000, 3.076860],[1481328000000, 3.042816],[1481414400000, 3.042816],[1481500800000, 3.042816],[1481587200000, 3.098497],[1481673600000, 3.095308],[1481760000000, 3.103600],[1481846400000, 3.044728],[1481932800000, 3.033204],[1482019200000, 3.033204],[1482105600000, 3.033204],[1482192000000, 3.040277],[1482278400000, 3.036650],[1482364800000, 3.051412],[1482451200000, 3.017655],[1482537600000, 3.017581],[1482624000000, 3.017581],[1482710400000, 3.017581],[1482796800000, 3.028933],[1482883200000, 3.028933],[1482969600000, 3.081350],[1483056000000, 3.131691],[1483142400000, 3.131691]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });