$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1122854400000,7.33187],[1122940800000,7.3718],[1123027200000,7.37509],[1123113600000,7.39799],[1123200000000,7.40202],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,7.40479],[1123718400000,7.42507],[1123804800000,7.44157],[1123891200000,7.4668],[1123977600000,7.4668],[1124064000000,7.4668],[1124150400000,7.44156],[1124236800000,7.43204],[1124323200000,7.42619],[1124409600000,7.3998],[1124496000000,7.38641],[1124582400000,7.38641],[1124668800000,7.38641],[1124755200000,7.40626],[1124841600000,7.40145],[1124928000000,7.40145],[1125014400000,7.41959],[1125100800000,7.42361],[1125187200000,7.42361],[1125273600000,7.42361],[1125360000000,7.42361],[1125446400000,7.37334]], 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, 7.331868],[1122854400000, 7.331868],[1122940800000, 7.371800],[1123027200000, 7.375094],[1123113600000, 7.397988],[1123200000000, 7.402022],[1123632000000, 7.404790],[1123718400000, 7.425073],[1123804800000, 7.441573],[1123891200000, 7.466802],[1123977600000, 7.466802],[1124064000000, 7.466802],[1124150400000, 7.441562],[1124236800000, 7.432045],[1124323200000, 7.426187],[1124409600000, 7.399799],[1124496000000, 7.386410],[1124582400000, 7.386410],[1124668800000, 7.386410],[1124755200000, 7.406256],[1124841600000, 7.401447],[1124928000000, 7.401447],[1125014400000, 7.419586],[1125100800000, 7.423610],[1125187200000, 7.423610],[1125273600000, 7.423610],[1125360000000, 7.423610],[1125446400000, 7.373339]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });