$(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: [[1104883200000,8.53041],[1104969600000,10.1827],[1105056000000,10.0284],[1105142400000,null],[1105228800000,10.0284],[1105315200000,null],[1105401600000,9.86022],[1105488000000,9.91551],[1105574400000,9.89701],[1105660800000,10.0089],[1105747200000,9.89645],[1105833600000,9.89645],[1105920000000,9.89645],[1106006400000,9.89645],[1106092800000,9.84119],[1106179200000,9.82259],[1106265600000,9.82259],[1106352000000,9.76832],[1106438400000,9.76832],[1106524800000,9.76832],[1106611200000,null],[1106697600000,9.82241],[1106784000000,9.80425],[1106870400000,9.8771],[1106956800000,9.84026],[1107043200000,9.84026],[1107129600000,9.82167]], 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, 8.530405],[1104883200000, 8.530405],[1104969600000, 10.182726],[1105056000000, 10.028355],[1105228800000, 10.028355],[1105401600000, 9.860223],[1105488000000, 9.915514],[1105574400000, 9.897015],[1105660800000, 10.008868],[1105747200000, 9.896455],[1105833600000, 9.896455],[1105920000000, 9.896455],[1106006400000, 9.896455],[1106092800000, 9.841187],[1106179200000, 9.822593],[1106265600000, 9.822593],[1106352000000, 9.768324],[1106438400000, 9.768324],[1106524800000, 9.768324],[1106697600000, 9.822407],[1106784000000, 9.804251],[1106870400000, 9.877095],[1106956800000, 9.840260],[1107043200000, 9.840260],[1107129600000, 9.821667]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });