$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1280620800000,1.38003],[1280707200000,1.38003],[1280793600000,1.38477],[1280880000000,1.40045],[1280966400000,1.39855],[1281052800000,1.39618],[1281139200000,1.39517],[1281225600000,null],[1281312000000,1.39517],[1281398400000,1.4034],[1281484800000,1.39085],[1281571200000,1.3784],[1281657600000,1.35441],[1281744000000,1.35542],[1281830400000,1.35542],[1281916800000,1.35542],[1282003200000,1.35791],[1282089600000,1.3621],[1282176000000,1.36413],[1282262400000,1.35935],[1282348800000,1.34611],[1282435200000,null],[1282521600000,null],[1282608000000,1.34606],[1282694400000,1.34606],[1282780800000,1.33624],[1282867200000,1.34482],[1282953600000,1.34621],[1283040000000,1.34621],[1283126400000,1.34621],[1283212800000,1.34492]], 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, 1.380031],[1280620800000, 1.380031],[1280707200000, 1.380031],[1280793600000, 1.384766],[1280880000000, 1.400449],[1280966400000, 1.398546],[1281052800000, 1.396181],[1281139200000, 1.395172],[1281312000000, 1.395172],[1281398400000, 1.403403],[1281484800000, 1.390845],[1281571200000, 1.378399],[1281657600000, 1.354411],[1281744000000, 1.355419],[1281830400000, 1.355419],[1281916800000, 1.355419],[1282003200000, 1.357907],[1282089600000, 1.362098],[1282176000000, 1.364125],[1282262400000, 1.359352],[1282348800000, 1.346114],[1282608000000, 1.346063],[1282694400000, 1.346063],[1282780800000, 1.336241],[1282867200000, 1.344825],[1282953600000, 1.346215],[1283040000000, 1.346215],[1283126400000, 1.346215],[1283212800000, 1.344920]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });