$(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: [[1454284800000,0.089434],[1454371200000,0.088816],[1454457600000,0.090648],[1454544000000,0.090472],[1454630400000,0.09345],[1454716800000,0.093653],[1454803200000,0.093653],[1454889600000,0.093653],[1454976000000,0.09246],[1455062400000,0.093568],[1455148800000,0.09371],[1455235200000,0.094869],[1455321600000,0.095061],[1455408000000,0.095061],[1455494400000,0.095061],[1455580800000,0.096956],[1455667200000,0.097089],[1455753600000,0.096014],[1455840000000,0.094771],[1455926400000,0.096403],[1456012800000,0.096403],[1456099200000,0.096403],[1456185600000,0.096759],[1456272000000,0.097398],[1456358400000,0.096245],[1456444800000,0.096658],[1456531200000,0.095891],[1456617600000,0.095891],[1456704000000,0.095891]], 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.089434],[1454284800000, 0.089434],[1454371200000, 0.088816],[1454457600000, 0.090648],[1454544000000, 0.090472],[1454630400000, 0.093450],[1454716800000, 0.093653],[1454803200000, 0.093653],[1454889600000, 0.093653],[1454976000000, 0.092460],[1455062400000, 0.093568],[1455148800000, 0.093710],[1455235200000, 0.094869],[1455321600000, 0.095061],[1455408000000, 0.095061],[1455494400000, 0.095061],[1455580800000, 0.096956],[1455667200000, 0.097089],[1455753600000, 0.096014],[1455840000000, 0.094771],[1455926400000, 0.096403],[1456012800000, 0.096403],[1456099200000, 0.096403],[1456185600000, 0.096759],[1456272000000, 0.097398],[1456358400000, 0.096245],[1456444800000, 0.096658],[1456531200000, 0.095891],[1456617600000, 0.095891],[1456704000000, 0.095891]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });