$(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: [[1107216000000,6.91337],[1107302400000,6.90874],[1107388800000,6.92468],[1107475200000,6.89222],[1107561600000,6.86904],[1107648000000,6.86904],[1107734400000,6.86904],[1107820800000,6.80796],[1107907200000,6.76505],[1107993600000,6.76361],[1108080000000,6.77143],[1108166400000,6.81238],[1108252800000,6.81238],[1108339200000,6.81238],[1108425600000,6.87173],[1108512000000,6.8977],[1108598400000,6.91003],[1108684800000,6.91056],[1108771200000,6.9095],[1108857600000,6.9095],[1108944000000,6.9095],[1109030400000,6.91798],[1109116800000,6.9911],[1109203200000,6.9964],[1109289600000,7.02647],[1109376000000,6.97613],[1109462400000,6.97613],[1109548800000,6.97613]], 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: [[1107216000000, 6.913373],[1107216000000, 6.913373],[1107302400000, 6.908739],[1107388800000, 6.924681],[1107475200000, 6.892220],[1107561600000, 6.869036],[1107648000000, 6.869036],[1107734400000, 6.869036],[1107820800000, 6.807962],[1107907200000, 6.765048],[1107993600000, 6.763605],[1108080000000, 6.771427],[1108166400000, 6.812379],[1108252800000, 6.812379],[1108339200000, 6.812379],[1108425600000, 6.871732],[1108512000000, 6.897699],[1108598400000, 6.910026],[1108684800000, 6.910556],[1108771200000, 6.909496],[1108857600000, 6.909496],[1108944000000, 6.909496],[1109030400000, 6.917975],[1109116800000, 6.991103],[1109203200000, 6.996402],[1109289600000, 7.026474],[1109376000000, 6.976134],[1109462400000, 6.976134],[1109548800000, 6.976134]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });