$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1149120000000,6.49834],[1149206400000,6.43168],[1149292800000,6.47157],[1149379200000,6.47157],[1149465600000,6.47157],[1149552000000,6.54379],[1149638400000,6.48773],[1149724800000,6.45845],[1149811200000,6.43117],[1149897600000,6.39279],[1149984000000,6.39279],[1150070400000,6.39279],[1150156800000,6.39279],[1150243200000,6.34835],[1150329600000,6.34431],[1150416000000,6.36805],[1150502400000,6.38875],[1150588800000,6.38875],[1150675200000,6.38875],[1150761600000,6.35846],[1150848000000,6.33573],[1150934400000,6.37916],[1151020800000,6.35391],[1151107200000,6.31351],[1151193600000,6.31351],[1151280000000,6.31351],[1151366400000,6.3433],[1151452800000,6.34633],[1151539200000,6.34633],[1151625600000,6.32714]], 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, 6.498340],[1149120000000, 6.498340],[1149206400000, 6.431680],[1149292800000, 6.471575],[1149379200000, 6.471575],[1149465600000, 6.471575],[1149552000000, 6.543790],[1149638400000, 6.487735],[1149724800000, 6.458445],[1149811200000, 6.431175],[1149897600000, 6.392795],[1149984000000, 6.392795],[1150070400000, 6.392795],[1150156800000, 6.392795],[1150243200000, 6.348355],[1150329600000, 6.344315],[1150416000000, 6.368050],[1150502400000, 6.388755],[1150588800000, 6.388755],[1150675200000, 6.388755],[1150761600000, 6.358455],[1150848000000, 6.335730],[1150934400000, 6.379160],[1151020800000, 6.353910],[1151107200000, 6.313510],[1151193600000, 6.313510],[1151280000000, 6.313510],[1151366400000, 6.343305],[1151452800000, 6.346335],[1151539200000, 6.346335],[1151625600000, 6.327145]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });