$(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: [[1420070400000,4.47038],[1420156800000,4.47038],[1420243200000,4.47038],[1420329600000,4.47038],[1420416000000,4.47038],[1420502400000,4.47038],[1420588800000,4.37454],[1420675200000,4.37454],[1420761600000,null],[1420848000000,4.3201],[1420934400000,4.3201],[1421020800000,4.3201],[1421107200000,4.35956],[1421193600000,4.35226],[1421280000000,null],[1421366400000,4.33389],[1421452800000,4.30066],[1421539200000,4.26078],[1421625600000,4.26078],[1421712000000,4.24234],[1421798400000,4.24049],[1421884800000,4.22349],[1421971200000,null],[1422057600000,4.26709],[1422144000000,4.26709],[1422230400000,4.26709],[1422316800000,4.18743],[1422403200000,4.2407],[1422489600000,4.24161],[1422576000000,4.27206],[1422662400000,4.31967]], 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: [[1420070400000, 4.470378],[1420070400000, 4.470378],[1420156800000, 4.470378],[1420243200000, 4.470378],[1420329600000, 4.470378],[1420416000000, 4.470378],[1420502400000, 4.470378],[1420588800000, 4.374544],[1420675200000, 4.374544],[1420848000000, 4.320105],[1420934400000, 4.320105],[1421020800000, 4.320105],[1421107200000, 4.359560],[1421193600000, 4.352259],[1421366400000, 4.333890],[1421452800000, 4.300656],[1421539200000, 4.260777],[1421625600000, 4.260777],[1421712000000, 4.242341],[1421798400000, 4.240489],[1421884800000, 4.223493],[1422057600000, 4.267089],[1422144000000, 4.267089],[1422230400000, 4.267089],[1422316800000, 4.187432],[1422403200000, 4.240696],[1422489600000, 4.241606],[1422576000000, 4.272064],[1422662400000, 4.319670]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });