$(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: [[1177977600000,0.924782],[1178064000000,0.924782],[1178150400000,0.924782],[1178236800000,0.92255],[1178323200000,0.919026],[1178409600000,0.919026],[1178496000000,0.919026],[1178582400000,0.922698],[1178668800000,0.918761],[1178755200000,0.918761],[1178841600000,0.916709],[1178928000000,0.913931],[1179014400000,0.913931],[1179100800000,0.913931],[1179187200000,0.918262],[1179273600000,0.91743],[1179360000000,0.919709],[1179446400000,0.915743],[1179532800000,0.913186],[1179619200000,0.913186],[1179705600000,0.913186],[1179792000000,0.910889],[1179878400000,0.911591],[1179964800000,0.914128],[1180051200000,0.911405],[1180137600000,0.910881],[1180224000000,0.910881],[1180310400000,0.910881],[1180396800000,0.910881],[1180483200000,0.915698],[1180569600000,0.909751]], 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: [[1177977600000, 0.924782],[1177977600000, 0.924782],[1178064000000, 0.924782],[1178150400000, 0.924782],[1178236800000, 0.922550],[1178323200000, 0.919026],[1178409600000, 0.919026],[1178496000000, 0.919026],[1178582400000, 0.922698],[1178668800000, 0.918761],[1178755200000, 0.918761],[1178841600000, 0.916709],[1178928000000, 0.913931],[1179014400000, 0.913931],[1179100800000, 0.913931],[1179187200000, 0.918262],[1179273600000, 0.917430],[1179360000000, 0.919709],[1179446400000, 0.915743],[1179532800000, 0.913186],[1179619200000, 0.913186],[1179705600000, 0.913186],[1179792000000, 0.910889],[1179878400000, 0.911591],[1179964800000, 0.914128],[1180051200000, 0.911405],[1180137600000, 0.910881],[1180224000000, 0.910881],[1180310400000, 0.910881],[1180396800000, 0.910881],[1180483200000, 0.915698],[1180569600000, 0.909751]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });