$(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: [[1225497600000,9.38464],[1225584000000,9.38464],[1225670400000,9.38464],[1225756800000,9.31892],[1225843200000,9.24961],[1225929600000,9.29129],[1226016000000,9.199],[1226102400000,9.14891],[1226188800000,9.14891],[1226275200000,9.14891],[1226361600000,9.12617],[1226448000000,9.03696],[1226534400000,8.79886],[1226620800000,8.57833],[1226707200000,8.5271],[1226793600000,8.5271],[1226880000000,8.5271],[1226966400000,8.64731],[1227052800000,8.84313],[1227139200000,9.01681],[1227225600000,8.93444],[1227312000000,9.24801],[1227398400000,9.24801],[1227484800000,9.24801],[1227571200000,9.4408],[1227657600000,9.91808],[1227744000000,10.3128],[1227830400000,10.4055],[1227916800000,10.5474],[1228003200000,10.5474]], 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: [[1225497600000, 9.384639],[1225497600000, 9.384639],[1225584000000, 9.384639],[1225670400000, 9.384639],[1225756800000, 9.318918],[1225843200000, 9.249610],[1225929600000, 9.291294],[1226016000000, 9.199000],[1226102400000, 9.148913],[1226188800000, 9.148913],[1226275200000, 9.148913],[1226361600000, 9.126165],[1226448000000, 9.036961],[1226534400000, 8.798858],[1226620800000, 8.578334],[1226707200000, 8.527100],[1226793600000, 8.527100],[1226880000000, 8.527100],[1226966400000, 8.647306],[1227052800000, 8.843126],[1227139200000, 9.016807],[1227225600000, 8.934444],[1227312000000, 9.248010],[1227398400000, 9.248010],[1227484800000, 9.248010],[1227571200000, 9.440802],[1227657600000, 9.918077],[1227744000000, 10.312817],[1227830400000, 10.405506],[1227916800000, 10.547354],[1228003200000, 10.547354]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });