$(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: [[1438387200000,1.12624],[1438473600000,1.12624],[1438560000000,1.12624],[1438646400000,1.1595],[1438732800000,1.15726],[1438819200000,1.14611],[1438905600000,1.13119],[1438992000000,1.10377],[1439078400000,1.10377],[1439164800000,1.10377],[1439251200000,1.1111],[1439337600000,1.11928],[1439424000000,1.12574],[1439510400000,1.12964],[1439596800000,1.14869],[1439683200000,1.14869],[1439769600000,1.14869],[1439856000000,1.16353],[1439942400000,1.16542],[1440028800000,1.16455],[1440115200000,1.15825],[1440201600000,1.16268],[1440288000000,1.16268],[1440374400000,1.16268],[1440460800000,null],[1440547200000,1.18673],[1440633600000,1.12125],[1440720000000,1.11557],[1440806400000,1.10868],[1440892800000,1.10868],[1440979200000,1.10868]], 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, 1.126239],[1438387200000, 1.126239],[1438473600000, 1.126239],[1438560000000, 1.126239],[1438646400000, 1.159496],[1438732800000, 1.157260],[1438819200000, 1.146108],[1438905600000, 1.131188],[1438992000000, 1.103766],[1439078400000, 1.103766],[1439164800000, 1.103766],[1439251200000, 1.111097],[1439337600000, 1.119275],[1439424000000, 1.125737],[1439510400000, 1.129644],[1439596800000, 1.148689],[1439683200000, 1.148689],[1439769600000, 1.148689],[1439856000000, 1.163533],[1439942400000, 1.165419],[1440028800000, 1.164546],[1440115200000, 1.158252],[1440201600000, 1.162685],[1440288000000, 1.162685],[1440374400000, 1.162685],[1440547200000, 1.186733],[1440633600000, 1.121254],[1440720000000, 1.115569],[1440806400000, 1.108680],[1440892800000, 1.108680],[1440979200000, 1.108680]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });