$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1472688000000,36.3662],[1472774400000,37.1405],[1472860800000,37.2085],[1472947200000,37.2085],[1473033600000,37.2085],[1473120000000,37.4238],[1473206400000,37.5197],[1473292800000,37.505],[1473379200000,37.4287],[1473465600000,37.3999],[1473552000000,37.3999],[1473638400000,37.3999],[1473724800000,37.2959],[1473811200000,37.0177],[1473897600000,36.8409],[1473984000000,36.6976],[1474070400000,36.2584],[1474156800000,36.2584],[1474243200000,36.2584],[1474329600000,35.9654],[1474416000000,36.0142],[1474502400000,36.2352],[1474588800000,36.2993],[1474675200000,36.3587],[1474761600000,36.3587],[1474848000000,36.3587],[1474934400000,36.2522],[1475020800000,36.1669],[1475107200000,36.2321],[1475193600000,36.2326]], 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: [[1472688000000, 36.366191],[1472688000000, 36.366191],[1472774400000, 37.140465],[1472860800000, 37.208535],[1472947200000, 37.208535],[1473033600000, 37.208535],[1473120000000, 37.423792],[1473206400000, 37.519704],[1473292800000, 37.504955],[1473379200000, 37.428679],[1473465600000, 37.399908],[1473552000000, 37.399908],[1473638400000, 37.399908],[1473724800000, 37.295877],[1473811200000, 37.017664],[1473897600000, 36.840857],[1473984000000, 36.697604],[1474070400000, 36.258352],[1474156800000, 36.258352],[1474243200000, 36.258352],[1474329600000, 35.965394],[1474416000000, 36.014228],[1474502400000, 36.235246],[1474588800000, 36.299267],[1474675200000, 36.358662],[1474761600000, 36.358662],[1474848000000, 36.358662],[1474934400000, 36.252215],[1475020800000, 36.166869],[1475107200000, 36.232054],[1475193600000, 36.232637]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });