$(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: [[1107216000000,5.3037],[1107302400000,5.3034],[1107388800000,5.3018],[1107475200000,5.3013],[1107561600000,5.301],[1107648000000,5.301],[1107734400000,5.301],[1107820800000,5.3005],[1107907200000,5.3001],[1107993600000,5.2998],[1108080000000,5.2997],[1108166400000,5.2994],[1108252800000,5.2994],[1108339200000,5.2994],[1108425600000,5.2994],[1108512000000,5.2994],[1108598400000,5.2991],[1108684800000,5.2991],[1108771200000,5.2991],[1108857600000,5.2991],[1108944000000,5.2991],[1109030400000,5.2991],[1109116800000,5.2991],[1109203200000,5.2991],[1109289600000,5.299],[1109376000000,5.299],[1109462400000,5.299],[1109548800000,5.299]], 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: [[1107216000000, 5.303700],[1107216000000, 5.303700],[1107302400000, 5.303400],[1107388800000, 5.301800],[1107475200000, 5.301300],[1107561600000, 5.301000],[1107648000000, 5.301000],[1107734400000, 5.301000],[1107820800000, 5.300500],[1107907200000, 5.300100],[1107993600000, 5.299800],[1108080000000, 5.299700],[1108166400000, 5.299400],[1108252800000, 5.299400],[1108339200000, 5.299400],[1108425600000, 5.299400],[1108512000000, 5.299400],[1108598400000, 5.299100],[1108684800000, 5.299100],[1108771200000, 5.299100],[1108857600000, 5.299100],[1108944000000, 5.299100],[1109030400000, 5.299100],[1109116800000, 5.299100],[1109203200000, 5.299100],[1109289600000, 5.299000],[1109376000000, 5.299000],[1109462400000, 5.299000],[1109548800000, 5.299000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });