$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1280620800000,14.5071],[1280707200000,14.5071],[1280793600000,14.5624],[1280880000000,14.7282],[1280966400000,14.7064],[1281052800000,14.6878],[1281139200000,14.6776],[1281225600000,null],[1281312000000,14.6776],[1281398400000,14.7505],[1281484800000,14.6334],[1281571200000,14.499],[1281657600000,14.2452],[1281744000000,14.2472],[1281830400000,14.2472],[1281916800000,14.2472],[1282003200000,14.2782],[1282089600000,14.3212],[1282176000000,14.3455],[1282262400000,14.299],[1282348800000,14.1598],[1282435200000,null],[1282521600000,null],[1282608000000,14.1592],[1282694400000,14.1592],[1282780800000,14.0481],[1282867200000,14.1352],[1282953600000,14.1461],[1283040000000,14.1461],[1283126400000,14.1461],[1283212800000,14.132]], 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, 14.507068],[1280620800000, 14.507068],[1280707200000, 14.507068],[1280793600000, 14.562418],[1280880000000, 14.728239],[1280966400000, 14.706445],[1281052800000, 14.687791],[1281139200000, 14.677577],[1281312000000, 14.677577],[1281398400000, 14.750482],[1281484800000, 14.633437],[1281571200000, 14.498975],[1281657600000, 14.245215],[1281744000000, 14.247194],[1281830400000, 14.247194],[1281916800000, 14.247194],[1282003200000, 14.278241],[1282089600000, 14.321157],[1282176000000, 14.345455],[1282262400000, 14.299010],[1282348800000, 14.159763],[1282608000000, 14.159225],[1282694400000, 14.159225],[1282780800000, 14.048076],[1282867200000, 14.135183],[1282953600000, 14.146082],[1283040000000, 14.146082],[1283126400000, 14.146082],[1283212800000, 14.131998]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });