$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1456790400000,1.09032],[1456876800000,1.08838],[1456963200000,1.07616],[1457049600000,1.05612],[1457136000000,1.07426],[1457222400000,1.07426],[1457308800000,1.07426],[1457395200000,1.07426],[1457481600000,1.07426],[1457568000000,1.06224],[1457654400000,1.02475],[1457740800000,1.05925],[1457827200000,1.06641],[1457913600000,1.06641],[1458000000000,1.09001],[1458086400000,1.10443],[1458172800000,1.098],[1458259200000,1.11671],[1458345600000,1.09485],[1458432000000,1.09485],[1458518400000,1.09485],[1458604800000,1.10899],[1458691200000,1.08245],[1458777600000,1.07484],[1458864000000,1.08194],[1458950400000,1.07445],[1459036800000,1.07445],[1459123200000,1.07445],[1459209600000,1.08309],[1459296000000,1.09319],[1459382400000,1.09656]], 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: [[1456790400000, 1.090321],[1456790400000, 1.090321],[1456876800000, 1.088375],[1456963200000, 1.076158],[1457049600000, 1.056121],[1457136000000, 1.074261],[1457222400000, 1.074261],[1457308800000, 1.074261],[1457395200000, 1.074261],[1457481600000, 1.074261],[1457568000000, 1.062238],[1457654400000, 1.024751],[1457740800000, 1.059251],[1457827200000, 1.066415],[1457913600000, 1.066415],[1458000000000, 1.090009],[1458086400000, 1.104427],[1458172800000, 1.098002],[1458259200000, 1.116711],[1458345600000, 1.094854],[1458432000000, 1.094854],[1458518400000, 1.094854],[1458604800000, 1.108993],[1458691200000, 1.082447],[1458777600000, 1.074836],[1458864000000, 1.081941],[1458950400000, 1.074448],[1459036800000, 1.074448],[1459123200000, 1.074448],[1459209600000, 1.083095],[1459296000000, 1.093193],[1459382400000, 1.096559]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });