$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1448928000000,16.9576],[1449014400000,16.9078],[1449100800000,16.7747],[1449187200000,16.4144],[1449273600000,16.9438],[1449360000000,16.9438],[1449446400000,16.9438],[1449532800000,16.6861],[1449619200000,16.2195],[1449705600000,16.2838],[1449792000000,16.6723],[1449878400000,16.9259],[1449964800000,16.9259],[1450051200000,16.9259],[1450137600000,16.8833],[1450224000000,16.674],[1450310400000,16.6896],[1450396800000,16.5872],[1450483200000,16.6764],[1450569600000,16.6764],[1450656000000,16.6764],[1450742400000,16.701],[1450828800000,16.4838],[1450915200000,16.3373],[1451001600000,16.3284],[1451088000000,16.4514],[1451174400000,16.4514],[1451260800000,16.4514],[1451347200000,16.9071],[1451433600000,16.8459],[1451520000000,16.974]], 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, 16.957617],[1448928000000, 16.957617],[1449014400000, 16.907779],[1449100800000, 16.774692],[1449187200000, 16.414434],[1449273600000, 16.943829],[1449360000000, 16.943829],[1449446400000, 16.943829],[1449532800000, 16.686103],[1449619200000, 16.219548],[1449705600000, 16.283774],[1449792000000, 16.672285],[1449878400000, 16.925889],[1449964800000, 16.925889],[1450051200000, 16.925889],[1450137600000, 16.883346],[1450224000000, 16.673989],[1450310400000, 16.689573],[1450396800000, 16.587186],[1450483200000, 16.676401],[1450569600000, 16.676401],[1450656000000, 16.676401],[1450742400000, 16.701007],[1450828800000, 16.483790],[1450915200000, 16.337265],[1451001600000, 16.328409],[1451088000000, 16.451420],[1451174400000, 16.451420],[1451260800000, 16.451420],[1451347200000, 16.907076],[1451433600000, 16.845929],[1451520000000, 16.973998]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });