$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1488326400000,0.46864],[1488412800000,0.4656],[1488499200000,0.46384],[1488585600000,0.46035],[1488672000000,0.46035],[1488758400000,0.46035],[1488844800000,0.46319],[1488931200000,0.46272],[1489017600000,0.46272],[1489104000000,0.45738],[1489190400000,0.45274],[1489276800000,0.45274],[1489363200000,0.45274],[1489449600000,0.45482],[1489536000000,0.45636],[1489622400000,0.45474],[1489708800000,0.46321],[1489795200000,0.46448],[1489881600000,0.46448],[1489968000000,0.46448],[1490054400000,0.46937],[1490140800000,0.46916],[1490227200000,0.46707],[1490313600000,0.47038],[1490400000000,0.47235],[1490486400000,0.47235],[1490572800000,0.47235],[1490659200000,0.47618],[1490745600000,0.47633],[1490832000000,0.47419],[1490918400000,0.47849]], 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: [[1488326400000, 0.468640],[1488326400000, 0.468640],[1488412800000, 0.465600],[1488499200000, 0.463840],[1488585600000, 0.460350],[1488672000000, 0.460350],[1488758400000, 0.460350],[1488844800000, 0.463190],[1488931200000, 0.462720],[1489017600000, 0.462720],[1489104000000, 0.457380],[1489190400000, 0.452740],[1489276800000, 0.452740],[1489363200000, 0.452740],[1489449600000, 0.454820],[1489536000000, 0.456360],[1489622400000, 0.454740],[1489708800000, 0.463210],[1489795200000, 0.464480],[1489881600000, 0.464480],[1489968000000, 0.464480],[1490054400000, 0.469370],[1490140800000, 0.469160],[1490227200000, 0.467070],[1490313600000, 0.470380],[1490400000000, 0.472350],[1490486400000, 0.472350],[1490572800000, 0.472350],[1490659200000, 0.476180],[1490745600000, 0.476330],[1490832000000, 0.474190],[1490918400000, 0.478490]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });