$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1104883200000,5.05],[1104969600000,5.3052],[1105056000000,5.305],[1105142400000,null],[1105228800000,5.305],[1105315200000,null],[1105401600000,5.3048],[1105488000000,5.3048],[1105574400000,5.3048],[1105660800000,5.3047],[1105747200000,5.3045],[1105833600000,5.3045],[1105920000000,5.3045],[1106006400000,5.3045],[1106092800000,5.3044],[1106179200000,5.3042],[1106265600000,5.3042],[1106352000000,5.3042],[1106438400000,5.3042],[1106524800000,5.3042],[1106611200000,null],[1106697600000,5.3041],[1106784000000,5.3041],[1106870400000,5.304],[1106956800000,5.3039],[1107043200000,5.3039],[1107129600000,5.3037]], 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: [[1104883200000, 5.050000],[1104883200000, 5.050000],[1104969600000, 5.305200],[1105056000000, 5.305000],[1105228800000, 5.305000],[1105401600000, 5.304800],[1105488000000, 5.304800],[1105574400000, 5.304800],[1105660800000, 5.304700],[1105747200000, 5.304500],[1105833600000, 5.304500],[1105920000000, 5.304500],[1106006400000, 5.304500],[1106092800000, 5.304400],[1106179200000, 5.304200],[1106265600000, 5.304200],[1106352000000, 5.304200],[1106438400000, 5.304200],[1106524800000, 5.304200],[1106697600000, 5.304100],[1106784000000, 5.304100],[1106870400000, 5.304000],[1106956800000, 5.303900],[1107043200000, 5.303900],[1107129600000, 5.303700]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });