$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1041379200000,8.53842],[1041465600000,8.53842],[1041552000000,8.52528],[1041638400000,8.52528],[1041724800000,8.52528],[1041811200000,8.52528],[1041897600000,8.52528],[1041984000000,8.51952],[1042070400000,8.58034],[1042156800000,8.57182],[1042243200000,8.57182],[1042329600000,8.57182],[1042416000000,8.5648],[1042502400000,8.5648],[1042588800000,8.51549],[1042675200000,8.55532],[1042761600000,8.63052],[1042848000000,8.63052],[1042934400000,8.63052],[1043020800000,8.56238],[1043107200000,8.56238],[1043193600000,8.57401],[1043280000000,8.60166],[1043366400000,8.70572],[1043452800000,8.70572],[1043539200000,8.70572],[1043625600000,8.70572],[1043712000000,8.72102],[1043798400000,8.737],[1043884800000,8.78284],[1043971200000,8.7968]], 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: [[1041379200000, 8.538420],[1041379200000, 8.538420],[1041465600000, 8.538420],[1041552000000, 8.525280],[1041638400000, 8.525280],[1041724800000, 8.525280],[1041811200000, 8.525280],[1041897600000, 8.525280],[1041984000000, 8.519520],[1042070400000, 8.580340],[1042156800000, 8.571820],[1042243200000, 8.571820],[1042329600000, 8.571820],[1042416000000, 8.564800],[1042502400000, 8.564800],[1042588800000, 8.515490],[1042675200000, 8.555320],[1042761600000, 8.630520],[1042848000000, 8.630520],[1042934400000, 8.630520],[1043020800000, 8.562380],[1043107200000, 8.562380],[1043193600000, 8.574010],[1043280000000, 8.601660],[1043366400000, 8.705720],[1043452800000, 8.705720],[1043539200000, 8.705720],[1043625600000, 8.705720],[1043712000000, 8.721020],[1043798400000, 8.737000],[1043884800000, 8.782840],[1043971200000, 8.796800]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });