$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1168041600000,9.79312],[1168128000000,9.79312],[1168214400000,9.79312],[1168300800000,9.79312],[1168387200000,9.80842],[1168473600000,9.78654],[1168560000000,9.8541],[1168646400000,9.8405],[1168732800000,9.8405],[1168819200000,9.8405],[1168905600000,9.92513],[1168992000000,9.92304],[1169078400000,9.92471],[1169164800000,9.94],[1169251200000,9.96769],[1169337600000,9.96769],[1169424000000,9.96769],[1169510400000,9.97584],[1169596800000,10.0507],[1169683200000,9.95834],[1169769600000,9.95276],[1169856000000,9.89746],[1169942400000,9.89746],[1170028800000,9.89746],[1170115200000,9.88353],[1170201600000,9.92104]], 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: [[1168041600000, 9.793123],[1168041600000, 9.793123],[1168128000000, 9.793123],[1168214400000, 9.793123],[1168300800000, 9.793123],[1168387200000, 9.808415],[1168473600000, 9.786541],[1168560000000, 9.854103],[1168646400000, 9.840497],[1168732800000, 9.840497],[1168819200000, 9.840497],[1168905600000, 9.925135],[1168992000000, 9.923035],[1169078400000, 9.924709],[1169164800000, 9.940000],[1169251200000, 9.967692],[1169337600000, 9.967692],[1169424000000, 9.967692],[1169510400000, 9.975842],[1169596800000, 10.050672],[1169683200000, 9.958340],[1169769600000, 9.952756],[1169856000000, 9.897463],[1169942400000, 9.897463],[1170028800000, 9.897463],[1170115200000, 9.883528],[1170201600000, 9.921036]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });