$(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: [[1438387200000,5.5918],[1438473600000,5.5918],[1438560000000,5.5918],[1438646400000,5.73107],[1438732800000,5.7417],[1438819200000,5.62873],[1438905600000,5.58845],[1438992000000,5.51321],[1439078400000,5.51321],[1439164800000,5.51321],[1439251200000,5.55285],[1439337600000,5.62892],[1439424000000,5.69491],[1439510400000,5.67525],[1439596800000,5.8061],[1439683200000,5.8061],[1439769600000,5.8061],[1439856000000,5.86],[1439942400000,5.8686],[1440028800000,5.83817],[1440115200000,5.87939],[1440201600000,5.92939],[1440288000000,5.92939],[1440374400000,5.92939],[1440460800000,null],[1440547200000,6.16223],[1440633600000,5.77395],[1440720000000,5.67891],[1440806400000,5.62947],[1440892800000,5.62947],[1440979200000,5.62947]], 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: [[1438387200000, 5.591798],[1438387200000, 5.591798],[1438473600000, 5.591798],[1438560000000, 5.591798],[1438646400000, 5.731075],[1438732800000, 5.741703],[1438819200000, 5.628734],[1438905600000, 5.588453],[1438992000000, 5.513210],[1439078400000, 5.513210],[1439164800000, 5.513210],[1439251200000, 5.552848],[1439337600000, 5.628916],[1439424000000, 5.694909],[1439510400000, 5.675252],[1439596800000, 5.806098],[1439683200000, 5.806098],[1439769600000, 5.806098],[1439856000000, 5.859998],[1439942400000, 5.868598],[1440028800000, 5.838169],[1440115200000, 5.879393],[1440201600000, 5.929393],[1440288000000, 5.929393],[1440374400000, 5.929393],[1440547200000, 6.162231],[1440633600000, 5.773951],[1440720000000, 5.678914],[1440806400000, 5.629467],[1440892800000, 5.629467],[1440979200000, 5.629467]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });