$(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: 'Курс BYN, грн'}, 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: 'Курс BYN', data: [[1454284800000,0.00123],[1454371200000,0.00121],[1454457600000,0.0012],[1454544000000,0.00118],[1454630400000,0.00121],[1454716800000,0.0012],[1454803200000,0.0012],[1454889600000,0.0012],[1454976000000,0.00119],[1455062400000,0.00118],[1455148800000,0.00118],[1455235200000,0.00118],[1455321600000,0.00119],[1455408000000,0.00119],[1455494400000,0.00119],[1455580800000,0.00123],[1455667200000,0.00125],[1455753600000,0.00122],[1455840000000,0.00122],[1455926400000,0.00124],[1456012800000,0.00124],[1456099200000,0.00124],[1456185600000,0.00125],[1456272000000,0.00126],[1456358400000,0.00126],[1456444800000,0.00126],[1456531200000,0.00126],[1456617600000,0.00126],[1456704000000,0.00126]], 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: [[1454284800000, 0.001230],[1454284800000, 0.001230],[1454371200000, 0.001210],[1454457600000, 0.001200],[1454544000000, 0.001180],[1454630400000, 0.001210],[1454716800000, 0.001200],[1454803200000, 0.001200],[1454889600000, 0.001200],[1454976000000, 0.001190],[1455062400000, 0.001180],[1455148800000, 0.001180],[1455235200000, 0.001180],[1455321600000, 0.001190],[1455408000000, 0.001190],[1455494400000, 0.001190],[1455580800000, 0.001230],[1455667200000, 0.001250],[1455753600000, 0.001220],[1455840000000, 0.001220],[1455926400000, 0.001240],[1456012800000, 0.001240],[1456099200000, 0.001240],[1456185600000, 0.001250],[1456272000000, 0.001260],[1456358400000, 0.001260],[1456444800000, 0.001260],[1456531200000, 0.001260],[1456617600000, 0.001260],[1456704000000, 0.001260]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });