$(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: [[1212969600000,4.851],[1213056000000,4.849],[1213142400000,4.8515],[1213228800000,4.8532],[1213315200000,4.8543],[1213401600000,4.8543],[1213488000000,4.8543],[1213574400000,4.8543],[1213660800000,4.8543],[1213747200000,4.8543],[1213833600000,4.8534],[1213920000000,4.8525],[1214006400000,4.8497],[1214092800000,4.8497],[1214179200000,4.8497],[1214265600000,4.8497],[1214352000000,4.8497],[1214438400000,4.8497],[1214524800000,4.8489],[1214611200000,4.8489],[1214697600000,4.8489],[1214784000000,4.8489]], 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: [[1212969600000, 4.851000],[1212969600000, 4.851000],[1213056000000, 4.849000],[1213142400000, 4.851500],[1213228800000, 4.853200],[1213315200000, 4.854300],[1213401600000, 4.854300],[1213488000000, 4.854300],[1213574400000, 4.854300],[1213660800000, 4.854300],[1213747200000, 4.854300],[1213833600000, 4.853400],[1213920000000, 4.852500],[1214006400000, 4.849700],[1214092800000, 4.849700],[1214179200000, 4.849700],[1214265600000, 4.849700],[1214352000000, 4.849700],[1214438400000, 4.849700],[1214524800000, 4.848900],[1214611200000, 4.848900],[1214697600000, 4.848900],[1214784000000, 4.848900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });