$(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: [[1433116800000,3.10068],[1433203200000,3.10068],[1433289600000,3.11557],[1433376000000,3.13525],[1433462400000,3.18787],[1433548800000,3.16163],[1433635200000,3.16163],[1433721600000,3.16163],[1433808000000,3.15736],[1433894400000,3.19201],[1433980800000,3.19759],[1434067200000,3.16537],[1434153600000,3.16674],[1434240000000,3.16674],[1434326400000,3.16674],[1434412800000,3.22546],[1434499200000,3.33079],[1434585600000,3.27446],[1434672000000,3.26034],[1434758400000,3.27644],[1434844800000,3.27644],[1434931200000,3.27644],[1435017600000,3.30987],[1435104000000,3.23182],[1435190400000,3.18242],[1435276800000,3.18404],[1435363200000,3.15535],[1435449600000,3.15535],[1435536000000,3.15535],[1435622400000,3.15535]], 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: [[1433116800000, 3.100677],[1433116800000, 3.100677],[1433203200000, 3.100677],[1433289600000, 3.115566],[1433376000000, 3.135252],[1433462400000, 3.187874],[1433548800000, 3.161635],[1433635200000, 3.161635],[1433721600000, 3.161635],[1433808000000, 3.157361],[1433894400000, 3.192009],[1433980800000, 3.197593],[1434067200000, 3.165369],[1434153600000, 3.166741],[1434240000000, 3.166741],[1434326400000, 3.166741],[1434412800000, 3.225458],[1434499200000, 3.330789],[1434585600000, 3.274462],[1434672000000, 3.260340],[1434758400000, 3.276443],[1434844800000, 3.276443],[1434931200000, 3.276443],[1435017600000, 3.309869],[1435104000000, 3.231815],[1435190400000, 3.182422],[1435276800000, 3.184042],[1435363200000, 3.155346],[1435449600000, 3.155346],[1435536000000, 3.155346],[1435622400000, 3.155346]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });