$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1170288000000,3.89716],[1170374400000,3.91795],[1170460800000,3.90886],[1170547200000,3.90886],[1170633600000,3.90886],[1170720000000,3.91244],[1170806400000,3.92364],[1170892800000,3.92838],[1170979200000,3.93572],[1171065600000,3.92128],[1171152000000,3.92128],[1171238400000,3.92128],[1171324800000,3.9073],[1171411200000,3.91179],[1171497600000,3.9479],[1171584000000,3.96758],[1171670400000,3.96593],[1171756800000,3.96593],[1171843200000,3.96593],[1171929600000,3.96678],[1172016000000,3.97284],[1172102400000,3.98932],[1172188800000,3.98467],[1172275200000,3.98838],[1172361600000,null],[1172448000000,3.98838],[1172534400000,4.00012],[1172620800000,4.00189]], 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: [[1170288000000, 3.897158],[1170288000000, 3.897158],[1170374400000, 3.917948],[1170460800000, 3.908864],[1170547200000, 3.908864],[1170633600000, 3.908864],[1170720000000, 3.912441],[1170806400000, 3.923639],[1170892800000, 3.928383],[1170979200000, 3.935722],[1171065600000, 3.921279],[1171152000000, 3.921279],[1171238400000, 3.921279],[1171324800000, 3.907304],[1171411200000, 3.911790],[1171497600000, 3.947896],[1171584000000, 3.967577],[1171670400000, 3.965935],[1171756800000, 3.965935],[1171843200000, 3.965935],[1171929600000, 3.966778],[1172016000000, 3.972844],[1172102400000, 3.989318],[1172188800000, 3.984666],[1172275200000, 3.988376],[1172448000000, 3.988376],[1172534400000, 4.000120],[1172620800000, 4.001887]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });