$(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: [[1501545600000,1.42919],[1501632000000,1.42999],[1501718400000,1.43792],[1501804800000,1.43851],[1501891200000,1.43914],[1501977600000,1.43914],[1502064000000,1.43914],[1502150400000,1.43636],[1502236800000,1.43752],[1502323200000,1.43489],[1502409600000,1.43417],[1502496000000,1.43667],[1502582400000,1.43667],[1502668800000,1.43667],[1502755200000,1.43125],[1502841600000,1.4327],[1502928000000,1.43219],[1503014400000,1.42945],[1503100800000,1.42855],[1503187200000,1.42855],[1503273600000,1.42855],[1503360000000,null],[1503446400000,1.4239],[1503532800000,1.42856],[1503619200000,1.42856],[1503705600000,1.42856],[1503792000000,1.42856],[1503878400000,1.42856],[1503964800000,1.4263],[1504051200000,1.4249],[1504137600000,1.43268]], 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: [[1501545600000, 1.429192],[1501545600000, 1.429192],[1501632000000, 1.429990],[1501718400000, 1.437923],[1501804800000, 1.438513],[1501891200000, 1.439138],[1501977600000, 1.439138],[1502064000000, 1.439138],[1502150400000, 1.436357],[1502236800000, 1.437517],[1502323200000, 1.434887],[1502409600000, 1.434166],[1502496000000, 1.436670],[1502582400000, 1.436670],[1502668800000, 1.436670],[1502755200000, 1.431250],[1502841600000, 1.432697],[1502928000000, 1.432188],[1503014400000, 1.429451],[1503100800000, 1.428554],[1503187200000, 1.428554],[1503273600000, 1.428554],[1503446400000, 1.423903],[1503532800000, 1.428564],[1503619200000, 1.428564],[1503705600000, 1.428564],[1503792000000, 1.428564],[1503878400000, 1.428564],[1503964800000, 1.426298],[1504051200000, 1.424899],[1504137600000, 1.432682]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });