$(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: [[1475280000000,3.88498],[1475366400000,3.88498],[1475452800000,3.88498],[1475539200000,3.91126],[1475625600000,3.87907],[1475712000000,3.90161],[1475798400000,3.89136],[1475884800000,3.86893],[1475971200000,3.86893],[1476057600000,3.86893],[1476144000000,3.87361],[1476230400000,3.84899],[1476316800000,3.8226],[1476403200000,3.82658],[1476489600000,3.82658],[1476576000000,3.82658],[1476662400000,3.82658],[1476748800000,3.80995],[1476835200000,3.7915],[1476921600000,3.79102],[1477008000000,3.7932],[1477094400000,3.75577],[1477180800000,3.75577],[1477267200000,3.75577],[1477353600000,3.75367],[1477440000000,3.74087],[1477526400000,3.75716],[1477612800000,3.75117],[1477699200000,3.74374],[1477785600000,3.74374],[1477872000000,3.74374]], 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: [[1475280000000, 3.884982],[1475280000000, 3.884982],[1475366400000, 3.884982],[1475452800000, 3.884982],[1475539200000, 3.911260],[1475625600000, 3.879071],[1475712000000, 3.901611],[1475798400000, 3.891359],[1475884800000, 3.868926],[1475971200000, 3.868926],[1476057600000, 3.868926],[1476144000000, 3.873607],[1476230400000, 3.848991],[1476316800000, 3.822599],[1476403200000, 3.826584],[1476489600000, 3.826584],[1476576000000, 3.826584],[1476662400000, 3.826584],[1476748800000, 3.809952],[1476835200000, 3.791497],[1476921600000, 3.791021],[1477008000000, 3.793197],[1477094400000, 3.755768],[1477180800000, 3.755768],[1477267200000, 3.755768],[1477353600000, 3.753669],[1477440000000, 3.740872],[1477526400000, 3.757161],[1477612800000, 3.751167],[1477699200000, 3.743739],[1477785600000, 3.743739],[1477872000000, 3.743739]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });