$(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: [[1391212800000,3.51419],[1391299200000,3.51419],[1391385600000,3.51419],[1391472000000,3.53354],[1391558400000,3.55323],[1391644800000,3.56987],[1391731200000,3.91154],[1391817600000,3.838],[1391904000000,3.838],[1391990400000,3.838],[1392076800000,3.85602],[1392163200000,3.88813],[1392249600000,3.89851],[1392336000000,3.91247],[1392422400000,3.95285],[1392508800000,3.95285],[1392595200000,3.95285],[1392681600000,3.96674],[1392768000000,3.98489],[1392854400000,4.01145],[1392940800000,3.99886],[1393027200000,4.07061],[1393113600000,4.07061],[1393200000000,4.07061],[1393286400000,4.14536],[1393372800000,4.26941],[1393459200000,4.28885],[1393545600000,4.49127]], 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: [[1391212800000, 3.514195],[1391212800000, 3.514195],[1391299200000, 3.514195],[1391385600000, 3.514195],[1391472000000, 3.533538],[1391558400000, 3.553233],[1391644800000, 3.569871],[1391731200000, 3.911542],[1391817600000, 3.838001],[1391904000000, 3.838001],[1391990400000, 3.838001],[1392076800000, 3.856023],[1392163200000, 3.888129],[1392249600000, 3.898510],[1392336000000, 3.912472],[1392422400000, 3.952851],[1392508800000, 3.952851],[1392595200000, 3.952851],[1392681600000, 3.966736],[1392768000000, 3.984894],[1392854400000, 4.011447],[1392940800000, 3.998865],[1393027200000, 4.070611],[1393113600000, 4.070611],[1393200000000, 4.070611],[1393286400000, 4.145360],[1393372800000, 4.269406],[1393459200000, 4.288851],[1393545600000, 4.491270]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });