$(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: [[1483228800000,1.36081],[1483315200000,1.36081],[1483401600000,1.36081],[1483488000000,1.36081],[1483574400000,1.32594],[1483660800000,1.32594],[1483747200000,1.33868],[1483833600000,1.33868],[1483920000000,1.33868],[1484006400000,1.33868],[1484092800000,1.34885],[1484179200000,1.34573],[1484265600000,1.35076],[1484352000000,null],[1484438400000,1.37105],[1484524800000,1.37105],[1484611200000,1.3737],[1484697600000,1.37081],[1484784000000,1.36396],[1484870400000,1.36226],[1484956800000,1.36018],[1485043200000,1.36018],[1485129600000,1.36018],[1485216000000,1.35673],[1485302400000,1.35167],[1485388800000,1.35284],[1485475200000,1.35329],[1485561600000,1.35521],[1485648000000,1.35521],[1485734400000,1.35521],[1485820800000,1.35329]], 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: [[1483228800000, 1.360808],[1483228800000, 1.360808],[1483315200000, 1.360808],[1483401600000, 1.360808],[1483488000000, 1.360808],[1483574400000, 1.325940],[1483660800000, 1.325940],[1483747200000, 1.338677],[1483833600000, 1.338677],[1483920000000, 1.338677],[1484006400000, 1.338677],[1484092800000, 1.348854],[1484179200000, 1.345728],[1484265600000, 1.350762],[1484438400000, 1.371054],[1484524800000, 1.371054],[1484611200000, 1.373700],[1484697600000, 1.370811],[1484784000000, 1.363961],[1484870400000, 1.362259],[1484956800000, 1.360183],[1485043200000, 1.360183],[1485129600000, 1.360183],[1485216000000, 1.356734],[1485302400000, 1.351674],[1485388800000, 1.352844],[1485475200000, 1.353292],[1485561600000, 1.355208],[1485648000000, 1.355208],[1485734400000, 1.355208],[1485820800000, 1.353293]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });