$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1438387200000,3.10522],[1438473600000,3.10522],[1438560000000,3.10522],[1438646400000,3.1874],[1438732800000,3.19327],[1438819200000,3.14541],[1438905600000,3.13419],[1438992000000,3.09226],[1439078400000,3.09226],[1439164800000,3.09226],[1439251200000,3.12309],[1439337600000,3.16608],[1439424000000,3.19675],[1439510400000,3.18488],[1439596800000,3.25667],[1439683200000,3.25667],[1439769600000,3.25667],[1439856000000,3.27481],[1439942400000,3.27317],[1440028800000,3.26441],[1440115200000,3.30135],[1440201600000,3.33999],[1440288000000,3.33999],[1440374400000,3.33999],[1440460800000,null],[1440547200000,3.48771],[1440633600000,3.27312],[1440720000000,3.22325],[1440806400000,3.19868],[1440892800000,3.19868],[1440979200000,3.19868]], 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: [[1438387200000, 3.105222],[1438387200000, 3.105222],[1438473600000, 3.105222],[1438560000000, 3.105222],[1438646400000, 3.187404],[1438732800000, 3.193272],[1438819200000, 3.145413],[1438905600000, 3.134189],[1438992000000, 3.092259],[1439078400000, 3.092259],[1439164800000, 3.092259],[1439251200000, 3.123091],[1439337600000, 3.166081],[1439424000000, 3.196747],[1439510400000, 3.184882],[1439596800000, 3.256668],[1439683200000, 3.256668],[1439769600000, 3.256668],[1439856000000, 3.274808],[1439942400000, 3.273167],[1440028800000, 3.264409],[1440115200000, 3.301353],[1440201600000, 3.339986],[1440288000000, 3.339986],[1440374400000, 3.339986],[1440547200000, 3.487706],[1440633600000, 3.273120],[1440720000000, 3.223254],[1440806400000, 3.198681],[1440892800000, 3.198681],[1440979200000, 3.198681]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });