$(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: [[1012521600000,0.17342],[1012608000000,0.17342],[1012694400000,0.17342],[1012780800000,0.17342],[1012867200000,0.17318],[1012953600000,0.17318],[1013040000000,0.17313],[1013126400000,0.17295],[1013212800000,0.17295],[1013299200000,0.17295],[1013385600000,0.17295],[1013472000000,0.17266],[1013558400000,0.17251],[1013644800000,0.1725],[1013731200000,0.17259],[1013817600000,null],[1013904000000,null],[1013990400000,null],[1014076800000,null],[1014163200000,0.17231],[1014249600000,0.17231],[1014336000000,0.17255],[1014422400000,0.17255],[1014508800000,0.17255],[1014595200000,0.17255],[1014681600000,0.17256],[1014768000000,0.17225],[1014854400000,0.17225]], 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: [[1012521600000, 0.173420],[1012521600000, 0.173420],[1012608000000, 0.173420],[1012694400000, 0.173420],[1012780800000, 0.173420],[1012867200000, 0.173180],[1012953600000, 0.173180],[1013040000000, 0.173130],[1013126400000, 0.172950],[1013212800000, 0.172950],[1013299200000, 0.172950],[1013385600000, 0.172950],[1013472000000, 0.172660],[1013558400000, 0.172510],[1013644800000, 0.172500],[1013731200000, 0.172590],[1014163200000, 0.172310],[1014249600000, 0.172310],[1014336000000, 0.172550],[1014422400000, 0.172550],[1014508800000, 0.172550],[1014595200000, 0.172550],[1014681600000, 0.172560],[1014768000000, 0.172250],[1014854400000, 0.172250]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });