$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1193875200000,5.94677],[1193961600000,5.94747],[1194048000000,5.94888],[1194134400000,5.94888],[1194220800000,5.94888],[1194307200000,5.94958],[1194393600000,5.94958],[1194480000000,5.95028],[1194566400000,5.95168],[1194652800000,5.95238],[1194739200000,5.95238],[1194825600000,5.95238],[1194912000000,5.95308],[1194998400000,5.95308],[1195084800000,5.95449],[1195171200000,5.95519],[1195257600000,5.95589],[1195344000000,5.95589],[1195430400000,5.95589],[1195516800000,5.95659],[1195603200000,5.9573],[1195689600000,5.9573],[1195776000000,5.9573],[1195862400000,5.9573],[1195948800000,5.9573],[1196035200000,5.9573],[1196121600000,5.9587],[1196208000000,5.95941],[1196294400000,5.96011],[1196380800000,5.96081]], 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: [[1193875200000, 5.946773],[1193875200000, 5.946773],[1193961600000, 5.947474],[1194048000000, 5.948875],[1194134400000, 5.948875],[1194220800000, 5.948875],[1194307200000, 5.949576],[1194393600000, 5.949576],[1194480000000, 5.950277],[1194566400000, 5.951679],[1194652800000, 5.952381],[1194739200000, 5.952381],[1194825600000, 5.952381],[1194912000000, 5.953083],[1194998400000, 5.953083],[1195084800000, 5.954486],[1195171200000, 5.955189],[1195257600000, 5.955891],[1195344000000, 5.955891],[1195430400000, 5.955891],[1195516800000, 5.956594],[1195603200000, 5.957296],[1195689600000, 5.957296],[1195776000000, 5.957296],[1195862400000, 5.957296],[1195948800000, 5.957296],[1196035200000, 5.957296],[1196121600000, 5.958702],[1196208000000, 5.959405],[1196294400000, 5.960109],[1196380800000, 5.960812]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });