$(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: [[1109635200000,10.1847],[1109721600000,10.1801],[1109808000000,10.1206],[1109894400000,10.1257],[1109980800000,10.1052],[1110067200000,10.1052],[1110153600000,10.1052],[1110240000000,10.1052],[1110326400000,10.1052],[1110412800000,10.1896],[1110499200000,10.1987],[1110585600000,10.1698],[1110672000000,10.1698],[1110758400000,10.1698],[1110844800000,10.1525],[1110931200000,10.1766],[1111017600000,10.1714],[1111104000000,10.1753],[1111190400000,10.1328],[1111276800000,10.1328],[1111363200000,10.1328],[1111449600000,null],[1111536000000,10.0427],[1111622400000,9.92146],[1111708800000,9.87316],[1111795200000,9.87316],[1111881600000,9.87316],[1111968000000,9.87316],[1112054400000,9.87316],[1112140800000,9.8936],[1112227200000,9.93884]], 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: [[1109635200000, 10.184682],[1109635200000, 10.184682],[1109721600000, 10.180105],[1109808000000, 10.120565],[1109894400000, 10.125734],[1109980800000, 10.105188],[1110067200000, 10.105188],[1110153600000, 10.105188],[1110240000000, 10.105188],[1110326400000, 10.105188],[1110412800000, 10.189585],[1110499200000, 10.198695],[1110585600000, 10.169775],[1110672000000, 10.169775],[1110758400000, 10.169775],[1110844800000, 10.152481],[1110931200000, 10.176616],[1111017600000, 10.171358],[1111104000000, 10.175277],[1111190400000, 10.132789],[1111276800000, 10.132789],[1111363200000, 10.132789],[1111536000000, 10.042687],[1111622400000, 9.921457],[1111708800000, 9.873162],[1111795200000, 9.873162],[1111881600000, 9.873162],[1111968000000, 9.873162],[1112054400000, 9.873162],[1112140800000, 9.893603],[1112227200000, 9.938839]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });