$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1122854400000,3.79268],[1122940800000,3.82364],[1123027200000,3.81522],[1123113600000,3.83131],[1123200000000,3.83237],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,3.81697],[1123718400000,3.83083],[1123804800000,3.8036],[1123891200000,3.72898],[1123977600000,3.72898],[1124064000000,3.72898],[1124150400000,3.73736],[1124236800000,3.7526],[1124323200000,3.70937],[1124409600000,3.68543],[1124496000000,3.6854],[1124582400000,3.6854],[1124668800000,3.6854],[1124755200000,3.69638],[1124841600000,3.69389],[1124928000000,3.69389],[1125014400000,3.69771],[1125100800000,3.71224],[1125187200000,3.71224],[1125273600000,3.71224],[1125360000000,3.71836],[1125446400000,3.72068]], 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, 3.792675],[1122854400000, 3.792675],[1122940800000, 3.823643],[1123027200000, 3.815216],[1123113600000, 3.831314],[1123200000000, 3.832375],[1123632000000, 3.816975],[1123718400000, 3.830832],[1123804800000, 3.803597],[1123891200000, 3.728977],[1123977600000, 3.728977],[1124064000000, 3.728977],[1124150400000, 3.737362],[1124236800000, 3.752604],[1124323200000, 3.709367],[1124409600000, 3.685429],[1124496000000, 3.685405],[1124582400000, 3.685405],[1124668800000, 3.685405],[1124755200000, 3.696382],[1124841600000, 3.693892],[1124928000000, 3.693892],[1125014400000, 3.697709],[1125100800000, 3.712242],[1125187200000, 3.712242],[1125273600000, 3.712242],[1125360000000, 3.718361],[1125446400000, 3.720683]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });