$(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: [[1414800000000,12.9507],[1414886400000,12.9507],[1414972800000,12.9507],[1415059200000,12.9507],[1415145600000,12.954],[1415232000000,13.497],[1415318400000,13.9557],[1415404800000,14.4707],[1415491200000,14.4707],[1415577600000,14.4707],[1415664000000,14.8042],[1415750400000,15.7714],[1415836800000,15.7496],[1415923200000,15.56],[1416009600000,15.4124],[1416096000000,15.4124],[1416182400000,15.4124],[1416268800000,null],[1416355200000,15.2602],[1416441600000,15.2001],[1416528000000,15.1461],[1416614400000,15.0962],[1416700800000,15.0962],[1416787200000,15.0962],[1416873600000,15.0608],[1416960000000,15.0079],[1417046400000,14.9731],[1417132800000,14.9669],[1417219200000,14.9693],[1417305600000,14.9693]], 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: [[1414800000000, 12.950684],[1414800000000, 12.950684],[1414886400000, 12.950684],[1414972800000, 12.950684],[1415059200000, 12.950746],[1415145600000, 12.953953],[1415232000000, 13.497012],[1415318400000, 13.955672],[1415404800000, 14.470660],[1415491200000, 14.470660],[1415577600000, 14.470660],[1415664000000, 14.804225],[1415750400000, 15.771363],[1415836800000, 15.749624],[1415923200000, 15.560000],[1416009600000, 15.412417],[1416096000000, 15.412417],[1416182400000, 15.412417],[1416355200000, 15.260180],[1416441600000, 15.200110],[1416528000000, 15.146067],[1416614400000, 15.096240],[1416700800000, 15.096240],[1416787200000, 15.096240],[1416873600000, 15.060794],[1416960000000, 15.007932],[1417046400000, 14.973062],[1417132800000, 14.966885],[1417219200000, 14.969269],[1417305600000, 14.969269]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });