$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1146441600000,0.18516],[1146528000000,0.18516],[1146614400000,0.18516],[1146700800000,0.18594],[1146787200000,0.1856],[1146873600000,0.18617],[1146960000000,0.18648],[1147046400000,0.18648],[1147132800000,0.18648],[1147219200000,0.18648],[1147305600000,0.18679],[1147392000000,0.18652],[1147478400000,0.18743],[1147564800000,0.18743],[1147651200000,0.18743],[1147737600000,0.1876],[1147824000000,0.18689],[1147910400000,0.18734],[1147996800000,0.18658],[1148083200000,0.18705],[1148169600000,0.18705],[1148256000000,0.18705],[1148342400000,0.18637],[1148428800000,0.18712],[1148515200000,0.18692],[1148601600000,0.18677],[1148688000000,0.1868],[1148774400000,0.1868],[1148860800000,0.1868],[1148947200000,0.18659],[1149033600000,0.18715]], 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: [[1146441600000, 0.185160],[1146441600000, 0.185160],[1146528000000, 0.185160],[1146614400000, 0.185160],[1146700800000, 0.185940],[1146787200000, 0.185600],[1146873600000, 0.186170],[1146960000000, 0.186480],[1147046400000, 0.186480],[1147132800000, 0.186480],[1147219200000, 0.186480],[1147305600000, 0.186790],[1147392000000, 0.186520],[1147478400000, 0.187430],[1147564800000, 0.187430],[1147651200000, 0.187430],[1147737600000, 0.187600],[1147824000000, 0.186890],[1147910400000, 0.187340],[1147996800000, 0.186580],[1148083200000, 0.187050],[1148169600000, 0.187050],[1148256000000, 0.187050],[1148342400000, 0.186370],[1148428800000, 0.187120],[1148515200000, 0.186920],[1148601600000, 0.186770],[1148688000000, 0.186800],[1148774400000, 0.186800],[1148860800000, 0.186800],[1148947200000, 0.186590],[1149033600000, 0.187150]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });