$(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: [[1446336000000,22.9937],[1446422400000,22.9937],[1446508800000,23.0152],[1446595200000,23.0194],[1446681600000,23.0814],[1446768000000,22.9255],[1446854400000,22.649],[1446940800000,22.649],[1447027200000,22.649],[1447113600000,22.7549],[1447200000000,22.7613],[1447286400000,22.7569],[1447372800000,22.9172],[1447459200000,23.0598],[1447545600000,23.0598],[1447632000000,23.0598],[1447718400000,23.207],[1447804800000,23.7711],[1447891200000,23.9136],[1447977600000,23.8391],[1448064000000,23.9846],[1448150400000,23.9846],[1448236800000,23.9846],[1448323200000,24.0636],[1448409600000,23.9492],[1448496000000,23.7716],[1448582400000,23.5973],[1448668800000,23.8847],[1448755200000,23.8847],[1448841600000,23.8847]], 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: [[1446336000000, 22.993727],[1446336000000, 22.993727],[1446422400000, 22.993727],[1446508800000, 23.015217],[1446595200000, 23.019410],[1446681600000, 23.081425],[1446768000000, 22.925534],[1446854400000, 22.648966],[1446940800000, 22.648966],[1447027200000, 22.648966],[1447113600000, 22.754934],[1447200000000, 22.761335],[1447286400000, 22.756907],[1447372800000, 22.917230],[1447459200000, 23.059785],[1447545600000, 23.059785],[1447632000000, 23.059785],[1447718400000, 23.207025],[1447804800000, 23.771078],[1447891200000, 23.913585],[1447977600000, 23.839146],[1448064000000, 23.984576],[1448150400000, 23.984576],[1448236800000, 23.984576],[1448323200000, 24.063619],[1448409600000, 23.949241],[1448496000000, 23.771646],[1448582400000, 23.597302],[1448668800000, 23.884656],[1448755200000, 23.884656],[1448841600000, 23.884656]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });