$(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: [[1430438400000,0.078267],[1430524800000,0.078267],[1430611200000,0.078267],[1430697600000,0.078267],[1430784000000,0.078267],[1430870400000,0.077871],[1430956800000,0.07753],[1431043200000,0.07692],[1431129600000,0.076022],[1431216000000,0.076022],[1431302400000,0.076022],[1431388800000,0.076022],[1431475200000,0.075658],[1431561600000,0.0752],[1431648000000,0.076379],[1431734400000,0.076457],[1431820800000,0.076457],[1431907200000,0.076457],[1431993600000,0.081909],[1432080000000,0.077885],[1432166400000,0.075496],[1432252800000,0.074997],[1432339200000,0.075783],[1432425600000,0.075783],[1432512000000,0.075783],[1432598400000,0.075397],[1432684800000,0.07571],[1432771200000,null],[1432857600000,0.074305],[1432944000000,0.074879],[1433030400000,0.074879]], 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, 0.078267],[1430438400000, 0.078267],[1430524800000, 0.078267],[1430611200000, 0.078267],[1430697600000, 0.078267],[1430784000000, 0.078267],[1430870400000, 0.077871],[1430956800000, 0.077530],[1431043200000, 0.076920],[1431129600000, 0.076022],[1431216000000, 0.076022],[1431302400000, 0.076022],[1431388800000, 0.076022],[1431475200000, 0.075658],[1431561600000, 0.075200],[1431648000000, 0.076379],[1431734400000, 0.076457],[1431820800000, 0.076457],[1431907200000, 0.076457],[1431993600000, 0.081909],[1432080000000, 0.077885],[1432166400000, 0.075496],[1432252800000, 0.074997],[1432339200000, 0.075783],[1432425600000, 0.075783],[1432512000000, 0.075783],[1432598400000, 0.075397],[1432684800000, 0.075710],[1432857600000, 0.074305],[1432944000000, 0.074879],[1433030400000, 0.074879]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });