$(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: [[1275350400000,9.75342],[1275436800000,9.63296],[1275523200000,9.6835],[1275609600000,9.72276],[1275696000000,9.55309],[1275782400000,9.55309],[1275868800000,9.55309],[1275955200000,9.47272],[1276041600000,9.45735],[1276128000000,9.50964],[1276214400000,9.53591],[1276300800000,9.59949],[1276387200000,9.59949],[1276473600000,9.59949],[1276560000000,9.69496],[1276646400000,9.70123],[1276732800000,9.71467],[1276819200000,9.7821],[1276905600000,9.7886],[1276992000000,9.7886],[1277078400000,9.7886],[1277164800000,9.80215],[1277251200000,9.69657],[1277337600000,9.70612],[1277424000000,9.69851],[1277510400000,9.72136],[1277596800000,9.72136],[1277683200000,9.72136],[1277769600000,9.72136],[1277856000000,9.64496]], 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: [[1275350400000, 9.753421],[1275350400000, 9.753421],[1275436800000, 9.632959],[1275523200000, 9.683498],[1275609600000, 9.722758],[1275696000000, 9.553088],[1275782400000, 9.553088],[1275868800000, 9.553088],[1275955200000, 9.472724],[1276041600000, 9.457347],[1276128000000, 9.509638],[1276214400000, 9.535906],[1276300800000, 9.599491],[1276387200000, 9.599491],[1276473600000, 9.599491],[1276560000000, 9.694961],[1276646400000, 9.701226],[1276732800000, 9.714667],[1276819200000, 9.782100],[1276905600000, 9.788603],[1276992000000, 9.788603],[1277078400000, 9.788603],[1277164800000, 9.802148],[1277251200000, 9.696568],[1277337600000, 9.706116],[1277424000000, 9.698506],[1277510400000, 9.721358],[1277596800000, 9.721358],[1277683200000, 9.721358],[1277769600000, 9.721358],[1277856000000, 9.644959]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });