$(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: [[1280620800000,2.5652],[1280707200000,2.5652],[1280793600000,2.58648],[1280880000000,2.61072],[1280966400000,2.6029],[1281052800000,2.61188],[1281139200000,2.60751],[1281225600000,null],[1281312000000,2.60751],[1281398400000,2.62637],[1281484800000,2.60082],[1281571200000,2.56388],[1281657600000,2.50759],[1281744000000,2.51455],[1281830400000,2.51455],[1281916800000,2.51455],[1282003200000,2.53353],[1282089600000,2.55522],[1282176000000,2.57835],[1282262400000,2.57821],[1282348800000,2.51931],[1282435200000,null],[1282521600000,null],[1282608000000,2.51921],[1282694400000,2.51921],[1282780800000,2.48357],[1282867200000,2.50953],[1282953600000,2.51385],[1283040000000,2.51385],[1283126400000,2.51385],[1283212800000,2.51604]], 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: [[1280620800000, 2.565201],[1280620800000, 2.565201],[1280707200000, 2.565201],[1280793600000, 2.586481],[1280880000000, 2.610721],[1280966400000, 2.602904],[1281052800000, 2.611876],[1281139200000, 2.607506],[1281312000000, 2.607506],[1281398400000, 2.626367],[1281484800000, 2.600823],[1281571200000, 2.563881],[1281657600000, 2.507594],[1281744000000, 2.514545],[1281830400000, 2.514545],[1281916800000, 2.514545],[1282003200000, 2.533530],[1282089600000, 2.555224],[1282176000000, 2.578353],[1282262400000, 2.578212],[1282348800000, 2.519307],[1282608000000, 2.519211],[1282694400000, 2.519211],[1282780800000, 2.483568],[1282867200000, 2.509529],[1282953600000, 2.513850],[1283040000000, 2.513850],[1283126400000, 2.513850],[1283212800000, 2.516040]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });