$(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: 'Курс EEK, грн'}, 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: 'Курс EEK', data: [[1280620800000,0.657179],[1280707200000,0.657179],[1280793600000,0.659407],[1280880000000,0.666821],[1280966400000,0.666022],[1281052800000,0.664896],[1281139200000,0.664434],[1281225600000,null],[1281312000000,0.664434],[1281398400000,0.6683],[1281484800000,0.662248],[1281571200000,0.656349],[1281657600000,0.644952],[1281744000000,0.645406],[1281830400000,0.645406],[1281916800000,0.645406],[1282003200000,0.646539],[1282089600000,0.648482],[1282176000000,0.649491],[1282262400000,0.647296],[1282348800000,0.640993],[1282435200000,null],[1282521600000,null],[1282608000000,0.640969],[1282694400000,0.640969],[1282780800000,0.636027],[1282867200000,0.640061],[1282953600000,0.640826],[1283040000000,0.640826],[1283126400000,0.640826],[1283212800000,0.640097]], 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, 0.657179],[1280620800000, 0.657179],[1280707200000, 0.657179],[1280793600000, 0.659407],[1280880000000, 0.666821],[1280966400000, 0.666022],[1281052800000, 0.664896],[1281139200000, 0.664434],[1281312000000, 0.664434],[1281398400000, 0.668300],[1281484800000, 0.662248],[1281571200000, 0.656349],[1281657600000, 0.644952],[1281744000000, 0.645406],[1281830400000, 0.645406],[1281916800000, 0.645406],[1282003200000, 0.646539],[1282089600000, 0.648482],[1282176000000, 0.649491],[1282262400000, 0.647296],[1282348800000, 0.640993],[1282608000000, 0.640969],[1282694400000, 0.640969],[1282780800000, 0.636027],[1282867200000, 0.640061],[1282953600000, 0.640826],[1283040000000, 0.640826],[1283126400000, 0.640826],[1283212800000, 0.640097]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });