$(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: [[1364774400000,12.1039],[1364860800000,12.1039],[1364947200000,12.1183],[1365033600000,12.0856],[1365120000000,12.0897],[1365206400000,12.1848],[1365292800000,12.1848],[1365379200000,12.1848],[1365465600000,12.2325],[1365552000000,12.237],[1365638400000,12.2364],[1365724800000,12.3075],[1365811200000,12.2778],[1365897600000,12.2778],[1365984000000,12.2778],[1366070400000,12.2589],[1366156800000,12.2465],[1366243200000,12.1839],[1366329600000,12.198],[1366416000000,12.2692],[1366502400000,12.2692],[1366588800000,12.2692],[1366675200000,12.1692],[1366761600000,12.1915],[1366848000000,12.1944],[1366934400000,12.3609],[1367020800000,12.3692],[1367107200000,12.3692],[1367193600000,12.3692],[1367280000000,12.4185]], 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: [[1364774400000, 12.103875],[1364774400000, 12.103875],[1364860800000, 12.103875],[1364947200000, 12.118328],[1365033600000, 12.085597],[1365120000000, 12.089713],[1365206400000, 12.184830],[1365292800000, 12.184830],[1365379200000, 12.184830],[1365465600000, 12.232545],[1365552000000, 12.237009],[1365638400000, 12.236359],[1365724800000, 12.307531],[1365811200000, 12.277820],[1365897600000, 12.277820],[1365984000000, 12.277820],[1366070400000, 12.258932],[1366156800000, 12.246481],[1366243200000, 12.183919],[1366329600000, 12.198021],[1366416000000, 12.269218],[1366502400000, 12.269218],[1366588800000, 12.269218],[1366675200000, 12.169186],[1366761600000, 12.191519],[1366848000000, 12.194365],[1366934400000, 12.360894],[1367020800000, 12.369168],[1367107200000, 12.369168],[1367193600000, 12.369168],[1367280000000, 12.418508]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });