$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1467331200000,24.8284],[1467417600000,24.8214],[1467504000000,24.8214],[1467590400000,24.8214],[1467676800000,24.8158],[1467763200000,24.8459],[1467849600000,24.8419],[1467936000000,24.8148],[1468022400000,24.8368],[1468108800000,24.8368],[1468195200000,24.8368],[1468281600000,24.8521],[1468368000000,24.8417],[1468454400000,24.8213],[1468540800000,24.798],[1468627200000,24.8072],[1468713600000,24.8072],[1468800000000,24.8072],[1468886400000,24.8566],[1468972800000,24.8143],[1469059200000,24.8116],[1469145600000,24.8161],[1469232000000,24.8126],[1469318400000,24.8126],[1469404800000,24.8126],[1469491200000,24.7877],[1469577600000,24.7853],[1469664000000,24.8153],[1469750400000,null],[1469836800000,24.8065],[1469923200000,24.8065]], 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: [[1467331200000, 24.828412],[1467331200000, 24.828412],[1467417600000, 24.821412],[1467504000000, 24.821412],[1467590400000, 24.821412],[1467676800000, 24.815823],[1467763200000, 24.845936],[1467849600000, 24.841948],[1467936000000, 24.814798],[1468022400000, 24.836822],[1468108800000, 24.836822],[1468195200000, 24.836822],[1468281600000, 24.852093],[1468368000000, 24.841663],[1468454400000, 24.821286],[1468540800000, 24.798021],[1468627200000, 24.807177],[1468713600000, 24.807177],[1468800000000, 24.807177],[1468886400000, 24.856585],[1468972800000, 24.814308],[1469059200000, 24.811596],[1469145600000, 24.816117],[1469232000000, 24.812552],[1469318400000, 24.812552],[1469404800000, 24.812552],[1469491200000, 24.787745],[1469577600000, 24.785259],[1469664000000, 24.815350],[1469836800000, 24.806544],[1469923200000, 24.806544]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });