$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1280620800000,0.26146],[1280707200000,0.26146],[1280793600000,0.26145],[1280880000000,0.26333],[1280966400000,0.26484],[1281052800000,0.26423],[1281139200000,0.26449],[1281225600000,null],[1281312000000,0.26449],[1281398400000,0.2646],[1281484800000,0.26279],[1281571200000,0.26122],[1281657600000,0.25912],[1281744000000,0.25937],[1281830400000,0.25937],[1281916800000,0.25937],[1282003200000,0.25855],[1282089600000,0.2591],[1282176000000,0.25932],[1282262400000,0.25901],[1282348800000,0.25861],[1282435200000,null],[1282521600000,null],[1282608000000,0.2586],[1282694400000,0.2586],[1282780800000,0.25537],[1282867200000,0.25598],[1282953600000,0.25693],[1283040000000,0.25693],[1283126400000,0.25693],[1283212800000,0.25718]], 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.261460],[1280620800000, 0.261460],[1280707200000, 0.261460],[1280793600000, 0.261450],[1280880000000, 0.263330],[1280966400000, 0.264840],[1281052800000, 0.264230],[1281139200000, 0.264490],[1281312000000, 0.264490],[1281398400000, 0.264600],[1281484800000, 0.262790],[1281571200000, 0.261220],[1281657600000, 0.259120],[1281744000000, 0.259370],[1281830400000, 0.259370],[1281916800000, 0.259370],[1282003200000, 0.258550],[1282089600000, 0.259100],[1282176000000, 0.259320],[1282262400000, 0.259010],[1282348800000, 0.258610],[1282608000000, 0.258600],[1282694400000, 0.258600],[1282780800000, 0.255370],[1282867200000, 0.255980],[1282953600000, 0.256930],[1283040000000, 0.256930],[1283126400000, 0.256930],[1283212800000, 0.257180]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });