$(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: [[1404864000000,3.84228],[1404950400000,3.83181],[1405036800000,null],[1405123200000,3.84072],[1405209600000,3.84072],[1405296000000,3.84072],[1405382400000,3.83833],[1405468800000,3.85459],[1405555200000,3.85235],[1405641600000,3.8332],[1405728000000,3.80198],[1405814400000,null],[1405900800000,null],[1405987200000,3.8008],[1406073600000,3.80033],[1406160000000,3.78506],[1406246400000,3.80527],[1406332800000,3.82375],[1406419200000,3.82375],[1406505600000,3.82375],[1406592000000,3.84643],[1406678400000,3.88616],[1406764800000,3.88262]], 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: [[1404864000000, 3.842283],[1404864000000, 3.842283],[1404950400000, 3.831809],[1405123200000, 3.840721],[1405209600000, 3.840721],[1405296000000, 3.840721],[1405382400000, 3.838330],[1405468800000, 3.854587],[1405555200000, 3.852350],[1405641600000, 3.833203],[1405728000000, 3.801983],[1405987200000, 3.800798],[1406073600000, 3.800329],[1406160000000, 3.785061],[1406246400000, 3.805269],[1406332800000, 3.823746],[1406419200000, 3.823746],[1406505600000, 3.823746],[1406592000000, 3.846426],[1406678400000, 3.886157],[1406764800000, 3.882619]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });