$(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: [[1120262400000,0.0455153],[1120348800000,0.0455153],[1120435200000,0.0455153],[1120521600000,0.0453186],[1120608000000,0.0451541],[1120694400000,0.0452002],[1120780800000,0.0452652],[1120867200000,0.0449602],[1120953600000,0.0449602],[1121040000000,0.0449602],[1121126400000,0.0451565],[1121212800000,0.0454438],[1121299200000,0.045397],[1121385600000,0.045104],[1121472000000,0.0450898],[1121558400000,0.0450898],[1121644800000,0.0450898],[1121731200000,0.0450388],[1121817600000,0.0447791],[1121904000000,0.0446778],[1121990400000,0.0455176],[1122076800000,0.0454305],[1122163200000,0.0454305],[1122249600000,0.0454305],[1122336000000,0.0451755],[1122422400000,0.0449869],[1122508800000,0.0448781],[1122595200000,0.0449301],[1122681600000,0.0449339],[1122768000000,0.0449339]], 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: [[1120262400000, 0.045515],[1120262400000, 0.045515],[1120348800000, 0.045515],[1120435200000, 0.045515],[1120521600000, 0.045319],[1120608000000, 0.045154],[1120694400000, 0.045200],[1120780800000, 0.045265],[1120867200000, 0.044960],[1120953600000, 0.044960],[1121040000000, 0.044960],[1121126400000, 0.045157],[1121212800000, 0.045444],[1121299200000, 0.045397],[1121385600000, 0.045104],[1121472000000, 0.045090],[1121558400000, 0.045090],[1121644800000, 0.045090],[1121731200000, 0.045039],[1121817600000, 0.044779],[1121904000000, 0.044678],[1121990400000, 0.045518],[1122076800000, 0.045430],[1122163200000, 0.045430],[1122249600000, 0.045430],[1122336000000, 0.045176],[1122422400000, 0.044987],[1122508800000, 0.044878],[1122595200000, 0.044930],[1122681600000, 0.044934],[1122768000000, 0.044934]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });