$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1146441600000,0.0239745],[1146528000000,0.0239745],[1146614400000,0.0239745],[1146700800000,0.0244425],[1146787200000,0.0243573],[1146873600000,0.024663],[1146960000000,0.024663],[1147046400000,0.024663],[1147132800000,0.024663],[1147219200000,0.024663],[1147305600000,0.0247665],[1147392000000,0.0246236],[1147478400000,0.0246069],[1147564800000,0.0246069],[1147651200000,0.0246069],[1147737600000,0.0241702],[1147824000000,0.0246265],[1147910400000,0.0247646],[1147996800000,0.0243096],[1148083200000,0.0244541],[1148169600000,0.0244541],[1148256000000,0.0244541],[1148342400000,0.0243673],[1148428800000,0.0247291],[1148515200000,0.024645],[1148601600000,0.0245429],[1148688000000,0.0247453],[1148774400000,0.0247453],[1148860800000,0.0247453],[1148947200000,0.0246888],[1149033600000,0.0247933]], 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.023974],[1146441600000, 0.023974],[1146528000000, 0.023974],[1146614400000, 0.023974],[1146700800000, 0.024442],[1146787200000, 0.024357],[1146873600000, 0.024663],[1146960000000, 0.024663],[1147046400000, 0.024663],[1147132800000, 0.024663],[1147219200000, 0.024663],[1147305600000, 0.024767],[1147392000000, 0.024624],[1147478400000, 0.024607],[1147564800000, 0.024607],[1147651200000, 0.024607],[1147737600000, 0.024170],[1147824000000, 0.024626],[1147910400000, 0.024765],[1147996800000, 0.024310],[1148083200000, 0.024454],[1148169600000, 0.024454],[1148256000000, 0.024454],[1148342400000, 0.024367],[1148428800000, 0.024729],[1148515200000, 0.024645],[1148601600000, 0.024543],[1148688000000, 0.024745],[1148774400000, 0.024745],[1148860800000, 0.024745],[1148947200000, 0.024689],[1149033600000, 0.024793]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });