$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1220227200000,4.10042],[1220313600000,4.09287],[1220400000000,4.08187],[1220486400000,3.99937],[1220572800000,3.97461],[1220659200000,3.91355],[1220745600000,3.91355],[1220832000000,3.91355],[1220918400000,3.97221],[1221004800000,3.96683],[1221091200000,3.911],[1221177600000,3.82204],[1221264000000,3.87664],[1221350400000,3.87664],[1221436800000,3.87664],[1221523200000,3.84307],[1221609600000,3.80216],[1221696000000,3.83217],[1221782400000,3.79453],[1221868800000,3.86235],[1221955200000,3.86235],[1222041600000,3.86235],[1222128000000,3.90565],[1222214400000,3.90929],[1222300800000,3.90862],[1222387200000,3.93151],[1222473600000,3.918],[1222560000000,3.918],[1222646400000,3.918],[1222732800000,3.86301]], 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, 4.100417],[1220227200000, 4.100417],[1220313600000, 4.092867],[1220400000000, 4.081868],[1220486400000, 3.999370],[1220572800000, 3.974612],[1220659200000, 3.913548],[1220745600000, 3.913548],[1220832000000, 3.913548],[1220918400000, 3.972207],[1221004800000, 3.966829],[1221091200000, 3.910996],[1221177600000, 3.822043],[1221264000000, 3.876639],[1221350400000, 3.876639],[1221436800000, 3.876639],[1221523200000, 3.843068],[1221609600000, 3.802156],[1221696000000, 3.832170],[1221782400000, 3.794534],[1221868800000, 3.862351],[1221955200000, 3.862351],[1222041600000, 3.862351],[1222128000000, 3.905650],[1222214400000, 3.909291],[1222300800000, 3.908621],[1222387200000, 3.931510],[1222473600000, 3.917997],[1222560000000, 3.917997],[1222646400000, 3.917997],[1222732800000, 3.863009]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });