$(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: [[1277942400000,1.3023],[1278028800000,1.30893],[1278115200000,1.33241],[1278201600000,1.33241],[1278288000000,1.33241],[1278374400000,1.33017],[1278460800000,1.33469],[1278547200000,1.33325],[1278633600000,1.34268],[1278720000000,1.33972],[1278806400000,1.33972],[1278892800000,1.33972],[1278979200000,1.33275],[1279065600000,1.33221],[1279152000000,1.34728],[1279238400000,1.36037],[1279324800000,1.37827],[1279411200000,1.37827],[1279497600000,1.37827],[1279584000000,1.37331],[1279670400000,1.36127],[1279756800000,1.35831],[1279843200000,1.36175],[1279929600000,1.36654],[1280016000000,1.36654],[1280102400000,1.36654],[1280188800000,1.3699],[1280275200000,1.38045],[1280361600000,1.37612],[1280448000000,1.38463],[1280534400000,1.38003]], 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: [[1277942400000, 1.302303],[1277942400000, 1.302303],[1278028800000, 1.308932],[1278115200000, 1.332415],[1278201600000, 1.332415],[1278288000000, 1.332415],[1278374400000, 1.330173],[1278460800000, 1.334690],[1278547200000, 1.333250],[1278633600000, 1.342680],[1278720000000, 1.339722],[1278806400000, 1.339722],[1278892800000, 1.339722],[1278979200000, 1.332748],[1279065600000, 1.332208],[1279152000000, 1.347283],[1279238400000, 1.360368],[1279324800000, 1.378267],[1279411200000, 1.378267],[1279497600000, 1.378267],[1279584000000, 1.373307],[1279670400000, 1.361271],[1279756800000, 1.358307],[1279843200000, 1.361753],[1279929600000, 1.366542],[1280016000000, 1.366542],[1280102400000, 1.366542],[1280188800000, 1.369895],[1280275200000, 1.380452],[1280361600000, 1.376120],[1280448000000, 1.384629],[1280534400000, 1.380031]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });