$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1525132800000,1.58506],[1525219200000,1.58506],[1525305600000,1.57638],[1525392000000,1.57737],[1525478400000,1.58424],[1525564800000,1.58424],[1525651200000,1.58424],[1525737600000,1.58193],[1525824000000,1.57944],[1525910400000,1.57944],[1525996800000,1.57973],[1526083200000,1.58139],[1526169600000,1.58139],[1526256000000,1.58139],[1526342400000,1.58113],[1526428800000,1.58374],[1526515200000,1.58323],[1526601600000,1.57553],[1526688000000,1.56818],[1526774400000,1.56818],[1526860800000,1.56818],[1526947200000,1.56143],[1527033600000,1.55768],[1527120000000,1.55402],[1527206400000,1.55232],[1527292800000,1.55158],[1527379200000,1.55158],[1527465600000,1.55158],[1527552000000,1.55158],[1527638400000,1.54376],[1527724800000,1.54159]], 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: [[1525132800000, 1.585060],[1525132800000, 1.585060],[1525219200000, 1.585060],[1525305600000, 1.576385],[1525392000000, 1.577372],[1525478400000, 1.584241],[1525564800000, 1.584241],[1525651200000, 1.584241],[1525737600000, 1.581926],[1525824000000, 1.579441],[1525910400000, 1.579441],[1525996800000, 1.579725],[1526083200000, 1.581385],[1526169600000, 1.581385],[1526256000000, 1.581385],[1526342400000, 1.581134],[1526428800000, 1.583744],[1526515200000, 1.583231],[1526601600000, 1.575532],[1526688000000, 1.568178],[1526774400000, 1.568178],[1526860800000, 1.568178],[1526947200000, 1.561426],[1527033600000, 1.557678],[1527120000000, 1.554017],[1527206400000, 1.552319],[1527292800000, 1.551585],[1527379200000, 1.551585],[1527465600000, 1.551585],[1527552000000, 1.551585],[1527638400000, 1.543759],[1527724800000, 1.541590]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });