$(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: [[1318032000000,1.43883],[1318118400000,1.43883],[1318204800000,1.43883],[1318291200000,1.45596],[1318377600000,1.45744],[1318464000000,1.47448],[1318550400000,1.47055],[1318636800000,1.479],[1318723200000,1.479],[1318809600000,1.479],[1318896000000,1.47574],[1318982400000,1.46497],[1319068800000,1.48127],[1319155200000,1.47912],[1319241600000,1.47804],[1319328000000,1.47804],[1319414400000,1.47804],[1319500800000,1.48433],[1319587200000,1.49107],[1319673600000,1.49217],[1319760000000,1.50429]], 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: [[1318032000000, 1.438832],[1318032000000, 1.438832],[1318118400000, 1.438832],[1318204800000, 1.438832],[1318291200000, 1.455960],[1318377600000, 1.457440],[1318464000000, 1.474477],[1318550400000, 1.470550],[1318636800000, 1.479001],[1318723200000, 1.479001],[1318809600000, 1.479001],[1318896000000, 1.475740],[1318982400000, 1.464968],[1319068800000, 1.481270],[1319155200000, 1.479120],[1319241600000, 1.478037],[1319328000000, 1.478037],[1319414400000, 1.478037],[1319500800000, 1.484329],[1319587200000, 1.491065],[1319673600000, 1.492169],[1319760000000, 1.504294]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });