$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1480550400000,25.1611],[1480636800000,25.3119],[1480723200000,25.6362],[1480809600000,25.6362],[1480896000000,25.6362],[1480982400000,25.8976],[1481068800000,25.8589],[1481155200000,25.7703],[1481241600000,25.5564],[1481328000000,25.4054],[1481414400000,25.4054],[1481500800000,25.4054],[1481587200000,25.7435],[1481673600000,25.788],[1481760000000,26.0553],[1481846400000,25.5291],[1481932800000,25.5677],[1482019200000,25.5677],[1482105600000,25.5677],[1482192000000,25.6886],[1482278400000,25.6704],[1482364800000,25.7667],[1482451200000,25.6427],[1482537600000,25.6169],[1482624000000,25.6169],[1482710400000,25.6169],[1482796800000,25.7133],[1482883200000,25.7133],[1482969600000,26.1075],[1483056000000,26.5285],[1483142400000,26.5285]], 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, 25.161108],[1480550400000, 25.161108],[1480636800000, 25.311896],[1480723200000, 25.636165],[1480809600000, 25.636165],[1480896000000, 25.636165],[1480982400000, 25.897589],[1481068800000, 25.858887],[1481155200000, 25.770326],[1481241600000, 25.556393],[1481328000000, 25.405365],[1481414400000, 25.405365],[1481500800000, 25.405365],[1481587200000, 25.743528],[1481673600000, 25.787989],[1481760000000, 26.055284],[1481846400000, 25.529132],[1481932800000, 25.567671],[1482019200000, 25.567671],[1482105600000, 25.567671],[1482192000000, 25.688623],[1482278400000, 25.670447],[1482364800000, 25.766716],[1482451200000, 25.642735],[1482537600000, 25.616902],[1482624000000, 25.616902],[1482710400000, 25.616902],[1482796800000, 25.713269],[1482883200000, 25.713269],[1482969600000, 26.107498],[1483056000000, 26.528471],[1483142400000, 26.528471]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });