$(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: [[1188604800000,6.92103],[1188691200000,6.92103],[1188777600000,6.92103],[1188864000000,6.88416],[1188950400000,6.8579],[1189036800000,6.86194],[1189123200000,6.90285],[1189209600000,6.91648],[1189296000000,6.91648],[1189382400000,6.91648],[1189468800000,6.96647],[1189555200000,6.98112],[1189641600000,7.01192],[1189728000000,7.01799],[1189814400000,6.9993],[1189900800000,6.9993],[1189987200000,6.9993],[1190073600000,7.00788],[1190160000000,7.00284],[1190246400000,7.05738],[1190332800000,7.08515],[1190419200000,7.09474],[1190505600000,7.09474],[1190592000000,7.09474],[1190678400000,7.12706],[1190764800000,7.12353],[1190851200000,null],[1190937600000,null],[1191024000000,7.1604],[1191110400000,7.1604]], 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: [[1188604800000, 6.921025],[1188604800000, 6.921025],[1188691200000, 6.921025],[1188777600000, 6.921025],[1188864000000, 6.884160],[1188950400000, 6.857900],[1189036800000, 6.861940],[1189123200000, 6.902845],[1189209600000, 6.916480],[1189296000000, 6.916480],[1189382400000, 6.916480],[1189468800000, 6.966475],[1189555200000, 6.981120],[1189641600000, 7.011925],[1189728000000, 7.017985],[1189814400000, 6.999300],[1189900800000, 6.999300],[1189987200000, 6.999300],[1190073600000, 7.007885],[1190160000000, 7.002835],[1190246400000, 7.057375],[1190332800000, 7.085150],[1190419200000, 7.094745],[1190505600000, 7.094745],[1190592000000, 7.094745],[1190678400000, 7.127065],[1190764800000, 7.123530],[1191024000000, 7.160395],[1191110400000, 7.160395]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });