$(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: [[1291161600000,1.3844],[1291248000000,1.39688],[1291334400000,1.40163],[1291420800000,1.41153],[1291507200000,1.41153],[1291593600000,1.41153],[1291680000000,1.41822],[1291766400000,1.42583],[1291852800000,1.40799],[1291939200000,1.40929],[1292025600000,1.41293],[1292112000000,1.41293],[1292198400000,1.41293],[1292284800000,1.41544],[1292371200000,1.43534],[1292457600000,1.42771],[1292544000000,1.41499],[1292630400000,1.41743],[1292716800000,1.41743],[1292803200000,1.41743],[1292889600000,1.40534],[1292976000000,1.40604],[1293062400000,1.40118],[1293148800000,1.39588],[1293235200000,1.39933],[1293321600000,1.39933],[1293408000000,1.39933],[1293494400000,1.40312],[1293580800000,1.40919],[1293667200000,1.40293],[1293753600000,1.41837]], 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: [[1291161600000, 1.384402],[1291161600000, 1.384402],[1291248000000, 1.396883],[1291334400000, 1.401628],[1291420800000, 1.411527],[1291507200000, 1.411527],[1291593600000, 1.411527],[1291680000000, 1.418220],[1291766400000, 1.425827],[1291852800000, 1.407988],[1291939200000, 1.409292],[1292025600000, 1.412927],[1292112000000, 1.412927],[1292198400000, 1.412927],[1292284800000, 1.415437],[1292371200000, 1.435337],[1292457600000, 1.427707],[1292544000000, 1.414987],[1292630400000, 1.417434],[1292716800000, 1.417434],[1292803200000, 1.417434],[1292889600000, 1.405336],[1292976000000, 1.406040],[1293062400000, 1.401181],[1293148800000, 1.395883],[1293235200000, 1.399328],[1293321600000, 1.399328],[1293408000000, 1.399328],[1293494400000, 1.403116],[1293580800000, 1.409191],[1293667200000, 1.402926],[1293753600000, 1.418375]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });