$(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: [[1243814400000,1.4426],[1243900800000,1.45347],[1243987200000,1.45552],[1244073600000,1.45193],[1244160000000,1.44057],[1244246400000,1.44905],[1244332800000,1.44905],[1244419200000,1.44905],[1244505600000,1.44905],[1244592000000,1.42674],[1244678400000,1.44122],[1244764800000,1.42765],[1244851200000,1.43156],[1244937600000,1.43156],[1245024000000,1.43156],[1245110400000,1.41567],[1245196800000,1.42012],[1245283200000,1.4164],[1245369600000,1.42443],[1245456000000,1.42566],[1245542400000,1.42566],[1245628800000,1.42566],[1245715200000,1.41668],[1245801600000,1.42914],[1245888000000,1.43659],[1245974400000,1.42826],[1246060800000,1.44441],[1246147200000,1.44441],[1246233600000,1.44441],[1246320000000,1.44441]], 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: [[1243814400000, 1.442596],[1243814400000, 1.442596],[1243900800000, 1.453474],[1243987200000, 1.455525],[1244073600000, 1.451933],[1244160000000, 1.440575],[1244246400000, 1.449053],[1244332800000, 1.449053],[1244419200000, 1.449053],[1244505600000, 1.449053],[1244592000000, 1.426740],[1244678400000, 1.441221],[1244764800000, 1.427647],[1244851200000, 1.431565],[1244937600000, 1.431565],[1245024000000, 1.431565],[1245110400000, 1.415670],[1245196800000, 1.420121],[1245283200000, 1.416403],[1245369600000, 1.424425],[1245456000000, 1.425656],[1245542400000, 1.425656],[1245628800000, 1.425656],[1245715200000, 1.416683],[1245801600000, 1.429139],[1245888000000, 1.436594],[1245974400000, 1.428263],[1246060800000, 1.444412],[1246147200000, 1.444412],[1246233600000, 1.444412],[1246320000000, 1.444412]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });