$(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: [[1294272000000,1.41106],[1294358400000,1.39822],[1294444800000,1.39822],[1294531200000,1.39822],[1294617600000,1.39822],[1294704000000,1.37845],[1294790400000,1.38312],[1294876800000,1.38587],[1294963200000,1.40907],[1295049600000,1.42458],[1295136000000,1.42458],[1295222400000,1.42458],[1295308800000,1.41945],[1295395200000,1.42568],[1295481600000,1.44],[1295568000000,1.43609],[1295654400000,1.44085],[1295740800000,1.44085],[1295827200000,1.44085],[1295913600000,1.44587],[1296000000000,1.44805],[1296086400000,1.45697],[1296172800000,1.45923],[1296259200000,1.46039],[1296345600000,1.46039],[1296432000000,1.46039]], 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: [[1294272000000, 1.411063],[1294272000000, 1.411063],[1294358400000, 1.398221],[1294444800000, 1.398221],[1294531200000, 1.398221],[1294617600000, 1.398221],[1294704000000, 1.378446],[1294790400000, 1.383124],[1294876800000, 1.385869],[1294963200000, 1.409069],[1295049600000, 1.424583],[1295136000000, 1.424583],[1295222400000, 1.424583],[1295308800000, 1.419453],[1295395200000, 1.425679],[1295481600000, 1.439996],[1295568000000, 1.436094],[1295654400000, 1.440846],[1295740800000, 1.440846],[1295827200000, 1.440846],[1295913600000, 1.445868],[1296000000000, 1.448046],[1296086400000, 1.456972],[1296172800000, 1.459227],[1296259200000, 1.460389],[1296345600000, 1.460389],[1296432000000, 1.460389]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });