$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1122854400000,8.67698],[1122940800000,8.75217],[1123027200000,8.78261],[1123113600000,8.73702],[1123200000000,8.85965],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,8.89085],[1123718400000,8.89085],[1123804800000,8.92226],[1123891200000,8.9539],[1123977600000,8.9539],[1124064000000,8.9539],[1124150400000,8.92226],[1124236800000,8.87522],[1124323200000,8.85965],[1124409600000,8.82867],[1124496000000,8.75217],[1124582400000,8.75217],[1124668800000,8.75217],[1124755200000,8.75217],[1124841600000,8.76736],[1124928000000,8.76736],[1125014400000,8.84413],[1125100800000,8.84413],[1125187200000,8.84413],[1125273600000,8.84413],[1125360000000,8.85965],[1125446400000,8.78261]], 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, 8.676976],[1122854400000, 8.676976],[1122940800000, 8.752166],[1123027200000, 8.782609],[1123113600000, 8.737024],[1123200000000, 8.859649],[1123632000000, 8.890845],[1123718400000, 8.890845],[1123804800000, 8.922261],[1123891200000, 8.953901],[1123977600000, 8.953901],[1124064000000, 8.953901],[1124150400000, 8.922261],[1124236800000, 8.875220],[1124323200000, 8.859649],[1124409600000, 8.828671],[1124496000000, 8.752166],[1124582400000, 8.752166],[1124668800000, 8.752166],[1124755200000, 8.752166],[1124841600000, 8.767361],[1124928000000, 8.767361],[1125014400000, 8.844133],[1125100800000, 8.844133],[1125187200000, 8.844133],[1125273600000, 8.844133],[1125360000000, 8.859649],[1125446400000, 8.782609]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });