$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1280620800000,5.2188],[1280707200000,5.2188],[1280793600000,5.26402],[1280880000000,5.27957],[1280966400000,5.25808],[1281052800000,5.25661],[1281139200000,5.26813],[1281225600000,null],[1281312000000,5.26813],[1281398400000,5.2886],[1281484800000,5.26093],[1281571200000,5.21618],[1281657600000,5.17397],[1281744000000,5.20778],[1281830400000,5.20778],[1281916800000,5.20778],[1282003200000,5.21934],[1282089600000,5.26136],[1282176000000,5.26955],[1282262400000,5.25447],[1282348800000,5.20141],[1282435200000,null],[1282521600000,null],[1282608000000,5.20121],[1282694400000,5.20121],[1282780800000,5.15149],[1282867200000,5.17693],[1282953600000,5.17296],[1283040000000,5.17296],[1283126400000,5.17296],[1283212800000,5.19011]], 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, 5.218804],[1280620800000, 5.218804],[1280707200000, 5.218804],[1280793600000, 5.264017],[1280880000000, 5.279569],[1280966400000, 5.258079],[1281052800000, 5.256613],[1281139200000, 5.268130],[1281312000000, 5.268130],[1281398400000, 5.288599],[1281484800000, 5.260935],[1281571200000, 5.216184],[1281657600000, 5.173969],[1281744000000, 5.207782],[1281830400000, 5.207782],[1281916800000, 5.207782],[1282003200000, 5.219345],[1282089600000, 5.261364],[1282176000000, 5.269546],[1282262400000, 5.254469],[1282348800000, 5.201411],[1282608000000, 5.201213],[1282694400000, 5.201213],[1282780800000, 5.151494],[1282867200000, 5.176933],[1282953600000, 5.172957],[1283040000000, 5.172957],[1283126400000, 5.172957],[1283212800000, 5.190106]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });