$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1427846400000,1.27597],[1427932800000,1.28947],[1428019200000,1.3124],[1428105600000,1.32239],[1428192000000,1.32239],[1428278400000,1.32239],[1428364800000,1.33886],[1428451200000,1.34963],[1428537600000,1.32807],[1428624000000,1.32271],[1428710400000,1.29133],[1428796800000,1.29133],[1428883200000,1.29133],[1428969600000,1.29133],[1429056000000,1.29263],[1429142400000,1.22168],[1429228800000,1.19301],[1429315200000,1.16625],[1429401600000,1.16625],[1429488000000,1.16625],[1429574400000,1.23253],[1429660800000,1.22101],[1429747200000,1.22651],[1429833600000,1.21378],[1429920000000,1.20654],[1430006400000,1.20654],[1430092800000,1.20654],[1430179200000,1.22869],[1430265600000,1.20191],[1430352000000,1.15892]], 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, 1.275974],[1427846400000, 1.275974],[1427932800000, 1.289473],[1428019200000, 1.312404],[1428105600000, 1.322393],[1428192000000, 1.322393],[1428278400000, 1.322393],[1428364800000, 1.338863],[1428451200000, 1.349634],[1428537600000, 1.328072],[1428624000000, 1.322709],[1428710400000, 1.291326],[1428796800000, 1.291326],[1428883200000, 1.291326],[1428969600000, 1.291326],[1429056000000, 1.292627],[1429142400000, 1.221679],[1429228800000, 1.193014],[1429315200000, 1.166254],[1429401600000, 1.166254],[1429488000000, 1.166254],[1429574400000, 1.232534],[1429660800000, 1.221014],[1429747200000, 1.226512],[1429833600000, 1.213782],[1429920000000, 1.206538],[1430006400000, 1.206538],[1430092800000, 1.206538],[1430179200000, 1.228694],[1430265600000, 1.201905],[1430352000000, 1.158922]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });