$(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: [[1264982400000,5.37268],[1265068800000,5.36487],[1265155200000,5.38135],[1265241600000,5.39457],[1265328000000,5.34327],[1265414400000,5.26983],[1265500800000,5.26983],[1265587200000,5.26983],[1265673600000,5.2516],[1265760000000,5.29846],[1265846400000,5.29351],[1265932800000,5.29344],[1266019200000,5.26747],[1266105600000,5.26747],[1266192000000,5.26747],[1266278400000,5.28277],[1266364800000,5.28959],[1266451200000,5.31506],[1266537600000,5.26011],[1266624000000,5.24471],[1266710400000,5.24471],[1266796800000,5.24471],[1266883200000,5.26453],[1266969600000,5.20314],[1267056000000,5.16464],[1267142400000,5.15828],[1267228800000,5.15913],[1267315200000,5.15913]], 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: [[1264982400000, 5.372675],[1264982400000, 5.372675],[1265068800000, 5.364872],[1265155200000, 5.381350],[1265241600000, 5.394570],[1265328000000, 5.343266],[1265414400000, 5.269833],[1265500800000, 5.269833],[1265587200000, 5.269833],[1265673600000, 5.251604],[1265760000000, 5.298460],[1265846400000, 5.293512],[1265932800000, 5.293438],[1266019200000, 5.267468],[1266105600000, 5.267468],[1266192000000, 5.267468],[1266278400000, 5.282772],[1266364800000, 5.289591],[1266451200000, 5.315056],[1266537600000, 5.260114],[1266624000000, 5.244711],[1266710400000, 5.244711],[1266796800000, 5.244711],[1266883200000, 5.264534],[1266969600000, 5.203138],[1267056000000, 5.164640],[1267142400000, 5.158280],[1267228800000, 5.159131],[1267315200000, 5.159131]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });