$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1430438400000,23.7],[1430524800000,23.7],[1430611200000,23.7],[1430697600000,23.7],[1430784000000,23.7],[1430870400000,23.4936],[1430956800000,23.6116],[1431043200000,23.4267],[1431129600000,23.1039],[1431216000000,23.1039],[1431302400000,23.1039],[1431388800000,23.1039],[1431475200000,23.1946],[1431561600000,23.0825],[1431648000000,23.4881],[1431734400000,23.447],[1431820800000,23.447],[1431907200000,23.447],[1431993600000,25.1909],[1432080000000,23.7604],[1432166400000,23.1395],[1432252800000,23.0217],[1432339200000,23.2623],[1432425600000,23.2623],[1432512000000,23.2623],[1432598400000,23.2005],[1432684800000,23.4073],[1432771200000,null],[1432857600000,22.9341],[1432944000000,23.1301],[1433030400000,23.1301]], 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: [[1430438400000, 23.699981],[1430438400000, 23.699981],[1430524800000, 23.699981],[1430611200000, 23.699981],[1430697600000, 23.699981],[1430784000000, 23.699981],[1430870400000, 23.493622],[1430956800000, 23.611640],[1431043200000, 23.426741],[1431129600000, 23.103884],[1431216000000, 23.103884],[1431302400000, 23.103884],[1431388800000, 23.103884],[1431475200000, 23.194554],[1431561600000, 23.082480],[1431648000000, 23.488121],[1431734400000, 23.446969],[1431820800000, 23.446969],[1431907200000, 23.446969],[1431993600000, 25.190944],[1432080000000, 23.760384],[1432166400000, 23.139518],[1432252800000, 23.021738],[1432339200000, 23.262263],[1432425600000, 23.262263],[1432512000000, 23.262263],[1432598400000, 23.200548],[1432684800000, 23.407286],[1432857600000, 22.934148],[1432944000000, 23.130122],[1433030400000, 23.130122]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });