$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1456790400000,29.5008],[1456876800000,29.4471],[1456963200000,29.1058],[1457049600000,28.5755],[1457136000000,29.0674],[1457222400000,29.0674],[1457308800000,29.0674],[1457395200000,29.0674],[1457481600000,29.0674],[1457568000000,28.7303],[1457654400000,27.7062],[1457740800000,28.6623],[1457827200000,28.8561],[1457913600000,28.8561],[1458000000000,29.4847],[1458086400000,29.867],[1458172800000,29.701],[1458259200000,30.2003],[1458345600000,29.5994],[1458432000000,29.5994],[1458518400000,29.5994],[1458604800000,29.9816],[1458691200000,29.2661],[1458777600000,29.0614],[1458864000000,29.2817],[1458950400000,29.0788],[1459036800000,29.0788],[1459123200000,29.0788],[1459209600000,29.3129],[1459296000000,29.596],[1459382400000,29.6893]], 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, 29.500820],[1456790400000, 29.500820],[1456876800000, 29.447061],[1456963200000, 29.105763],[1457049600000, 28.575468],[1457136000000, 29.067352],[1457222400000, 29.067352],[1457308800000, 29.067352],[1457395200000, 29.067352],[1457481600000, 29.067352],[1457568000000, 28.730338],[1457654400000, 27.706188],[1457740800000, 28.662270],[1457827200000, 28.856137],[1457913600000, 28.856137],[1458000000000, 29.484736],[1458086400000, 29.867012],[1458172800000, 29.700966],[1458259200000, 30.200342],[1458345600000, 29.599369],[1458432000000, 29.599369],[1458518400000, 29.599369],[1458604800000, 29.981633],[1458691200000, 29.266108],[1458777600000, 29.061429],[1458864000000, 29.281658],[1458950400000, 29.078848],[1459036800000, 29.078848],[1459123200000, 29.078848],[1459209600000, 29.312873],[1459296000000, 29.596009],[1459382400000, 29.689327]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });