$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1404864000000,18.0824],[1404950400000,18.0002],[1405036800000,null],[1405123200000,18.0697],[1405209600000,18.0697],[1405296000000,18.0697],[1405382400000,18.0718],[1405468800000,18.0935],[1405555200000,18.1053],[1405641600000,18.0668],[1405728000000,17.9558],[1405814400000,null],[1405900800000,null],[1405987200000,17.9629],[1406073600000,17.9835],[1406160000000,17.9194],[1406246400000,17.9738],[1406332800000,18.0744],[1406419200000,18.0744],[1406505600000,18.0744],[1406592000000,18.2192],[1406678400000,18.4109],[1406764800000,18.4276]], 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, 18.082394],[1404864000000, 18.082394],[1404950400000, 18.000164],[1405123200000, 18.069740],[1405209600000, 18.069740],[1405296000000, 18.069740],[1405382400000, 18.071825],[1405468800000, 18.093516],[1405555200000, 18.105294],[1405641600000, 18.066789],[1405728000000, 17.955818],[1405987200000, 17.962936],[1406073600000, 17.983522],[1406160000000, 17.919358],[1406246400000, 17.973752],[1406332800000, 18.074441],[1406419200000, 18.074441],[1406505600000, 18.074441],[1406592000000, 18.219196],[1406678400000, 18.410911],[1406764800000, 18.427603]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });