$(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: [[1427846400000,24.1148],[1427932800000,24.2229],[1428019200000,24.4815],[1428105600000,24.2684],[1428192000000,24.2684],[1428278400000,24.2684],[1428364800000,24.417],[1428451200000,24.4271],[1428537600000,24.4653],[1428624000000,24.1689],[1428710400000,23.2784],[1428796800000,23.2784],[1428883200000,23.2784],[1428969600000,23.2784],[1429056000000,23.4142],[1429142400000,22.3275],[1429228800000,22.2433],[1429315200000,22.1149],[1429401600000,22.1149],[1429488000000,22.1149],[1429574400000,23.2066],[1429660800000,23.2496],[1429747200000,23.4593],[1429833600000,23.3752],[1429920000000,23.5071],[1430006400000,23.5071],[1430092800000,23.5071],[1430179200000,23.9036],[1430265600000,23.2474],[1430352000000,22.072]], 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: [[1427846400000, 24.114827],[1427846400000, 24.114827],[1427932800000, 24.222934],[1428019200000, 24.481519],[1428105600000, 24.268363],[1428192000000, 24.268363],[1428278400000, 24.268363],[1428364800000, 24.416980],[1428451200000, 24.427088],[1428537600000, 24.465344],[1428624000000, 24.168916],[1428710400000, 23.278449],[1428796800000, 23.278449],[1428883200000, 23.278449],[1428969600000, 23.278449],[1429056000000, 23.414161],[1429142400000, 22.327550],[1429228800000, 22.243300],[1429315200000, 22.114934],[1429401600000, 22.114934],[1429488000000, 22.114934],[1429574400000, 23.206632],[1429660800000, 23.249621],[1429747200000, 23.459341],[1429833600000, 23.375191],[1429920000000, 23.507104],[1430006400000, 23.507104],[1430092800000, 23.507104],[1430179200000, 23.903566],[1430265600000, 23.247449],[1430352000000, 22.071990]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });