$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1477958400000,6.45344],[1478044800000,null],[1478131200000,6.55586],[1478217600000,6.55724],[1478304000000,6.56934],[1478390400000,6.56934],[1478476800000,6.56934],[1478563200000,6.53247],[1478649600000,6.51912],[1478736000000,6.49361],[1478822400000,6.39384],[1478908800000,6.34001],[1478995200000,6.34001],[1479081600000,6.34001],[1479168000000,6.29871],[1479254400000,6.32877],[1479340800000,6.34554],[1479427200000,6.28183],[1479513600000,6.19507],[1479600000000,6.19507],[1479686400000,6.19507],[1479772800000,6.18656],[1479859200000,6.16267],[1479945600000,6.14395],[1480032000000,6.10101],[1480118400000,6.16594],[1480204800000,6.16594],[1480291200000,6.16594],[1480377600000,6.14751],[1480464000000,6.11163]], 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, 6.453440],[1477958400000, 6.453440],[1478131200000, 6.555855],[1478217600000, 6.557244],[1478304000000, 6.569341],[1478390400000, 6.569341],[1478476800000, 6.569341],[1478563200000, 6.532472],[1478649600000, 6.519125],[1478736000000, 6.493606],[1478822400000, 6.393839],[1478908800000, 6.340008],[1478995200000, 6.340008],[1479081600000, 6.340008],[1479168000000, 6.298707],[1479254400000, 6.328774],[1479340800000, 6.345542],[1479427200000, 6.281828],[1479513600000, 6.195071],[1479600000000, 6.195071],[1479686400000, 6.195071],[1479772800000, 6.186557],[1479859200000, 6.162673],[1479945600000, 6.143949],[1480032000000, 6.101013],[1480118400000, 6.165945],[1480204800000, 6.165945],[1480291200000, 6.165945],[1480377600000, 6.147509],[1480464000000, 6.111627]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });