$(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: [[1430438400000,1.16863],[1430524800000,1.16863],[1430611200000,1.16863],[1430697600000,1.16863],[1430784000000,1.16863],[1430870400000,1.15741],[1430956800000,1.15778],[1431043200000,1.14479],[1431129600000,1.14271],[1431216000000,1.14271],[1431302400000,1.14271],[1431388800000,1.14271],[1431475200000,1.15481],[1431561600000,1.15662],[1431648000000,1.16386],[1431734400000,1.16869],[1431820800000,1.16869],[1431907200000,1.16869],[1431993600000,1.24445],[1432080000000,1.19717],[1432166400000,1.17605],[1432252800000,1.16808],[1432339200000,1.16748],[1432425600000,1.16748],[1432512000000,1.16748],[1432598400000,1.1658],[1432684800000,1.1796],[1432771200000,null],[1432857600000,1.16543],[1432944000000,1.16734],[1433030400000,1.16734]], 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: [[1430438400000, 1.168627],[1430438400000, 1.168627],[1430524800000, 1.168627],[1430611200000, 1.168627],[1430697600000, 1.168627],[1430784000000, 1.168627],[1430870400000, 1.157405],[1430956800000, 1.157779],[1431043200000, 1.144792],[1431129600000, 1.142707],[1431216000000, 1.142707],[1431302400000, 1.142707],[1431388800000, 1.142707],[1431475200000, 1.154814],[1431561600000, 1.156617],[1431648000000, 1.163865],[1431734400000, 1.168692],[1431820800000, 1.168692],[1431907200000, 1.168692],[1431993600000, 1.244453],[1432080000000, 1.197173],[1432166400000, 1.176049],[1432252800000, 1.168078],[1432339200000, 1.167475],[1432425600000, 1.167475],[1432512000000, 1.167475],[1432598400000, 1.165796],[1432684800000, 1.179603],[1432857600000, 1.165429],[1432944000000, 1.167336],[1433030400000, 1.167336]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });