$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1548979200000,31.8688],[1549065600000,31.6264],[1549152000000,31.6264],[1549238400000,31.6264],[1549324800000,31.3864],[1549411200000,31.0887],[1549497600000,30.7229],[1549584000000,30.5854],[1549670400000,30.5207],[1549756800000,30.5207],[1549843200000,30.5207],[1549929600000,30.5996],[1550016000000,30.5077],[1550102400000,30.6284],[1550188800000,30.6038],[1550275200000,30.6811],[1550361600000,30.6811],[1550448000000,30.6811],[1550534400000,30.7962],[1550620800000,30.6895],[1550707200000,30.7227],[1550793600000,30.6588],[1550880000000,30.5971],[1550966400000,30.5971],[1551052800000,30.5971],[1551139200000,30.6479],[1551225600000,30.655],[1551312000000,30.734]], 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: [[1548979200000, 31.868815],[1548979200000, 31.868815],[1549065600000, 31.626355],[1549152000000, 31.626355],[1549238400000, 31.626355],[1549324800000, 31.386415],[1549411200000, 31.088670],[1549497600000, 30.722882],[1549584000000, 30.585383],[1549670400000, 30.520732],[1549756800000, 30.520732],[1549843200000, 30.520732],[1549929600000, 30.599571],[1550016000000, 30.507665],[1550102400000, 30.628400],[1550188800000, 30.603844],[1550275200000, 30.681129],[1550361600000, 30.681129],[1550448000000, 30.681129],[1550534400000, 30.796203],[1550620800000, 30.689470],[1550707200000, 30.722714],[1550793600000, 30.658786],[1550880000000, 30.597106],[1550966400000, 30.597106],[1551052800000, 30.597106],[1551139200000, 30.647890],[1551225600000, 30.654964],[1551312000000, 30.733961]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });