$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1220227200000,10.1505],[1220313600000,10.0708],[1220400000000,10.0034],[1220486400000,9.95579],[1220572800000,9.97886],[1220659200000,9.81527],[1220745600000,9.81527],[1220832000000,9.81527],[1220918400000,9.79593],[1221004800000,9.7469],[1221091200000,9.70616],[1221177600000,9.59035],[1221264000000,9.68885],[1221350400000,9.68885],[1221436800000,9.68885],[1221523200000,9.74403],[1221609600000,9.81155],[1221696000000,9.77505],[1221782400000,9.94074],[1221868800000,9.74856],[1221955200000,9.74856],[1222041600000,9.74856],[1222128000000,9.98258],[1222214400000,10.1018],[1222300800000,10.0798],[1222387200000,10.0871],[1222473600000,10.0489],[1222560000000,10.0489],[1222646400000,10.0489],[1222732800000,9.84342]], 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, 10.150499],[1220227200000, 10.150499],[1220313600000, 10.070767],[1220400000000, 10.003417],[1220486400000, 9.955793],[1220572800000, 9.978862],[1220659200000, 9.815274],[1220745600000, 9.815274],[1220832000000, 9.815274],[1220918400000, 9.795928],[1221004800000, 9.746904],[1221091200000, 9.706155],[1221177600000, 9.590347],[1221264000000, 9.688846],[1221350400000, 9.688846],[1221436800000, 9.688846],[1221523200000, 9.744026],[1221609600000, 9.811546],[1221696000000, 9.775046],[1221782400000, 9.940745],[1221868800000, 9.748565],[1221955200000, 9.748565],[1222041600000, 9.748565],[1222128000000, 9.982576],[1222214400000, 10.101762],[1222300800000, 10.079750],[1222387200000, 10.087084],[1222473600000, 10.048927],[1222560000000, 10.048927],[1222646400000, 10.048927],[1222732800000, 9.843422]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });