$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1225497600000,0.21362],[1225584000000,0.21362],[1225670400000,0.21362],[1225756800000,0.21388],[1225843200000,0.21515],[1225929600000,0.21633],[1226016000000,0.21548],[1226102400000,0.21472],[1226188800000,0.21472],[1226275200000,0.21472],[1226361600000,0.21438],[1226448000000,0.21126],[1226534400000,0.21041],[1226620800000,0.20896],[1226707200000,0.21158],[1226793600000,0.21158],[1226880000000,0.21158],[1226966400000,0.21117],[1227052800000,0.21456],[1227139200000,0.21842],[1227225600000,0.21757],[1227312000000,0.22388],[1227398400000,0.22388],[1227484800000,0.22388],[1227571200000,0.22758],[1227657600000,0.2413],[1227744000000,0.24644],[1227830400000,0.24586],[1227916800000,0.24914],[1228003200000,0.24914]], 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, 0.213620],[1225497600000, 0.213620],[1225584000000, 0.213620],[1225670400000, 0.213620],[1225756800000, 0.213880],[1225843200000, 0.215150],[1225929600000, 0.216330],[1226016000000, 0.215480],[1226102400000, 0.214720],[1226188800000, 0.214720],[1226275200000, 0.214720],[1226361600000, 0.214380],[1226448000000, 0.211260],[1226534400000, 0.210410],[1226620800000, 0.208960],[1226707200000, 0.211580],[1226793600000, 0.211580],[1226880000000, 0.211580],[1226966400000, 0.211170],[1227052800000, 0.214560],[1227139200000, 0.218420],[1227225600000, 0.217570],[1227312000000, 0.223880],[1227398400000, 0.223880],[1227484800000, 0.223880],[1227571200000, 0.227580],[1227657600000, 0.241300],[1227744000000, 0.246440],[1227830400000, 0.245860],[1227916800000, 0.249140],[1228003200000, 0.249140]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });