$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1448928000000,17.9132],[1449014400000,17.9006],[1449100800000,17.6675],[1449187200000,17.3349],[1449273600000,17.7316],[1449360000000,17.7316],[1449446400000,17.7316],[1449532800000,17.4212],[1449619200000,16.8445],[1449705600000,16.8716],[1449792000000,17.2585],[1449878400000,17.4621],[1449964800000,17.4621],[1450051200000,17.4621],[1450137600000,17.3125],[1450224000000,17.1033],[1450310400000,17.0855],[1450396800000,16.981],[1450483200000,16.8716],[1450569600000,16.8716],[1450656000000,16.8716],[1450742400000,16.8529],[1450828800000,16.632],[1450915200000,16.5418],[1451001600000,16.5575],[1451088000000,16.6822],[1451174400000,16.6822],[1451260800000,16.6822],[1451347200000,17.1617],[1451433600000,17.0957],[1451520000000,17.285]], 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, 17.913229],[1448928000000, 17.913229],[1449014400000, 17.900593],[1449100800000, 17.667516],[1449187200000, 17.334881],[1449273600000, 17.731589],[1449360000000, 17.731589],[1449446400000, 17.731589],[1449532800000, 17.421209],[1449619200000, 16.844515],[1449705600000, 16.871644],[1449792000000, 17.258522],[1449878400000, 17.462106],[1449964800000, 17.462106],[1450051200000, 17.462106],[1450137600000, 17.312526],[1450224000000, 17.103314],[1450310400000, 17.085465],[1450396800000, 16.980986],[1450483200000, 16.871582],[1450569600000, 16.871582],[1450656000000, 16.871582],[1450742400000, 16.852944],[1450828800000, 16.631951],[1450915200000, 16.541803],[1451001600000, 16.557478],[1451088000000, 16.682214],[1451174400000, 16.682214],[1451260800000, 16.682214],[1451347200000, 17.161677],[1451433600000, 17.095727],[1451520000000, 17.285036]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });