$(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: [[1459468800000,7.01086],[1459555200000,7.0328],[1459641600000,7.0328],[1459728000000,7.0328],[1459814400000,6.98675],[1459900800000,6.98313],[1459987200000,6.90166],[1460073600000,6.84533],[1460160000000,6.78025],[1460246400000,null],[1460332800000,null],[1460419200000,6.806],[1460505600000,6.78433],[1460592000000,6.7161],[1460678400000,6.71258],[1460764800000,6.69026],[1460851200000,6.69026],[1460937600000,6.69026],[1461024000000,6.69153],[1461110400000,6.70754],[1461196800000,6.74416],[1461283200000,6.6872],[1461369600000,6.56106],[1461456000000,6.56106],[1461542400000,6.56106],[1461628800000,6.49991],[1461715200000,6.52028],[1461801600000,6.48951],[1461888000000,6.51934],[1461974400000,6.53624]], 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: [[1459468800000, 7.010860],[1459468800000, 7.010860],[1459555200000, 7.032801],[1459641600000, 7.032801],[1459728000000, 7.032801],[1459814400000, 6.986748],[1459900800000, 6.983134],[1459987200000, 6.901657],[1460073600000, 6.845326],[1460160000000, 6.780247],[1460419200000, 6.805999],[1460505600000, 6.784327],[1460592000000, 6.716096],[1460678400000, 6.712580],[1460764800000, 6.690259],[1460851200000, 6.690259],[1460937600000, 6.690259],[1461024000000, 6.691534],[1461110400000, 6.707541],[1461196800000, 6.744161],[1461283200000, 6.687196],[1461369600000, 6.561060],[1461456000000, 6.561060],[1461542400000, 6.561060],[1461628800000, 6.499911],[1461715200000, 6.520276],[1461801600000, 6.489508],[1461888000000, 6.519339],[1461974400000, 6.536243]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });