$(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: [[1443657600000,1.05905],[1443744000000,1.05307],[1443830400000,1.05425],[1443916800000,1.05425],[1444003200000,1.05425],[1444089600000,1.05523],[1444176000000,1.05756],[1444262400000,1.05876],[1444348800000,1.06173],[1444435200000,1.07626],[1444521600000,1.07626],[1444608000000,1.07626],[1444694400000,1.09779],[1444780800000,1.10929],[1444867200000,1.10929],[1444953600000,1.10396],[1445040000000,1.08246],[1445126400000,1.08246],[1445212800000,1.08246],[1445299200000,1.0983],[1445385600000,1.11699],[1445472000000,1.14427],[1445558400000,1.12253],[1445644800000,1.1342],[1445731200000,1.1342],[1445817600000,1.1342],[1445904000000,1.14799],[1445990400000,1.14351],[1446076800000,1.1449],[1446163200000,1.14624],[1446249600000,1.14774]], 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: [[1443657600000, 1.059047],[1443657600000, 1.059047],[1443744000000, 1.053074],[1443830400000, 1.054246],[1443916800000, 1.054246],[1444003200000, 1.054246],[1444089600000, 1.055226],[1444176000000, 1.057555],[1444262400000, 1.058760],[1444348800000, 1.061732],[1444435200000, 1.076263],[1444521600000, 1.076263],[1444608000000, 1.076263],[1444694400000, 1.097792],[1444780800000, 1.109285],[1444867200000, 1.109285],[1444953600000, 1.103961],[1445040000000, 1.082459],[1445126400000, 1.082459],[1445212800000, 1.082459],[1445299200000, 1.098296],[1445385600000, 1.116989],[1445472000000, 1.144275],[1445558400000, 1.122527],[1445644800000, 1.134195],[1445731200000, 1.134195],[1445817600000, 1.134195],[1445904000000, 1.147993],[1445990400000, 1.143506],[1446076800000, 1.144903],[1446163200000, 1.146237],[1446249600000, 1.147741]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });