$(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: [[1301616000000,5.15276],[1301702400000,5.17148],[1301788800000,5.17148],[1301875200000,5.17148],[1301961600000,5.1897],[1302048000000,5.19442],[1302134400000,5.23367],[1302220800000,5.26179],[1302307200000,5.29888],[1302393600000,5.29888],[1302480000000,5.29888],[1302566400000,5.25964],[1302652800000,5.25519],[1302739200000,5.26888],[1302825600000,5.22785],[1302912000000,5.24923],[1302998400000,5.24923],[1303084800000,5.24923],[1303171200000,5.22124],[1303257600000,5.19334],[1303344000000,5.24201],[1303430400000,5.25597],[1303516800000,5.25597],[1303603200000,5.25597],[1303689600000,5.25597],[1303776000000,5.25597],[1303862400000,5.22366],[1303948800000,5.2325],[1304035200000,5.24037],[1304121600000,5.242]], 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: [[1301616000000, 5.152764],[1301616000000, 5.152764],[1301702400000, 5.171477],[1301788800000, 5.171477],[1301875200000, 5.171477],[1301961600000, 5.189700],[1302048000000, 5.194417],[1302134400000, 5.233674],[1302220800000, 5.261786],[1302307200000, 5.298884],[1302393600000, 5.298884],[1302480000000, 5.298884],[1302566400000, 5.259643],[1302652800000, 5.255186],[1302739200000, 5.268878],[1302825600000, 5.227851],[1302912000000, 5.249227],[1302998400000, 5.249227],[1303084800000, 5.249227],[1303171200000, 5.221238],[1303257600000, 5.193342],[1303344000000, 5.242010],[1303430400000, 5.255967],[1303516800000, 5.255967],[1303603200000, 5.255967],[1303689600000, 5.255967],[1303776000000, 5.255967],[1303862400000, 5.223664],[1303948800000, 5.232500],[1304035200000, 5.240367],[1304121600000, 5.242000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });