$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1435708800000,21.0052],[1435795200000,21.0064],[1435881600000,21.0116],[1435968000000,21.0182],[1436054400000,21.0182],[1436140800000,21.0182],[1436227200000,21.2659],[1436313600000,21.7004],[1436400000000,21.9718],[1436486400000,21.8482],[1436572800000,21.9165],[1436659200000,21.9165],[1436745600000,21.9165],[1436832000000,21.9638],[1436918400000,21.9953],[1437004800000,22.1073],[1437091200000,21.9867],[1437177600000,22.0149],[1437264000000,22.0149],[1437350400000,22.0149],[1437436800000,22.0321],[1437523200000,22.0215],[1437609600000,22.0121],[1437696000000,22.0157],[1437782400000,22.0735],[1437868800000,22.0735],[1437955200000,22.0735],[1438041600000,22.0735],[1438128000000,22.0396],[1438214400000,22.0736],[1438300800000,21.6118]], 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: [[1435708800000, 21.005219],[1435708800000, 21.005219],[1435795200000, 21.006373],[1435881600000, 21.011609],[1435968000000, 21.018248],[1436054400000, 21.018248],[1436140800000, 21.018248],[1436227200000, 21.265897],[1436313600000, 21.700382],[1436400000000, 21.971761],[1436486400000, 21.848173],[1436572800000, 21.916483],[1436659200000, 21.916483],[1436745600000, 21.916483],[1436832000000, 21.963753],[1436918400000, 21.995345],[1437004800000, 22.107282],[1437091200000, 21.986687],[1437177600000, 22.014924],[1437264000000, 22.014924],[1437350400000, 22.014924],[1437436800000, 22.032134],[1437523200000, 22.021461],[1437609600000, 22.012094],[1437696000000, 22.015695],[1437782400000, 22.073520],[1437868800000, 22.073520],[1437955200000, 22.073520],[1438041600000, 22.073520],[1438128000000, 22.039591],[1438214400000, 22.073558],[1438300800000, 21.611775]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });