$(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: [[1149120000000,9.47418],[1149206400000,9.39343],[1149292800000,9.42211],[1149379200000,9.42211],[1149465600000,9.42211],[1149552000000,9.5058],[1149638400000,9.42026],[1149724800000,9.39],[1149811200000,9.31649],[1149897600000,9.30741],[1149984000000,9.30741],[1150070400000,9.30741],[1150156800000,9.30741],[1150243200000,9.29005],[1150329600000,9.29366],[1150416000000,9.3339],[1150502400000,9.35533],[1150588800000,9.35533],[1150675200000,9.35533],[1150761600000,9.32667],[1150848000000,9.28448],[1150934400000,9.30585],[1151020800000,9.24407],[1151107200000,9.17661],[1151193600000,9.17661],[1151280000000,9.17661],[1151366400000,9.19186],[1151452800000,9.18827],[1151539200000,9.18827],[1151625600000,9.15518]], 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: [[1149120000000, 9.474180],[1149120000000, 9.474180],[1149206400000, 9.393428],[1149292800000, 9.422108],[1149379200000, 9.422108],[1149465600000, 9.422108],[1149552000000, 9.505796],[1149638400000, 9.420263],[1149724800000, 9.390004],[1149811200000, 9.316493],[1149897600000, 9.307411],[1149984000000, 9.307411],[1150070400000, 9.307411],[1150156800000, 9.307411],[1150243200000, 9.290049],[1150329600000, 9.293657],[1150416000000, 9.333895],[1150502400000, 9.355330],[1150588800000, 9.355330],[1150675200000, 9.355330],[1150761600000, 9.326667],[1150848000000, 9.284481],[1150934400000, 9.305850],[1151020800000, 9.244068],[1151107200000, 9.176613],[1151193600000, 9.176613],[1151280000000, 9.176613],[1151366400000, 9.191863],[1151452800000, 9.188266],[1151539200000, 9.188266],[1151625600000, 9.155180]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });