$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1220227200000,0.898958],[1220313600000,0.88991],[1220400000000,0.879336],[1220486400000,0.87441],[1220572800000,0.87598],[1220659200000,0.863166],[1220745600000,0.863166],[1220832000000,0.863166],[1220918400000,0.862189],[1221004800000,0.854204],[1221091200000,0.848385],[1221177600000,0.835025],[1221264000000,0.840858],[1221350400000,0.840858],[1221436800000,0.840858],[1221523200000,0.839013],[1221609600000,0.839324],[1221696000000,0.832353],[1221782400000,0.84414],[1221868800000,0.836266],[1221955200000,0.836266],[1222041600000,0.836266],[1222128000000,0.86534],[1222214400000,0.870608],[1222300800000,0.864449],[1222387200000,0.864067],[1222473600000,0.860746],[1222560000000,0.860746],[1222646400000,0.860746],[1222732800000,0.839558]], 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, 0.898958],[1220227200000, 0.898958],[1220313600000, 0.889910],[1220400000000, 0.879336],[1220486400000, 0.874410],[1220572800000, 0.875980],[1220659200000, 0.863166],[1220745600000, 0.863166],[1220832000000, 0.863166],[1220918400000, 0.862189],[1221004800000, 0.854204],[1221091200000, 0.848385],[1221177600000, 0.835025],[1221264000000, 0.840858],[1221350400000, 0.840858],[1221436800000, 0.840858],[1221523200000, 0.839013],[1221609600000, 0.839324],[1221696000000, 0.832353],[1221782400000, 0.844140],[1221868800000, 0.836266],[1221955200000, 0.836266],[1222041600000, 0.836266],[1222128000000, 0.865340],[1222214400000, 0.870608],[1222300800000, 0.864449],[1222387200000, 0.864067],[1222473600000, 0.860746],[1222560000000, 0.860746],[1222646400000, 0.860746],[1222732800000, 0.839558]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });