$(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: [[1446336000000,3.39674],[1446422400000,3.39674],[1446508800000,3.40422],[1446595200000,3.38747],[1446681600000,3.38359],[1446768000000,3.34484],[1446854400000,3.29837],[1446940800000,3.29837],[1447027200000,3.29837],[1447113600000,3.28696],[1447200000000,3.26801],[1447286400000,3.26877],[1447372800000,3.29495],[1447459200000,3.32702],[1447545600000,3.32702],[1447632000000,3.32702],[1447718400000,3.33533],[1447804800000,3.39937],[1447891200000,3.4187],[1447977600000,3.415],[1448064000000,3.4362],[1448150400000,3.4362],[1448236800000,3.4362],[1448323200000,3.42895],[1448409600000,3.41912],[1448496000000,3.37301],[1448582400000,3.35667],[1448668800000,3.38717],[1448755200000,3.38717],[1448841600000,3.38717]], 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: [[1446336000000, 3.396738],[1446336000000, 3.396738],[1446422400000, 3.396738],[1446508800000, 3.404222],[1446595200000, 3.387468],[1446681600000, 3.383588],[1446768000000, 3.344844],[1446854400000, 3.298370],[1446940800000, 3.298370],[1447027200000, 3.298370],[1447113600000, 3.286959],[1447200000000, 3.268008],[1447286400000, 3.268766],[1447372800000, 3.294955],[1447459200000, 3.327018],[1447545600000, 3.327018],[1447632000000, 3.327018],[1447718400000, 3.335329],[1447804800000, 3.399373],[1447891200000, 3.418699],[1447977600000, 3.414996],[1448064000000, 3.436197],[1448150400000, 3.436197],[1448236800000, 3.436197],[1448323200000, 3.428951],[1448409600000, 3.419119],[1448496000000, 3.373008],[1448582400000, 3.356674],[1448668800000, 3.387168],[1448755200000, 3.387168],[1448841600000, 3.387168]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });