$(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: [[1404864000000,11.7123],[1404950400000,11.6581],[1405036800000,null],[1405123200000,11.6938],[1405209600000,11.6938],[1405296000000,11.6938],[1405382400000,11.6962],[1405468800000,11.7072],[1405555200000,11.7181],[1405641600000,11.7197],[1405728000000,11.6491],[1405814400000,null],[1405900800000,null],[1405987200000,11.6556],[1406073600000,11.67],[1406160000000,11.6444],[1406246400000,11.6829],[1406332800000,11.7528],[1406419200000,11.7528],[1406505600000,11.7528],[1406592000000,11.8584],[1406678400000,11.9877],[1406764800000,12.0032]], 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: [[1404864000000, 11.712292],[1404864000000, 11.712292],[1404950400000, 11.658130],[1405123200000, 11.693814],[1405209600000, 11.693814],[1405296000000, 11.693814],[1405382400000, 11.696248],[1405468800000, 11.707174],[1405555200000, 11.718072],[1405641600000, 11.719709],[1405728000000, 11.649106],[1405987200000, 11.655592],[1406073600000, 11.670029],[1406160000000, 11.644375],[1406246400000, 11.682867],[1406332800000, 11.752797],[1406419200000, 11.752797],[1406505600000, 11.752797],[1406592000000, 11.858383],[1406678400000, 11.987694],[1406764800000, 12.003188]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });