$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1254355200000,5.39259],[1254441600000,5.35369],[1254528000000,5.33988],[1254614400000,5.33988],[1254700800000,5.33988],[1254787200000,5.39016],[1254873600000,5.45562],[1254960000000,5.44273],[1255046400000,5.47969],[1255132800000,5.46574],[1255219200000,5.46574],[1255305600000,5.46574],[1255392000000,5.47662],[1255478400000,5.49419],[1255564800000,5.52391],[1255651200000,5.51184],[1255737600000,5.44404],[1255824000000,5.44404],[1255910400000,5.44404],[1255996800000,5.46676],[1256083200000,5.49104],[1256169600000,5.45005],[1256256000000,5.44805],[1256342400000,5.44782],[1256428800000,5.44782],[1256515200000,5.44782],[1256601600000,5.41168],[1256688000000,5.36799],[1256774400000,5.33539],[1256860800000,5.34224],[1256947200000,5.35036]], 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: [[1254355200000, 5.392591],[1254355200000, 5.392591],[1254441600000, 5.353694],[1254528000000, 5.339878],[1254614400000, 5.339878],[1254700800000, 5.339878],[1254787200000, 5.390155],[1254873600000, 5.455620],[1254960000000, 5.442726],[1255046400000, 5.479686],[1255132800000, 5.465743],[1255219200000, 5.465743],[1255305600000, 5.465743],[1255392000000, 5.476622],[1255478400000, 5.494190],[1255564800000, 5.523913],[1255651200000, 5.511836],[1255737600000, 5.444043],[1255824000000, 5.444043],[1255910400000, 5.444043],[1255996800000, 5.466755],[1256083200000, 5.491041],[1256169600000, 5.450055],[1256256000000, 5.448049],[1256342400000, 5.447824],[1256428800000, 5.447824],[1256515200000, 5.447824],[1256601600000, 5.411684],[1256688000000, 5.367994],[1256774400000, 5.335393],[1256860800000, 5.342244],[1256947200000, 5.350357]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });