$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1483228800000,18.7534],[1483315200000,18.7534],[1483401600000,18.7534],[1483488000000,18.7534],[1483574400000,18.5145],[1483660800000,18.5145],[1483747200000,18.8625],[1483833600000,18.8625],[1483920000000,18.8625],[1484006400000,18.8625],[1484092800000,18.9089],[1484179200000,18.844],[1484265600000,19.1574],[1484352000000,null],[1484438400000,19.399],[1484524800000,19.399],[1484611200000,19.3926],[1484697600000,19.4618],[1484784000000,19.3182],[1484870400000,19.2398],[1484956800000,19.188],[1485043200000,19.188],[1485129600000,19.188],[1485216000000,19.2309],[1485302400000,19.1977],[1485388800000,19.1821],[1485475200000,19.1214],[1485561600000,19.0453],[1485648000000,19.0453],[1485734400000,19.0453],[1485820800000,18.9942]], 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, 18.753368],[1483228800000, 18.753368],[1483315200000, 18.753368],[1483401600000, 18.753368],[1483488000000, 18.753368],[1483574400000, 18.514536],[1483660800000, 18.514536],[1483747200000, 18.862457],[1483833600000, 18.862457],[1483920000000, 18.862457],[1484006400000, 18.862457],[1484092800000, 18.908923],[1484179200000, 18.843960],[1484265600000, 19.157405],[1484438400000, 19.399032],[1484524800000, 19.399032],[1484611200000, 19.392631],[1484697600000, 19.461808],[1484784000000, 19.318216],[1484870400000, 19.239810],[1484956800000, 19.188032],[1485043200000, 19.188032],[1485129600000, 19.188032],[1485216000000, 19.230923],[1485302400000, 19.197723],[1485388800000, 19.182112],[1485475200000, 19.121351],[1485561600000, 19.045268],[1485648000000, 19.045268],[1485734400000, 19.045268],[1485820800000, 18.994225]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });