$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1454284800000,1.24032],[1454371200000,1.24045],[1454457600000,1.27016],[1454544000000,1.26805],[1454630400000,1.27875],[1454716800000,1.27787],[1454803200000,1.27787],[1454889600000,1.27787],[1454976000000,1.2777],[1455062400000,1.2848],[1455148800000,1.29193],[1455235200000,1.30917],[1455321600000,1.31454],[1455408000000,1.31454],[1455494400000,1.31454],[1455580800000,1.35043],[1455667200000,1.35903],[1455753600000,1.34172],[1455840000000,1.32478],[1455926400000,1.33898],[1456012800000,1.33898],[1456099200000,1.33898],[1456185600000,1.34274],[1456272000000,1.35482],[1456358400000,1.35586],[1456444800000,1.3588],[1456531200000,1.34963],[1456617600000,1.34963],[1456704000000,1.34963]], 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, 1.240325],[1454284800000, 1.240325],[1454371200000, 1.240452],[1454457600000, 1.270159],[1454544000000, 1.268047],[1454630400000, 1.278745],[1454716800000, 1.277868],[1454803200000, 1.277868],[1454889600000, 1.277868],[1454976000000, 1.277701],[1455062400000, 1.284803],[1455148800000, 1.291930],[1455235200000, 1.309171],[1455321600000, 1.314536],[1455408000000, 1.314536],[1455494400000, 1.314536],[1455580800000, 1.350431],[1455667200000, 1.359035],[1455753600000, 1.341720],[1455840000000, 1.324775],[1455926400000, 1.338979],[1456012800000, 1.338979],[1456099200000, 1.338979],[1456185600000, 1.342743],[1456272000000, 1.354824],[1456358400000, 1.355861],[1456444800000, 1.358804],[1456531200000, 1.349629],[1456617600000, 1.349629],[1456704000000, 1.349629]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });