$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1122854400000,6.10696],[1122940800000,6.17059],[1123027200000,6.16958],[1123113600000,6.21554],[1123200000000,6.2211],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,6.24533],[1123718400000,6.25038],[1123804800000,6.26452],[1123891200000,6.29078],[1123977600000,6.29078],[1124064000000,6.29078],[1124150400000,6.24887],[1124236800000,6.21807],[1124323200000,6.20948],[1124409600000,6.16756],[1124496000000,6.15242],[1124582400000,6.15242],[1124668800000,6.15242],[1124755200000,6.17666],[1124841600000,6.17767],[1124928000000,6.17767],[1125014400000,6.19736],[1125100800000,6.21504],[1125187200000,6.21504],[1125273600000,6.21504],[1125360000000,6.20594],[1125446400000,6.1514]], 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: [[1122854400000, 6.106965],[1122854400000, 6.106965],[1122940800000, 6.170595],[1123027200000, 6.169585],[1123113600000, 6.215540],[1123200000000, 6.221095],[1123632000000, 6.245335],[1123718400000, 6.250385],[1123804800000, 6.264525],[1123891200000, 6.290785],[1123977600000, 6.290785],[1124064000000, 6.290785],[1124150400000, 6.248870],[1124236800000, 6.218065],[1124323200000, 6.209480],[1124409600000, 6.167565],[1124496000000, 6.152415],[1124582400000, 6.152415],[1124668800000, 6.152415],[1124755200000, 6.176655],[1124841600000, 6.177665],[1124928000000, 6.177665],[1125014400000, 6.197360],[1125100800000, 6.215035],[1125187200000, 6.215035],[1125273600000, 6.215035],[1125360000000, 6.205945],[1125446400000, 6.151405]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });