$(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: [[1246406400000,4.99634],[1246492800000,4.99496],[1246579200000,4.99381],[1246665600000,4.98122],[1246752000000,4.98122],[1246838400000,4.98122],[1246924800000,4.92763],[1247011200000,4.95369],[1247097600000,4.90164],[1247184000000,4.93121],[1247270400000,4.89863],[1247356800000,4.89863],[1247443200000,4.89863],[1247529600000,4.90996],[1247616000000,4.95362],[1247702400000,4.97177],[1247788800000,5.00511],[1247875200000,5.00858],[1247961600000,5.00858],[1248048000000,5.00858],[1248134400000,5.07234],[1248220800000,5.10084],[1248307200000,5.1183],[1248393600000,5.1481],[1248480000000,5.16899],[1248566400000,5.16899],[1248652800000,5.16899],[1248739200000,5.19601],[1248825600000,5.21258],[1248912000000,5.17763],[1248998400000,5.18575]], 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: [[1246406400000, 4.996337],[1246406400000, 4.996337],[1246492800000, 4.994962],[1246579200000, 4.993805],[1246665600000, 4.981217],[1246752000000, 4.981217],[1246838400000, 4.981217],[1246924800000, 4.927628],[1247011200000, 4.953687],[1247097600000, 4.901641],[1247184000000, 4.931208],[1247270400000, 4.898631],[1247356800000, 4.898631],[1247443200000, 4.898631],[1247529600000, 4.909958],[1247616000000, 4.953619],[1247702400000, 4.971772],[1247788800000, 5.005112],[1247875200000, 5.008578],[1247961600000, 5.008578],[1248048000000, 5.008578],[1248134400000, 5.072336],[1248220800000, 5.100837],[1248307200000, 5.118298],[1248393600000, 5.148103],[1248480000000, 5.168986],[1248566400000, 5.168986],[1248652800000, 5.168986],[1248739200000, 5.196005],[1248825600000, 5.212578],[1248912000000, 5.177631],[1248998400000, 5.185753]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });