$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1501545600000,25.8548],[1501632000000,25.8571],[1501718400000,25.9042],[1501804800000,25.8858],[1501891200000,25.8429],[1501977600000,25.8429],[1502064000000,25.8429],[1502150400000,25.7849],[1502236800000,25.7326],[1502323200000,25.7245],[1502409600000,25.6924],[1502496000000,25.6957],[1502582400000,25.6957],[1502668800000,25.6957],[1502755200000,25.6307],[1502841600000,25.5983],[1502928000000,25.5727],[1503014400000,25.5064],[1503100800000,25.4904],[1503187200000,25.4904],[1503273600000,25.4904],[1503360000000,null],[1503446400000,25.4517],[1503532800000,25.5456],[1503619200000,25.5456],[1503705600000,25.5456],[1503792000000,25.5456],[1503878400000,25.5456],[1503964800000,25.5158],[1504051200000,25.4406],[1504137600000,25.5795]], 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: [[1501545600000, 25.854789],[1501545600000, 25.854789],[1501632000000, 25.857073],[1501718400000, 25.904180],[1501804800000, 25.885752],[1501891200000, 25.842893],[1501977600000, 25.842893],[1502064000000, 25.842893],[1502150400000, 25.784907],[1502236800000, 25.732557],[1502323200000, 25.724503],[1502409600000, 25.692368],[1502496000000, 25.695711],[1502582400000, 25.695711],[1502668800000, 25.695711],[1502755200000, 25.630682],[1502841600000, 25.598280],[1502928000000, 25.572720],[1503014400000, 25.506409],[1503100800000, 25.490401],[1503187200000, 25.490401],[1503273600000, 25.490401],[1503446400000, 25.451704],[1503532800000, 25.545580],[1503619200000, 25.545580],[1503705600000, 25.545580],[1503792000000, 25.545580],[1503878400000, 25.545580],[1503964800000, 25.515762],[1504051200000, 25.440576],[1504137600000, 25.579541]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });