$(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: [[1141171200000,5.99688],[1141257600000,6.03677],[1141344000000,6.02011],[1141430400000,6.0701],[1141516800000,6.0701],[1141603200000,6.0701],[1141689600000,6.06858],[1141776000000,6.01607],[1141862400000,6.01607],[1141948800000,6.0196],[1142035200000,6.0191],[1142121600000,6.0191],[1142208000000,6.0191],[1142294400000,6.02061],[1142380800000,6.03374],[1142467200000,6.07313],[1142553600000,6.09485],[1142640000000,6.15343],[1142726400000,6.15343],[1142812800000,6.15343],[1142899200000,6.14787],[1142985600000,6.13272],[1143072000000,6.09485],[1143158400000,6.08777],[1143244800000,6.04434],[1143331200000,6.04434],[1143417600000,6.04434],[1143504000000,6.07263],[1143590400000,6.10242],[1143676800000,6.06606],[1143763200000,6.10848]], 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: [[1141171200000, 5.996875],[1141171200000, 5.996875],[1141257600000, 6.036770],[1141344000000, 6.020105],[1141430400000, 6.070100],[1141516800000, 6.070100],[1141603200000, 6.070100],[1141689600000, 6.068585],[1141776000000, 6.016065],[1141862400000, 6.016065],[1141948800000, 6.019600],[1142035200000, 6.019095],[1142121600000, 6.019095],[1142208000000, 6.019095],[1142294400000, 6.020610],[1142380800000, 6.033740],[1142467200000, 6.073130],[1142553600000, 6.094845],[1142640000000, 6.153425],[1142726400000, 6.153425],[1142812800000, 6.153425],[1142899200000, 6.147870],[1142985600000, 6.132720],[1143072000000, 6.094845],[1143158400000, 6.087775],[1143244800000, 6.044345],[1143331200000, 6.044345],[1143417600000, 6.044345],[1143504000000, 6.072625],[1143590400000, 6.102420],[1143676800000, 6.066060],[1143763200000, 6.108480]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });