$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1122854400000,3.03829],[1122940800000,3.04465],[1123027200000,3.05516],[1123113600000,3.05973],[1123200000000,3.0551],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,3.04903],[1123718400000,3.06226],[1123804800000,3.06139],[1123891200000,3.06002],[1123977600000,3.06002],[1124064000000,3.06002],[1124150400000,3.04645],[1124236800000,3.04315],[1124323200000,3.04446],[1124409600000,3.03417],[1124496000000,3.02717],[1124582400000,3.02717],[1124668800000,3.02717],[1124755200000,3.03074],[1124841600000,3.0253],[1124928000000,3.0253],[1125014400000,3.02001],[1125100800000,3.02053],[1125187200000,3.02053],[1125273600000,3.02053],[1125360000000,3.0037],[1125446400000,2.99382]], 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.038291],[1122854400000, 3.038291],[1122940800000, 3.044651],[1123027200000, 3.055157],[1123113600000, 3.059732],[1123200000000, 3.055097],[1123632000000, 3.049033],[1123718400000, 3.062263],[1123804800000, 3.061391],[1123891200000, 3.060018],[1123977600000, 3.060018],[1124064000000, 3.060018],[1124150400000, 3.046446],[1124236800000, 3.043148],[1124323200000, 3.044460],[1124409600000, 3.034174],[1124496000000, 3.027167],[1124582400000, 3.027167],[1124668800000, 3.027167],[1124755200000, 3.030743],[1124841600000, 3.025301],[1124928000000, 3.025301],[1125014400000, 3.020009],[1125100800000, 3.020526],[1125187200000, 3.020526],[1125273600000, 3.020526],[1125360000000, 3.003700],[1125446400000, 2.993821]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });