$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1477958400000,35.0544],[1478044800000,null],[1478131200000,35.3518],[1478217600000,35.4082],[1478304000000,35.4294],[1478390400000,35.4294],[1478476800000,35.4294],[1478563200000,35.3142],[1478649600000,35.2622],[1478736000000,35.3602],[1478822400000,35.0757],[1478908800000,35.1823],[1478995200000,35.1823],[1479081600000,35.1823],[1479168000000,35.1812],[1479254400000,35.4684],[1479340800000,35.808],[1479427200000,35.4859],[1479513600000,35.1096],[1479600000000,35.1096],[1479686400000,35.1096],[1479772800000,34.9413],[1479859200000,34.7742],[1479945600000,34.6329],[1480032000000,34.6335],[1480118400000,34.8181],[1480204800000,34.8181],[1480291200000,34.8181],[1480377600000,34.6858],[1480464000000,34.613]], 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: [[1477958400000, 35.054360],[1477958400000, 35.054360],[1478131200000, 35.351795],[1478217600000, 35.408163],[1478304000000, 35.429387],[1478390400000, 35.429387],[1478476800000, 35.429387],[1478563200000, 35.314242],[1478649600000, 35.262154],[1478736000000, 35.360236],[1478822400000, 35.075713],[1478908800000, 35.182332],[1478995200000, 35.182332],[1479081600000, 35.182332],[1479168000000, 35.181204],[1479254400000, 35.468376],[1479340800000, 35.807973],[1479427200000, 35.485865],[1479513600000, 35.109560],[1479600000000, 35.109560],[1479686400000, 35.109560],[1479772800000, 34.941259],[1479859200000, 34.774193],[1479945600000, 34.632949],[1480032000000, 34.633525],[1480118400000, 34.818117],[1480204800000, 34.818117],[1480291200000, 34.818117],[1480377600000, 34.685809],[1480464000000, 34.612973]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });