$(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: [[1488326400000,36.7768],[1488412800000,36.652],[1488499200000,36.4907],[1488585600000,36.5146],[1488672000000,36.5146],[1488758400000,36.5146],[1488844800000,36.4562],[1488931200000,36.345],[1489017600000,36.345],[1489104000000,36.2336],[1489190400000,36.1265],[1489276800000,36.1265],[1489363200000,36.1265],[1489449600000,36.3485],[1489536000000,36.2877],[1489622400000,36.2782],[1489708800000,36.5854],[1489795200000,36.511],[1489881600000,36.511],[1489968000000,36.511],[1490054400000,36.5054],[1490140800000,36.5558],[1490227200000,36.6582],[1490313600000,36.8589],[1490400000000,36.9738],[1490486400000,36.9738],[1490572800000,36.9738],[1490659200000,37.1217],[1490745600000,37.0439],[1490832000000,36.825],[1490918400000,36.6852]], 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: [[1488326400000, 36.776753],[1488326400000, 36.776753],[1488412800000, 36.652039],[1488499200000, 36.490749],[1488585600000, 36.514553],[1488672000000, 36.514553],[1488758400000, 36.514553],[1488844800000, 36.456228],[1488931200000, 36.345024],[1489017600000, 36.345024],[1489104000000, 36.233603],[1489190400000, 36.126534],[1489276800000, 36.126534],[1489363200000, 36.126534],[1489449600000, 36.348530],[1489536000000, 36.287671],[1489622400000, 36.278201],[1489708800000, 36.585367],[1489795200000, 36.510950],[1489881600000, 36.510950],[1489968000000, 36.510950],[1490054400000, 36.505393],[1490140800000, 36.555828],[1490227200000, 36.658188],[1490313600000, 36.858867],[1490400000000, 36.973834],[1490486400000, 36.973834],[1490572800000, 36.973834],[1490659200000, 37.121684],[1490745600000, 37.043864],[1490832000000, 36.824984],[1490918400000, 36.685150]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });