$(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: [[1149120000000,3.24285],[1149206400000,3.22957],[1149292800000,3.28423],[1149379200000,3.28423],[1149465600000,3.28423],[1149552000000,3.19833],[1149638400000,3.23175],[1149724800000,3.22761],[1149811200000,3.24807],[1149897600000,3.27853],[1149984000000,3.27853],[1150070400000,3.27853],[1150156800000,3.27853],[1150243200000,3.13344],[1150329600000,3.15245],[1150416000000,3.17529],[1150502400000,3.17138],[1150588800000,3.17138],[1150675200000,3.17138],[1150761600000,3.14541],[1150848000000,3.11921],[1150934400000,3.02689],[1151020800000,2.98825],[1151107200000,2.95923],[1151193600000,2.95923],[1151280000000,2.95923],[1151366400000,3.04893],[1151452800000,3.07686],[1151539200000,3.07686],[1151625600000,3.14549]], 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: [[1149120000000, 3.242846],[1149120000000, 3.242846],[1149206400000, 3.229566],[1149292800000, 3.284230],[1149379200000, 3.284230],[1149465600000, 3.284230],[1149552000000, 3.198333],[1149638400000, 3.231748],[1149724800000, 3.227609],[1149811200000, 3.248068],[1149897600000, 3.278525],[1149984000000, 3.278525],[1150070400000, 3.278525],[1150156800000, 3.278525],[1150243200000, 3.133443],[1150329600000, 3.152455],[1150416000000, 3.175293],[1150502400000, 3.171385],[1150588800000, 3.171385],[1150675200000, 3.171385],[1150761600000, 3.145414],[1150848000000, 3.119205],[1150934400000, 3.026885],[1151020800000, 2.988247],[1151107200000, 2.959227],[1151193600000, 2.959227],[1151280000000, 2.959227],[1151366400000, 3.048933],[1151452800000, 3.076862],[1151539200000, 3.076862],[1151625600000, 3.145486]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });