$(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: [[1270080000000,1.43486],[1270166400000,1.43367],[1270252800000,1.43367],[1270339200000,1.43367],[1270425600000,1.43367],[1270512000000,1.43367],[1270598400000,1.42614],[1270684800000,1.42015],[1270771200000,1.41578],[1270857600000,1.42534],[1270944000000,1.42534],[1271030400000,1.42534],[1271116800000,1.44675],[1271203200000,1.4464],[1271289600000,1.44989],[1271376000000,1.44229],[1271462400000,1.44141],[1271548800000,1.44141],[1271635200000,1.44141],[1271721600000,1.4304],[1271808000000,1.43618],[1271894400000,1.42425],[1271980800000,1.42062],[1272067200000,1.4176],[1272153600000,1.4176],[1272240000000,1.4176],[1272326400000,1.41875],[1272412800000,1.41538],[1272499200000,1.41057],[1272585600000,1.41178]], 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: [[1270080000000, 1.434861],[1270080000000, 1.434861],[1270166400000, 1.433670],[1270252800000, 1.433670],[1270339200000, 1.433670],[1270425600000, 1.433670],[1270512000000, 1.433670],[1270598400000, 1.426140],[1270684800000, 1.420149],[1270771200000, 1.415783],[1270857600000, 1.425343],[1270944000000, 1.425343],[1271030400000, 1.425343],[1271116800000, 1.446749],[1271203200000, 1.446402],[1271289600000, 1.449887],[1271376000000, 1.442294],[1271462400000, 1.441413],[1271548800000, 1.441413],[1271635200000, 1.441413],[1271721600000, 1.430404],[1271808000000, 1.436178],[1271894400000, 1.424254],[1271980800000, 1.420616],[1272067200000, 1.417596],[1272153600000, 1.417596],[1272240000000, 1.417596],[1272326400000, 1.418753],[1272412800000, 1.415377],[1272499200000, 1.410566],[1272585600000, 1.411775]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });