$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1146441600000,0.0441844],[1146528000000,0.0441844],[1146614400000,0.0441844],[1146700800000,0.0444561],[1146787200000,0.0442763],[1146873600000,0.0443391],[1146960000000,0.0443391],[1147046400000,0.0443391],[1147132800000,0.0443391],[1147219200000,0.0443391],[1147305600000,0.0456813],[1147392000000,0.0454111],[1147478400000,0.0460693],[1147564800000,0.0460693],[1147651200000,0.0460693],[1147737600000,0.0458331],[1147824000000,0.0457977],[1147910400000,0.046177],[1147996800000,0.0454336],[1148083200000,0.0452],[1148169600000,0.0452],[1148256000000,0.0452],[1148342400000,0.0448643],[1148428800000,0.0453349],[1148515200000,0.0451116],[1148601600000,0.0450187],[1148688000000,0.0450347],[1148774400000,0.0450347],[1148860800000,0.0450347],[1148947200000,0.0449821],[1149033600000,0.04501]], 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: [[1146441600000, 0.044184],[1146441600000, 0.044184],[1146528000000, 0.044184],[1146614400000, 0.044184],[1146700800000, 0.044456],[1146787200000, 0.044276],[1146873600000, 0.044339],[1146960000000, 0.044339],[1147046400000, 0.044339],[1147132800000, 0.044339],[1147219200000, 0.044339],[1147305600000, 0.045681],[1147392000000, 0.045411],[1147478400000, 0.046069],[1147564800000, 0.046069],[1147651200000, 0.046069],[1147737600000, 0.045833],[1147824000000, 0.045798],[1147910400000, 0.046177],[1147996800000, 0.045434],[1148083200000, 0.045200],[1148169600000, 0.045200],[1148256000000, 0.045200],[1148342400000, 0.044864],[1148428800000, 0.045335],[1148515200000, 0.045112],[1148601600000, 0.045019],[1148688000000, 0.045035],[1148774400000, 0.045035],[1148860800000, 0.045035],[1148947200000, 0.044982],[1149033600000, 0.045010]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });