$(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: [[1472688000000,19.9092],[1472774400000,20.2721],[1472860800000,20.358],[1472947200000,20.358],[1473033600000,20.358],[1473120000000,20.7008],[1473206400000,20.7985],[1473292800000,20.7907],[1473379200000,20.6861],[1473465600000,20.5872],[1473552000000,20.5872],[1473638400000,20.5872],[1473724800000,20.3068],[1473811200000,20.1582],[1473897600000,19.9588],[1473984000000,19.8861],[1474070400000,19.6238],[1474156800000,19.6238],[1474243200000,19.6238],[1474329600000,19.592],[1474416000000,19.5112],[1474502400000,19.765],[1474588800000,19.9221],[1474675200000,19.9288],[1474761600000,19.9288],[1474848000000,19.9288],[1474934400000,19.6764],[1475020800000,19.4854],[1475107200000,19.6028],[1475193600000,19.8023]], 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, 19.909242],[1472688000000, 19.909242],[1472774400000, 20.272051],[1472860800000, 20.358048],[1472947200000, 20.358048],[1473033600000, 20.358048],[1473120000000, 20.700773],[1473206400000, 20.798472],[1473292800000, 20.790711],[1473379200000, 20.686143],[1473465600000, 20.587165],[1473552000000, 20.587165],[1473638400000, 20.587165],[1473724800000, 20.306776],[1473811200000, 20.158237],[1473897600000, 19.958759],[1473984000000, 19.886073],[1474070400000, 19.623779],[1474156800000, 19.623779],[1474243200000, 19.623779],[1474329600000, 19.592010],[1474416000000, 19.511156],[1474502400000, 19.765032],[1474588800000, 19.922094],[1474675200000, 19.928812],[1474761600000, 19.928812],[1474848000000, 19.928812],[1474934400000, 19.676419],[1475020800000, 19.485423],[1475107200000, 19.602793],[1475193600000, 19.802302]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });