$(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: [[1283299200000,5.162],[1283385600000,5.1805],[1283472000000,5.21771],[1283558400000,5.25059],[1283644800000,5.25059],[1283731200000,5.25059],[1283817600000,5.26287],[1283904000000,5.23081],[1283990400000,5.20639],[1284076800000,5.22895],[1284163200000,5.25109],[1284249600000,5.25109],[1284336000000,5.25109],[1284422400000,5.28245],[1284508800000,5.2736],[1284595200000,5.30274],[1284681600000,5.29783],[1284768000000,5.27516],[1284854400000,5.27516],[1284940800000,5.27516],[1285027200000,5.29269],[1285113600000,5.30237],[1285200000000,5.33186],[1285286400000,5.31028],[1285372800000,5.3307],[1285459200000,5.3307],[1285545600000,5.3307],[1285632000000,5.36578],[1285718400000,5.37144],[1285804800000,5.43527]], 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: [[1283299200000, 5.161996],[1283299200000, 5.161996],[1283385600000, 5.180502],[1283472000000, 5.217710],[1283558400000, 5.250587],[1283644800000, 5.250587],[1283731200000, 5.250587],[1283817600000, 5.262867],[1283904000000, 5.230814],[1283990400000, 5.206389],[1284076800000, 5.228953],[1284163200000, 5.251088],[1284249600000, 5.251088],[1284336000000, 5.251088],[1284422400000, 5.282450],[1284508800000, 5.273602],[1284595200000, 5.302737],[1284681600000, 5.297831],[1284768000000, 5.275158],[1284854400000, 5.275158],[1284940800000, 5.275158],[1285027200000, 5.292691],[1285113600000, 5.302368],[1285200000000, 5.331865],[1285286400000, 5.310283],[1285372800000, 5.330697],[1285459200000, 5.330697],[1285545600000, 5.330697],[1285632000000, 5.365780],[1285718400000, 5.371443],[1285804800000, 5.435265]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });