$(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: [[1220227200000,5.95795],[1220313600000,5.95455],[1220400000000,5.95543],[1220486400000,5.95543],[1220572800000,5.9564],[1220659200000,5.94898],[1220745600000,5.94898],[1220832000000,5.94898],[1220918400000,5.95446],[1221004800000,5.94826],[1221091200000,5.94936],[1221177600000,5.94717],[1221264000000,5.94972],[1221350400000,5.94972],[1221436800000,5.94972],[1221523200000,5.97647],[1221609600000,5.96031],[1221696000000,5.95958],[1221782400000,5.96985],[1221868800000,5.96459],[1221955200000,5.96459],[1222041600000,5.96459],[1222128000000,5.98015],[1222214400000,6.01176],[1222300800000,6.01646],[1222387200000,6.02217],[1222473600000,6.02441],[1222560000000,6.02441],[1222646400000,6.02441],[1222732800000,6.02429]], 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: [[1220227200000, 5.957954],[1220227200000, 5.957954],[1220313600000, 5.954545],[1220400000000, 5.955427],[1220486400000, 5.955433],[1220572800000, 5.956404],[1220659200000, 5.948982],[1220745600000, 5.948982],[1220832000000, 5.948982],[1220918400000, 5.954462],[1221004800000, 5.948259],[1221091200000, 5.949356],[1221177600000, 5.947175],[1221264000000, 5.949724],[1221350400000, 5.949724],[1221436800000, 5.949724],[1221523200000, 5.976472],[1221609600000, 5.960315],[1221696000000, 5.959582],[1221782400000, 5.969850],[1221868800000, 5.964589],[1221955200000, 5.964589],[1222041600000, 5.964589],[1222128000000, 5.980150],[1222214400000, 6.011763],[1222300800000, 6.016464],[1222387200000, 6.022173],[1222473600000, 6.024414],[1222560000000, 6.024414],[1222646400000, 6.024414],[1222732800000, 6.024290]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });