$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1514764800000,0.084716],[1514851200000,0.084716],[1514937600000,0.084716],[1515024000000,0.083682],[1515110400000,0.084271],[1515196800000,0.085431],[1515283200000,0.085431],[1515369600000,0.085431],[1515456000000,0.085431],[1515542400000,0.085397],[1515628800000,0.085803],[1515715200000,0.08604],[1515801600000,0.086561],[1515888000000,0.086561],[1515974400000,0.086561],[1516060800000,0.086724],[1516147200000,0.087385],[1516233600000,0.087637],[1516320000000,0.088492],[1516406400000,0.088953],[1516492800000,0.088953],[1516579200000,0.088953],[1516665600000,0.088945],[1516752000000,0.089309],[1516838400000,0.089904],[1516924800000,0.089877],[1517011200000,0.089031],[1517097600000,0.089031],[1517184000000,0.089031],[1517270400000,0.087654],[1517356800000,0.086868]], 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: [[1514764800000, 0.084716],[1514764800000, 0.084716],[1514851200000, 0.084716],[1514937600000, 0.084716],[1515024000000, 0.083682],[1515110400000, 0.084271],[1515196800000, 0.085431],[1515283200000, 0.085431],[1515369600000, 0.085431],[1515456000000, 0.085431],[1515542400000, 0.085397],[1515628800000, 0.085803],[1515715200000, 0.086040],[1515801600000, 0.086561],[1515888000000, 0.086561],[1515974400000, 0.086561],[1516060800000, 0.086724],[1516147200000, 0.087385],[1516233600000, 0.087637],[1516320000000, 0.088492],[1516406400000, 0.088953],[1516492800000, 0.088953],[1516579200000, 0.088953],[1516665600000, 0.088945],[1516752000000, 0.089309],[1516838400000, 0.089904],[1516924800000, 0.089877],[1517011200000, 0.089031],[1517097600000, 0.089031],[1517184000000, 0.089031],[1517270400000, 0.087654],[1517356800000, 0.086868]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });