$(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: [[1051747200000,5.3336],[1051833600000,5.3336],[1051920000000,5.3336],[1052006400000,5.3336],[1052092800000,5.3336],[1052179200000,5.3335],[1052265600000,5.3335],[1052352000000,5.3333],[1052438400000,5.3333],[1052524800000,5.3333],[1052611200000,5.3333],[1052697600000,5.3333],[1052784000000,5.3332],[1052870400000,5.3331],[1052956800000,5.3331],[1053043200000,5.3331],[1053129600000,5.3331],[1053216000000,5.3331],[1053302400000,5.3331],[1053388800000,5.3331],[1053475200000,5.3331],[1053561600000,5.333],[1053648000000,5.333],[1053734400000,5.333],[1053820800000,5.333],[1053907200000,null],[1053993600000,5.333],[1054080000000,5.333],[1054166400000,5.333],[1054252800000,5.333],[1054339200000,5.333]], 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: [[1051747200000, 5.333600],[1051747200000, 5.333600],[1051833600000, 5.333600],[1051920000000, 5.333600],[1052006400000, 5.333600],[1052092800000, 5.333600],[1052179200000, 5.333500],[1052265600000, 5.333500],[1052352000000, 5.333300],[1052438400000, 5.333300],[1052524800000, 5.333300],[1052611200000, 5.333300],[1052697600000, 5.333300],[1052784000000, 5.333200],[1052870400000, 5.333100],[1052956800000, 5.333100],[1053043200000, 5.333100],[1053129600000, 5.333100],[1053216000000, 5.333100],[1053302400000, 5.333100],[1053388800000, 5.333100],[1053475200000, 5.333100],[1053561600000, 5.333000],[1053648000000, 5.333000],[1053734400000, 5.333000],[1053820800000, 5.333000],[1053993600000, 5.333000],[1054080000000, 5.333000],[1054166400000, 5.333000],[1054252800000, 5.333000],[1054339200000, 5.333000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });