$(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: [[1220227200000,4.8462],[1220313600000,4.847],[1220400000000,4.8501],[1220486400000,4.8507],[1220572800000,4.8503],[1220659200000,4.8508],[1220745600000,4.8508],[1220832000000,4.8508],[1220918400000,4.8511],[1221004800000,4.8514],[1221091200000,4.8517],[1221177600000,4.8523],[1221264000000,4.852],[1221350400000,4.852],[1221436800000,4.852],[1221523200000,4.8517],[1221609600000,4.8511],[1221696000000,4.8511],[1221782400000,4.8511],[1221868800000,4.851],[1221955200000,4.851],[1222041600000,4.851],[1222128000000,4.8505],[1222214400000,4.8551],[1222300800000,4.8601],[1222387200000,4.8617],[1222473600000,4.8611],[1222560000000,4.8611],[1222646400000,4.8611],[1222732800000,4.861]], 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: [[1220227200000, 4.846200],[1220227200000, 4.846200],[1220313600000, 4.847000],[1220400000000, 4.850100],[1220486400000, 4.850700],[1220572800000, 4.850300],[1220659200000, 4.850800],[1220745600000, 4.850800],[1220832000000, 4.850800],[1220918400000, 4.851100],[1221004800000, 4.851400],[1221091200000, 4.851700],[1221177600000, 4.852300],[1221264000000, 4.852000],[1221350400000, 4.852000],[1221436800000, 4.852000],[1221523200000, 4.851700],[1221609600000, 4.851100],[1221696000000, 4.851100],[1221782400000, 4.851100],[1221868800000, 4.851000],[1221955200000, 4.851000],[1222041600000, 4.851000],[1222128000000, 4.850500],[1222214400000, 4.855100],[1222300800000, 4.860100],[1222387200000, 4.861700],[1222473600000, 4.861100],[1222560000000, 4.861100],[1222646400000, 4.861100],[1222732800000, 4.861000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });