$(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: [[1151712000000,9.27621],[1151798400000,9.27621],[1151884800000,9.27621],[1151971200000,9.31624],[1152057600000,9.32302],[1152144000000,9.31378],[1152230400000,9.26682],[1152316800000,9.29209],[1152403200000,9.29209],[1152489600000,9.29209],[1152576000000,9.30534],[1152662400000,9.29098],[1152748800000,9.29083],[1152835200000,9.29311],[1152921600000,9.30375],[1153008000000,9.30375],[1153094400000,9.30375],[1153180800000,9.19989],[1153267200000,9.23953],[1153353600000,9.22023],[1153440000000,9.34805],[1153526400000,9.37678],[1153612800000,9.37678],[1153699200000,9.37678],[1153785600000,9.35984],[1153872000000,9.33877],[1153958400000,9.291],[1154044800000,9.40103],[1154131200000,9.37043],[1154217600000,9.37043],[1154304000000,9.37043]], 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: [[1151712000000, 9.276210],[1151712000000, 9.276210],[1151798400000, 9.276210],[1151884800000, 9.276210],[1151971200000, 9.316241],[1152057600000, 9.323021],[1152144000000, 9.313781],[1152230400000, 9.266823],[1152316800000, 9.292087],[1152403200000, 9.292087],[1152489600000, 9.292087],[1152576000000, 9.305339],[1152662400000, 9.290979],[1152748800000, 9.290832],[1152835200000, 9.293113],[1152921600000, 9.303753],[1153008000000, 9.303753],[1153094400000, 9.303753],[1153180800000, 9.199891],[1153267200000, 9.239531],[1153353600000, 9.220230],[1153440000000, 9.348045],[1153526400000, 9.376776],[1153612800000, 9.376776],[1153699200000, 9.376776],[1153785600000, 9.359837],[1153872000000, 9.338768],[1153958400000, 9.290996],[1154044800000, 9.401030],[1154131200000, 9.370432],[1154217600000, 9.370432],[1154304000000, 9.370432]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });