$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1225497600000,0.991684],[1225584000000,0.991684],[1225670400000,0.991684],[1225756800000,0.997575],[1225843200000,1.0035],[1225929600000,1.00667],[1226016000000,0.994734],[1226102400000,0.993411],[1226188800000,0.993411],[1226275200000,0.993411],[1226361600000,1.00067],[1226448000000,0.989199],[1226534400000,0.972675],[1226620800000,0.972332],[1226707200000,0.984451],[1226793600000,0.984451],[1226880000000,0.984451],[1226966400000,0.984918],[1227052800000,0.999785],[1227139200000,1.01643],[1227225600000,1.00957],[1227312000000,1.04345],[1227398400000,1.04345],[1227484800000,1.04345],[1227571200000,1.07855],[1227657600000,1.13596],[1227744000000,1.17],[1227830400000,1.16704],[1227916800000,1.17467],[1228003200000,1.17467]], 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.991684],[1225497600000, 0.991684],[1225584000000, 0.991684],[1225670400000, 0.991684],[1225756800000, 0.997575],[1225843200000, 1.003501],[1225929600000, 1.006667],[1226016000000, 0.994734],[1226102400000, 0.993411],[1226188800000, 0.993411],[1226275200000, 0.993411],[1226361600000, 1.000673],[1226448000000, 0.989199],[1226534400000, 0.972675],[1226620800000, 0.972332],[1226707200000, 0.984451],[1226793600000, 0.984451],[1226880000000, 0.984451],[1226966400000, 0.984918],[1227052800000, 0.999785],[1227139200000, 1.016432],[1227225600000, 1.009567],[1227312000000, 1.043452],[1227398400000, 1.043452],[1227484800000, 1.043452],[1227571200000, 1.078554],[1227657600000, 1.135960],[1227744000000, 1.170005],[1227830400000, 1.167043],[1227916800000, 1.174665],[1228003200000, 1.174665]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });