$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1448928000000,23.2364],[1449014400000,23.1684],[1449100800000,23.0652],[1449187200000,22.7288],[1449273600000,23.6921],[1449360000000,23.6921],[1449446400000,23.6921],[1449532800000,23.4052],[1449619200000,23.0297],[1449705600000,23.1296],[1449792000000,23.6646],[1449878400000,24.149],[1449964800000,24.149],[1450051200000,24.149],[1450137600000,24.2803],[1450224000000,23.7956],[1450310400000,23.7561],[1450396800000,23.5616],[1450483200000,23.6951],[1450569600000,23.6951],[1450656000000,23.6951],[1450742400000,23.6618],[1450828800000,23.4336],[1450915200000,23.2185],[1451001600000,23.2641],[1451088000000,23.4394],[1451174400000,23.4394],[1451260800000,23.4394],[1451347200000,24.0799],[1451433600000,24.0232],[1451520000000,24.2492]], 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: [[1448928000000, 23.236431],[1448928000000, 23.236431],[1449014400000, 23.168369],[1449100800000, 23.065202],[1449187200000, 22.728843],[1449273600000, 23.692088],[1449360000000, 23.692088],[1449446400000, 23.692088],[1449532800000, 23.405226],[1449619200000, 23.029659],[1449705600000, 23.129575],[1449792000000, 23.664586],[1449878400000, 24.149000],[1449964800000, 24.149000],[1450051200000, 24.149000],[1450137600000, 24.280292],[1450224000000, 23.795572],[1450310400000, 23.756120],[1450396800000, 23.561570],[1450483200000, 23.695110],[1450569600000, 23.695110],[1450656000000, 23.695110],[1450742400000, 23.661821],[1450828800000, 23.433555],[1450915200000, 23.218499],[1451001600000, 23.264130],[1451088000000, 23.439391],[1451174400000, 23.439391],[1451260800000, 23.439391],[1451347200000, 24.079869],[1451433600000, 24.023232],[1451520000000, 24.249241]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });