$(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: [[1044057600000,5.76806],[1044144000000,5.76806],[1044230400000,5.76806],[1044316800000,5.72167],[1044403200000,5.77148],[1044489600000,5.81841],[1044576000000,5.75431],[1044662400000,5.75431],[1044748800000,5.75431],[1044835200000,5.75431],[1044921600000,5.76466],[1045008000000,5.71026],[1045094400000,5.73853],[1045180800000,5.7572],[1045267200000,5.7572],[1045353600000,5.7572],[1045440000000,5.7572],[1045526400000,5.71538],[1045612800000,5.71698],[1045699200000,5.71698],[1045785600000,5.78131],[1045872000000,5.78131],[1045958400000,5.78131],[1046044800000,5.78131],[1046131200000,5.74739],[1046217600000,5.74739],[1046304000000,5.73619],[1046390400000,5.75166]], 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: [[1044057600000, 5.768060],[1044057600000, 5.768060],[1044144000000, 5.768060],[1044230400000, 5.768060],[1044316800000, 5.721670],[1044403200000, 5.771480],[1044489600000, 5.818410],[1044576000000, 5.754310],[1044662400000, 5.754310],[1044748800000, 5.754310],[1044835200000, 5.754310],[1044921600000, 5.764660],[1045008000000, 5.710260],[1045094400000, 5.738530],[1045180800000, 5.757200],[1045267200000, 5.757200],[1045353600000, 5.757200],[1045440000000, 5.757200],[1045526400000, 5.715380],[1045612800000, 5.716980],[1045699200000, 5.716980],[1045785600000, 5.781310],[1045872000000, 5.781310],[1045958400000, 5.781310],[1046044800000, 5.781310],[1046131200000, 5.747390],[1046217600000, 5.747390],[1046304000000, 5.736190],[1046390400000, 5.751660]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });