$(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: [[1296518400000,1.45867],[1296604800000,1.4653],[1296691200000,1.47043],[1296777600000,1.46447],[1296864000000,1.45294],[1296950400000,1.45294],[1297036800000,1.45294],[1297123200000,1.44446],[1297209600000,1.4532],[1297296000000,1.45384],[1297382400000,1.44948],[1297468800000,1.44071],[1297555200000,1.44071],[1297641600000,1.44071],[1297728000000,1.43172],[1297814400000,1.4392],[1297900800000,1.43895],[1297987200000,1.44443],[1298073600000,1.45174],[1298160000000,1.45174],[1298246400000,1.45174],[1298332800000,1.45568],[1298419200000,1.45513],[1298505600000,1.46107],[1298592000000,1.46543],[1298678400000,1.46396],[1298764800000,1.46396],[1298851200000,1.46396]], 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: [[1296518400000, 1.458669],[1296518400000, 1.458669],[1296604800000, 1.465302],[1296691200000, 1.470433],[1296777600000, 1.464466],[1296864000000, 1.452938],[1296950400000, 1.452938],[1297036800000, 1.452938],[1297123200000, 1.444458],[1297209600000, 1.453198],[1297296000000, 1.453837],[1297382400000, 1.449477],[1297468800000, 1.440709],[1297555200000, 1.440709],[1297641600000, 1.440709],[1297728000000, 1.431722],[1297814400000, 1.439198],[1297900800000, 1.438949],[1297987200000, 1.444430],[1298073600000, 1.451742],[1298160000000, 1.451742],[1298246400000, 1.451742],[1298332800000, 1.455680],[1298419200000, 1.455132],[1298505600000, 1.461066],[1298592000000, 1.465429],[1298678400000, 1.463956],[1298764800000, 1.463956],[1298851200000, 1.463956]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });