$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1128124800000,0.0243628],[1128211200000,0.0243628],[1128297600000,0.0243628],[1128384000000,0.0240422],[1128470400000,0.0240676],[1128556800000,0.0241958],[1128643200000,0.0241939],[1128729600000,0.0244712],[1128816000000,0.0244712],[1128902400000,0.0244712],[1128988800000,0.024337],[1129075200000,0.0242883],[1129161600000,0.0242222],[1129248000000,0.0239486],[1129334400000,0.0239052],[1129420800000,0.0239052],[1129507200000,0.0239052],[1129593600000,0.0241156],[1129680000000,0.0238882],[1129766400000,0.0238132],[1129852800000,0.0238108],[1129939200000,0.0238671],[1130025600000,0.0238671],[1130112000000,0.0238671],[1130198400000,0.0237975],[1130284800000,0.0239761],[1130371200000,0.0241085],[1130457600000,0.0242667],[1130544000000,0.0243861],[1130630400000,0.0243861],[1130716800000,0.0243861]], 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: [[1128124800000, 0.024363],[1128124800000, 0.024363],[1128211200000, 0.024363],[1128297600000, 0.024363],[1128384000000, 0.024042],[1128470400000, 0.024068],[1128556800000, 0.024196],[1128643200000, 0.024194],[1128729600000, 0.024471],[1128816000000, 0.024471],[1128902400000, 0.024471],[1128988800000, 0.024337],[1129075200000, 0.024288],[1129161600000, 0.024222],[1129248000000, 0.023949],[1129334400000, 0.023905],[1129420800000, 0.023905],[1129507200000, 0.023905],[1129593600000, 0.024116],[1129680000000, 0.023888],[1129766400000, 0.023813],[1129852800000, 0.023811],[1129939200000, 0.023867],[1130025600000, 0.023867],[1130112000000, 0.023867],[1130198400000, 0.023797],[1130284800000, 0.023976],[1130371200000, 0.024109],[1130457600000, 0.024267],[1130544000000, 0.024386],[1130630400000, 0.024386],[1130716800000, 0.024386]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });